IM ignores -page option

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
gregory
Posts: 67
Joined: 2009-08-02T17:20:23-07:00
Authentication code: 8675309

IM ignores -page option

Post by gregory »

I've updated my ImageMagick to the latest version, and now I have a problem. When I create an animation with the following source images:
http://s14.postimg.org/cilr6n09t/image.jpg
http://s14.postimg.org/pb9v6kbvl/image.jpg
The resulting animated GIF is cropped: http://s16.postimg.org/uargola39/2a6b77 ... 65fd58.gif

What am I doing wrong since I didn't change anything?

Here is the command I use to make an animation:
/usr/local/bin/convert -delay 100 -page 300x422 -dispose background /source/*.gif -loop 0 /result.gif
Ivar Snaaijer
Posts: 21
Joined: 2006-02-22T09:22:30-07:00

Re: IM ignores -page option

Post by Ivar Snaaijer »

The images are quite different (portrait vs landscape) do you want to rescale the images to fit in the 300x422 box ?
gregory
Posts: 67
Joined: 2009-08-02T17:20:23-07:00
Authentication code: 8675309

Re: IM ignores -page option

Post by gregory »

I want the image to be MAX(width1, width2) x MAX(height1, height2).
In this case the maximums are 300x422.
gregory
Posts: 67
Joined: 2009-08-02T17:20:23-07:00
Authentication code: 8675309

Re: IM ignores -page option

Post by gregory »

I forgot to say that I resize these image to width = 300 pixels.
After that I try to make an animation.
But as I said earlier I want to make max_width x max_height resulting animation.
gregory
Posts: 67
Joined: 2009-08-02T17:20:23-07:00
Authentication code: 8675309

Re: IM ignores -page option

Post by gregory »

Here are resized images I try to convert to 300x422 animation:
http://s23.postimg.org/ejff27ycr/pic0.gif
http://s23.postimg.org/4amxweaaz/pic1.gif
As you can see both images are 300 pixels in width but different in height.
So my goal is to create an animation which is 300x422 and includes both images like here:
http://s21.postimg.org/6gvzm8zxj/8d6935 ... fc4510.gif
(I made this one with previous version of IM installed on another server)
gregory
Posts: 67
Joined: 2009-08-02T17:20:23-07:00
Authentication code: 8675309

Re: IM ignores -page option

Post by gregory »

I've installed IM 6.7.6-9, and it works perfect now!
However, I'd prefer to have IM up to date so my question is still actual.
gregory
Posts: 67
Joined: 2009-08-02T17:20:23-07:00
Authentication code: 8675309

Re: IM ignores -page option

Post by gregory »

Seems like a bug. Anyone?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: IM ignores -page option

Post by snibgo »

Does putting "-repage 300x422" after the input files do what you want?
snibgo's IM pages: im.snibgo.com
gregory
Posts: 67
Joined: 2009-08-02T17:20:23-07:00
Authentication code: 8675309

Re: IM ignores -page option

Post by gregory »

Thank you so much! It works!
Could you please explain why my previous command didn't work in 6.8.6 version?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: IM ignores -page option

Post by fmw42 »

see http://www.imagemagick.org/Usage/basics/#page

-repage WxH
Change the existing images virtual canvas size, but do not reset the image position on that canvas.
Note supplying this argument to either "-page" or "-set page" will reset the images location to '+0+0' which is probably not wanted..
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: IM ignores -page option

Post by snibgo »

gregory wrote:Could you please explain why my previous command didn't work in 6.8.6 version?
The behaviour of "-page" changed at v6.8.4-9, so it affected only new images, not existing ones, such as you have here. See viewtopic.php?f=3&t=23172
snibgo's IM pages: im.snibgo.com
Post Reply