![]() |
![]() |
![]()
Post
#1
|
|
Forum Member Group: Members Posts: 9 Joined: 4-March 03 From: Vienna Member No.: 134 ![]() |
When I rotate a JPG image with the lossless JPG-Rotating, the image size changes.
For example: When I use my lossless 90° Clockwise Rotating to rotate a 800x600 JPG image , I get a 592x800 JPG image. Is this behavior expected? I don't think so, because it simply cuts one side of my image off. I'm using WindowsXP Professionel (SP1). Tested it on WindowsXP Home and it results in the same bug. |
|
|
![]() |
![]()
Post
#2
|
|
![]() Forum Member Group: Admin Posts: 672 Joined: 14-March 00 From: Wilmington, North Carolina Member No.: 3 ![]() |
In order to do a lossless rotation of JPEG files, the internal blocks must be rotated losslessly. If the image size is a multiple of the block size, all blocks can be losslessly rotated. If not, the outer edge blocks cannot be losslessly rotated. (PMView chooses to throw them away instead of showing garbage or doing any other dirty tricks).
For instance your 600 pixel side is not divisible by the block size 16. It has 37.5 blocks in the 600 pixel direction. The half block cannot be rotated, and will be garbled. PMView will drop this block and make this side 592 pixels (=37 blocks). Usually this is not an issue when working with image originals. Most, if not all, cameras will output images with an even number of blocks in both the x and y axis. This leads me to believe that your 800x600 images are already processed by another application and may already have suffered loss by being resaved to a different non-block aligned size... Thanks, -------------------- Peter Nielsen (peter@pmview.com) "If you can dream it, you can do it" JFK.
|
|
|
![]() ![]() |
Lo-Fi Version | Time is now: 2nd May 2025 - 08:14 AM |