sylikc / jpegview

Fork of JPEGView by David Kleiner - fast and highly configurable viewer/editor for JPEG, BMP, PNG, WEBP, TGA, GIF and TIFF images with a minimal GUI. Basic on-the-fly image processing is provided - allowing adjusting typical parameters as sharpness, color balance, rotation, perspective, contrast and local under-/overexposure.
Other
2.22k stars 128 forks source link

psd: use byte counts for scan lines #312

Closed qbnu closed 5 months ago

qbnu commented 5 months ago

Some PSDs rely on the byte counts for each scan line to be decoded correctly. ImageMagick seems to add a pad byte to each row in some cases when exporting to PSD. Example

Also, "Desktop2.psd" from https://github.com/ImageMagick/ImageMagick/issues/1962 overshoots by 4 bytes on row 520 of the red plane. It fails to decode unless we use the byte counts.