Pixel Rounding On -thumbnail convert
Posted: 2009-07-10T22:58:03-07:00
The behavior of the pixel rounding on convert is somewhat counter intuitive to me.
I have a jpg file that is 300x203. I convert it using -thumbnail and preserving the aspect ratio. It gives me a file dimensions of 100x68.
The 68 comes from 67.666666 rounded up.
Shouldnt it be rounding down to 67 since the information for that pixel doesn't completely exist? Or does it just do a normal round and hope for the best?
I have a jpg file that is 300x203. I convert it using -thumbnail and preserving the aspect ratio. It gives me a file dimensions of 100x68.
The 68 comes from 67.666666 rounded up.
Shouldnt it be rounding down to 67 since the information for that pixel doesn't completely exist? Or does it just do a normal round and hope for the best?