I am a photo artist who knows a lot about cropping / resizing an image. Since I am making a film, I have to scan my negatives and crop every frame from a batch scan. My scanner scans four bands of six images each (24 frames / crop per scan).
My friend wrote me a Python script that automatically crop images based on the entered coordinates. The script works well, but it has problems in the file format of the exported images.
When scanning, each frame should display 37 MB TIFF at 240 DPI (when I crop and export to Adobe Lightroom). Instead, Cropper outputs a 13 MB 72 DPI TIFF.
The terminal (I'm on a Mac) warns me about the "decompression bomb" whenever I launch Cropper. My friend was at a dead end and suggested that I ask for a stack overflow.
I have no Python experience. I can provide the code that he wrote and the commands that Terminal gives me.
Thoughts? It would be very grateful and a huge BIG time. THANKS!
ERROR MESSAGE: /Library/Python/2.7/site-packages/PIL/Image.py:2192: DecompressionBombWarning: Image size (208560540 pixels) exceeds limit of 89478485 pixels, could be decompression bomb DOS attack.
python image tiff python-imaging-library pillow
Macca
source share