Open manuGil opened 1 year ago
For now, I will avoid saving this type of images
TypeError: No decoding for image with 4 bits and 1 channels. Also related with the lack of a decoder for this type of image. The solution is to write a custom image decoder. PDFMinder support any decoder also supporter by PIL.
This is known in PDFminder: https://github.com/pdfminer/pdfminer.six/issues/853
For example, when attempting to save an image as bytes for an element (image) like:
We get the following error:
The solution proposed in https://github.com/pdfminer/pdfminer.six/pull/854/files doesn't solve this problem.