KeyError: 262 #129
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Good afternoon. Please help: KeyError 262 errors occur during batch processing of files.
The error doesn't come from img2pdf but from PIL/TiffImagePlugin.py. It seems that your tif file is missing the PHOTOMETRIC_INTERPRETATION tag. Can you post the file that you are having problems with?
Here on the site, I couldn't add it, I threw it on Google Drive
https://drive.google.com/file/d/1SbsQ1ex-GdF9zkbo0bhpNPEBGCUrn_pL/view?usp=drivesdk
I don't have a Google account so I cannot retrieve the file.
You can attach it to a post by first putting it into a zip archive.
Ok
That's just a corrupt image file. Even imagemagick says:
So this is not an img2pdf bug. Your input is broken.
It's a pity, because there are a lot of such files in the bundle. :-(
These files are opened and translated to pdf, for example FineReader.
Can you tell me how you can solve the problem?
First, I'd send a bug report to the maintainers of the software that produced these files.
Second, I'd try finding some software that can open those files and convert them to another lossless raster graphics format like png.
Okay, thanks a lot.