IM ignores -page option
IM ignores -page option
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
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
-
- Posts: 21
- Joined: 2006-02-22T09:22:30-07:00
Re: IM ignores -page option
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
I want the image to be MAX(width1, width2) x MAX(height1, height2).
In this case the maximums are 300x422.
In this case the maximums are 300x422.
Re: IM ignores -page option
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.
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
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)
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
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.
However, I'd prefer to have IM up to date so my question is still actual.
Re: IM ignores -page option
Seems like a bug. Anyone?
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: IM ignores -page option
Does putting "-repage 300x422" after the input files do what you want?
snibgo's IM pages: im.snibgo.com
Re: IM ignores -page option
Thank you so much! It works!
Could you please explain why my previous command didn't work in 6.8.6 version?
Could you please explain why my previous command didn't work in 6.8.6 version?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: IM ignores -page option
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..
-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..
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: IM ignores -page option
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=23172gregory wrote:Could you please explain why my previous command didn't work in 6.8.6 version?
snibgo's IM pages: im.snibgo.com