Can't convert some jpeg images #171

Closed
opened 2023-06-27 13:41:17 +00:00 by kocouj1 · 1 comment

I'm currently on img2pdf version 0.3.3 on SLES. Some images are not converted to PDF when running "img2pdf --pillow-limit-break -S A4 -f shrink -o temp.pdf test.jpg". Error message is "ERROR:root:error: image file is truncated (0 bytes not processed)".

Image is:
test.jpg: JPEG image data, JFIF standard 1.01, resolution (DPI), density 300x300, segment length 20, Exif Standard: [TIFF image data, big-endian, direntries=13, manufacturer=Apple, model=iPhone 13, orientation=upper-right, xresolution=186, yresolution=194, resolutionunit=2, software=16.5, datetime=2023:06:15 10:58:42, hostcomputer=iPhone 13], baseline, precision 8, 4032x3024, components 3

I'm currently on img2pdf version 0.3.3 on SLES. Some images are not converted to PDF when running "img2pdf --pillow-limit-break -S A4 -f shrink -o temp.pdf test.jpg". Error message is "ERROR:root:error: image file is truncated (0 bytes not processed)". Image is: test.jpg: JPEG image data, JFIF standard 1.01, resolution (DPI), density 300x300, segment length 20, Exif Standard: [TIFF image data, big-endian, direntries=13, manufacturer=Apple, model=iPhone 13, orientation=upper-right, xresolution=186, yresolution=194, resolutionunit=2, software=16.5, datetime=2023:06:15 10:58:42, hostcomputer=iPhone 13], baseline, precision 8, 4032x3024, components 3
Author

Retested on 0.4.4 and it works. Image is malformed MPO file.

Retested on 0.4.4 and it works. Image is malformed MPO file.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: josch/img2pdf#171
No description provided.