![]() |
![]() |
![]()
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 ![]() |
Yes, this image size chage is expected. It has to do with the "block size" of the JPEG encoding. This will occur if the image size is not evenly divisible by 16 (or sometimes 8). Quoting www.faqs.org/faqs/jpeg-faq/ :
"There are a few specialized operations that can be done on a JPEG file without decompressing it, and thus without incurring the generational loss that you'd normally get from loading and re-saving the image in a regular image editor. In particular it is possible to do 90-degree rotations and flips losslessly, if the image dimensions are a multiple of the file's block size (typically 16x16, 16x8, or 8x8 pixels for color JPEGs). " There are two ways to deal with it. #1 is to not change the size (garbage will appear) #2 is to change the size. Almost all programs choose #2, because it is never nice to present the user with garbage data... 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 - 07:28 AM |