isssue with Colorspace #101

Closed
opened 3 years ago by rishabh3354 · 3 comments

when i put Colorspace as L in some images, it automatically croped my images. idk why?

when i put Colorspace as L in some images, it automatically croped my images. idk why?
josch commented 3 years ago
Owner

Me neither. Unfortunately I don't have a crystal ball that can tell me which image you used as input, so unless you give me enough information that lets me reproduce your issue I'm afraid I cannot be of any help.

Me neither. Unfortunately I don't have a crystal ball that can tell me which image you used as input, so unless you give me enough information that lets me reproduce your issue I'm afraid I cannot be of any help.
Poster

this is my code

tt= ['/home/warlord/Downloads/22.jpg']
import img2pdf
with open("name.pdf", "wb") as f:
f.write(img2pdf.convert(tt, colorspace=img2pdf.Colorspace.L))

Input file and output file are in attachment

this is my code tt= ['/home/warlord/Downloads/22.jpg'] import img2pdf with open("name.pdf", "wb") as f: f.write(img2pdf.convert(tt, colorspace=img2pdf.Colorspace.L)) Input file and output file are in attachment
143 KiB
147 KiB
josch commented 3 years ago
Owner

err... what do you expect to happen if you specify the L colorspace for a jpeg image that is clearly RGB?

err... what do you expect to happen if you specify the `L` colorspace for a jpeg image that is clearly RGB?
rishabh3354 closed this issue 3 years ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 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#101
Loading…
There is no content yet.