convert -crop and shifting canvas viewport
Posted: 2007-10-09T18:12:25-07:00
Hello !
First off, thank you Anthony for the tremendous amount of dedications you put into ImageMagick. Its really appreciated.
I am currently using ImageMagick 6.2.4.5.dfsg1-0.14 on a stock Debian Linux system.
I am using ImageMagick with bash shell scripts and ffmpeg to create "movies" from still photos.
I have image pans working in both directions. For the past several days I have been working on ZOOMING in and out of still images.
I have been using a bash shell script with a for loop to increment a "zoom" into a still image. I have been using;
convert Starter.ppm -resize $((100+$i))% -crop 700x200+18+400 z00$i.ppm
within the for loop to zoom INTO a still image and it does indeed zoom INTO the image.
The problem seems to be that, as the resize percentage increases, the center point, x value and y value DECREASES. The result is
the movie made from images into frames, moves UPWARDS TO THE LEFT. I want the center point to remain stationary or to move
when I want it to. I have read the examples and documents (including playing with +repage but, the result seems to still be the same.
Please help me correct this problem. It seems obvious, I am missing something within the convert statement.
First off, thank you Anthony for the tremendous amount of dedications you put into ImageMagick. Its really appreciated.
I am currently using ImageMagick 6.2.4.5.dfsg1-0.14 on a stock Debian Linux system.
I am using ImageMagick with bash shell scripts and ffmpeg to create "movies" from still photos.
I have image pans working in both directions. For the past several days I have been working on ZOOMING in and out of still images.
I have been using a bash shell script with a for loop to increment a "zoom" into a still image. I have been using;
convert Starter.ppm -resize $((100+$i))% -crop 700x200+18+400 z00$i.ppm
within the for loop to zoom INTO a still image and it does indeed zoom INTO the image.
The problem seems to be that, as the resize percentage increases, the center point, x value and y value DECREASES. The result is
the movie made from images into frames, moves UPWARDS TO THE LEFT. I want the center point to remain stationary or to move
when I want it to. I have read the examples and documents (including playing with +repage but, the result seems to still be the same.
Please help me correct this problem. It seems obvious, I am missing something within the convert statement.