Page 1 of 1
IM ignores -page option
Posted: 2013-09-30T07:05:40-07:00
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
Re: IM ignores -page option
Posted: 2013-09-30T07:46:53-07:00
by Ivar Snaaijer
The images are quite different (portrait vs landscape) do you want to rescale the images to fit in the 300x422 box ?
Re: IM ignores -page option
Posted: 2013-09-30T08:04:11-07:00
by gregory
I want the image to be MAX(width1, width2) x MAX(height1, height2).
In this case the maximums are 300x422.
Re: IM ignores -page option
Posted: 2013-09-30T08:05:43-07:00
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.
Re: IM ignores -page option
Posted: 2013-09-30T08:10:12-07:00
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)
Re: IM ignores -page option
Posted: 2013-09-30T08:31:30-07:00
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.
Re: IM ignores -page option
Posted: 2013-10-01T07:45:24-07:00
by gregory
Seems like a bug. Anyone?
Re: IM ignores -page option
Posted: 2013-10-01T08:05:02-07:00
by snibgo
Does putting "-repage 300x422" after the input files do what you want?
Re: IM ignores -page option
Posted: 2013-10-01T15:45:34-07:00
by gregory
Thank you so much! It works!
Could you please explain why my previous command didn't work in 6.8.6 version?
Re: IM ignores -page option
Posted: 2013-10-01T15:59:32-07:00
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..
Re: IM ignores -page option
Posted: 2013-10-01T16:50:47-07:00
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