| Summary: | media-libs/jpeg - jpegtran corrupts images when rotating JPEGs | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Rod Smith <gentoobugs> |
| Component: | [OLD] Library | Assignee: | Gentoo Graphics Project <graphics+disabled> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | CC: | vapier |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | Sample graphic that demonstrates the problem after rotation | ||
|
Description
Rod Smith
2005-06-10 09:57:27 UTC
Created attachment 61000 [details]
Sample graphic that demonstrates the problem after rotation
try jpeg-6b-r6 please This is regular behaviour on the part of jpegtran. From the man page: jpegtran's default behavior when transforming an odd-size image is designed to preserve exact reversibility and mathematical consistency of the transformation set. As stated, transpose is able to flip the entire image area. Horizontal mirroring leaves any partial iMCU column at the right edge untouched, but is able to flip all rows of the image. Similarly, vertical mirroring leaves any partial iMCU row at the bottom edge untouched, but is able to flip all columns. The other transforms can be built up as sequences of transpose and flip operations; for con- sistency, their actions on edge pixels are defined to be the same as the end result of the corresponding transpose-and-flip sequence. For practical use, you may prefer to discard any untransformable edge pixels rather than having a strange-looking strip along the right and/or bottom edges of a transformed image. To do this, add the -trim switch: -trim Drop non-transformable edge blocks. So, add -trim if you want to use jpegtran and don't want your images to look weird :) |