Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: PerlMagick Scene attribute

by BrentD (Sexton)
on Sep 27, 2017 at 15:50 UTC ( [id://1200209]=note: print w/replies, xml ) Need Help??


in reply to PerlMagick Scene attribute

So, trying to narrow down the problem I wanted to verify that "scene" is in fact getting set:
#!/usr/bin/perl use strict; use warnings; use Image::Magick; unlink (glob("*.tif")); my $image = Image::Magick->new; my $filename = "test.pdf"; $image->Read($filename); my $p = $image->Get('scene'); print "\n\nScene1: $p\n"; $image->Set(scene=>15); $p = $image->Get('scene'); print "Scene2: $p\n\n"; $image->Write(filename=>"testp%04d.tif", compression=>'Group4', density=>"240x240");
My output is:
Scene1: 0 Scene2: 15
So it appears as if "scene" is being properly set, but that it's being ignored by the Write method.

Replies are listed 'Best First'.
Re^2: PerlMagick Scene attribute
by Anonymous Monk on Sep 28, 2017 at 00:57 UTC
     $image[14]->Write...?

      Inventing a new syntax won't fix the problem. There is no @image array around.

      Alexander

      --
      Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

        Inventing a new syntax won't fix the problem. There is no @image array around.

        So whats the answer ?

        If I had perlmagick I would check if .pdf pages are treated like an image sequence, seems perfectly plausible thing to try

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1200209]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-25 17:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found