Can't convert some jpeg images #171

Closed
opened 10 months ago by kocouj1 · 1 comments

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
kocouj1 closed this issue 10 months ago
Poster

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 Participants
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
Loading…
There is no content yet.