isssue with Colorspace #101

Closed
opened 2021-06-01 16:05:25 +00:00 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?
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.
Author

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
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?
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
No description provided.