Sizing and other issues between versions - UPDATED

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
martinm
Posts: 2
Joined: 2012-07-10T02:36:16-07:00
Authentication code: 13

Sizing and other issues between versions - UPDATED

Post by martinm »

UPDATED - I'm a muppet - not all of the charts are produced usign IM.... :lol:

Hi all, I'm upgrading Debian Etch to Debian Squeeze

Etch Version: ImageMagick 6.2.4 07/28/09 Q16
Squeeze Version: ImageMagick 6.6.0-4 2012-05-03 Q16

The real conversions are done using Perl, but using the cmd line gives the same problems and is easier to debug!
Conversions are gif to pdf

The problem is that some (not all!) converted images fill only the bottom left quarter of the image. I just need to be able to resize larger and crop the other 3/4 of the image but can't get crop to work in this way. It's possible that the source image is only 1/4 of a page in size.


Thanks,

Martin
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Sizing and other issues between versions - UPDATED

Post by fmw42 »

You gif files likely have virtual canvas associated with them. You need to remove that. try

convert image.gif +repage image.pdf

see
http://www.imagemagick.org/Usage/crop/#crop_repage
martinm
Posts: 2
Joined: 2012-07-10T02:36:16-07:00
Authentication code: 13

Re: Sizing and other issues between versions - UPDATED

Post by martinm »

Perfect, works a treat thanks.

Now I need to get that into the Perl script.

A google shows that theres is no +page available to Perl, and 'Your Crop needs the equivalent of +repage in order to shrink the canvas. I think your Set should be $background->Set( page=>'0x0+0+0' ); '

Does this look correct?

Cheers.
Post Reply