minecart
minecart copied to clipboard
Why "mode", sample "rawmode", "samples" are not used when creating PIL object
As it is seen, at as_pil method of Image Class considers filter, colorspace and bits that are attributes of LTImage object at pdfminer package. But, why these are not used when creating PIL object ? I think these are invalueable params to use frombytes method of PIL.
https://github.com/felipeochoa/minecart/blob/f39a3934e4be271f2cc061e44bee34c6d6cb4126/minecart/content.py#L368
Also:
https://github.com/felipeochoa/minecart/blob/f39a3934e4be271f2cc061e44bee34c6d6cb4126/minecart/content.py#L280
colorspaces should be integrated to pdfminer' s. I have corrected below:
'RGB': ("'DeviceRGB'", "'CalRGB'", "'RGB'"),
'GRAY': ("'CalGray", "'DeviceGray'"),
'CMYK': ("'DeviceCMYK'", "'CMYK'")
I never needed this. Feel free to submit a PR