Odd results while using SRT
Posted: 2016-12-15T16:55:01-07:00
Admittedly, I am new when it comes to ImageMagick - so this could be user error.
In essence, I will be making a script that will take a large still image, and make a series out 1080p output images to make it look like a pan.
First, I wanted to understand what settings i need to have the viewport all the way to the right (the opposite of the default). The source image is 5184x3456. So I figured for the image to be all the way to the right, I take the image width, and subtract the width of the output frame... and I got this:
The above is with a scale of 1. So, next I tried it with a scale of .5 like this:
This returned an image that still needed to be shifted 960 frames to right. So I adjusted it accordingly:
Now the image went the other direction!
So my question is this:
When invoking scaling, how does that effect the x/y offset? What multiplier do I have to add to make the image reach the edge of the frame?
In essence, I will be making a script that will take a large still image, and make a series out 1080p output images to make it look like a pan.
First, I wanted to understand what settings i need to have the viewport all the way to the right (the opposite of the default). The source image is 5184x3456. So I figured for the image to be all the way to the right, I take the image width, and subtract the width of the output frame... and I got this:
Code: Select all
convert img001.jpg -virtual-pixel Black -unsharp 0x2 -set option:distort:viewport 1920x1080-0-0 -quality 100 -write mpr:tmp +delete mpr:tmp -distort SRT "3264,0 1 0 0,0" "out_1.jpg"
Code: Select all
convert img001.jpg -virtual-pixel Black -unsharp 0x2 -set option:distort:viewport 1920x1080-0-0 -quality 100 -write mpr:tmp +delete mpr:tmp -distort SRT "3264,0 .5 0 0,0" "out_1.jpg"
Code: Select all
convert img001.jpg -virtual-pixel Black -unsharp 0x2 -set option:distort:viewport 1920x1080-0-0 -quality 100 -write mpr:tmp +delete mpr:tmp -distort SRT "4224,0 .5 0 0,0" "out_1.jpg"
So my question is this:
When invoking scaling, how does that effect the x/y offset? What multiplier do I have to add to make the image reach the edge of the frame?