File: shrinkpix/examples/example5-1.2-piexif-exc-skips-demo.txt
# Demo 1.2's recovery from piexif exceptions for rare, possibly miscoded tags. # The 4 failing images were all shot on a 2018 Samsung Galaxy Note 9. # No attempt is made to fix bad tags here (unlike thumbspage): fix or resize manually. ~/Desktop/temp/tptest$ python3 $C/shrinkpix/shrinkpix.py test This script shrinks images in place, after saving originals; continue? y /Users/me/Desktop/temp/tptest/test/2018-11-15__172229.jpg Old size: 2209146 bytes [optimize+quality+resize] [resized at 0.60] New size: 347172 bytes /Users/me/Desktop/temp/tptest/test/2018-11-28__DSC03870.JPG Old size: 6428055 bytes [optimize+quality+resize] [resized at 0.40] [*SAVED ABOVE MAXSIZE*] New size: 605701 bytes /Users/me/Desktop/temp/tptest/test/2018-11-28__DSC03871.JPG Old size: 6538452 bytes [optimize+quality+resize] [resized at 0.40] [*SAVED ABOVE MAXSIZE*] New size: 629297 bytes /Users/me/Desktop/temp/tptest/test/2018-11-27__120042.jpg Old size: 4463379 bytes [optimize+quality+resize] ***Unable to shrink: image skipped Exception: "dump" got wrong type of exif value. 41729 in Exif IFD. Got as <class 'int'>. /Users/me/Desktop/temp/tptest/test/2020-06-01__154738.jpg Old size: 1334007 bytes [optimize] New size: 436070 bytes /Users/me/Desktop/temp/tptest/test/2018-11-15__172303.jpg Old size: 2211078 bytes [optimize+quality+resize] [resized at 0.60] New size: 338555 bytes /Users/me/Desktop/temp/tptest/test/20200611_144714.jpg Old size: 5257471 bytes [optimize+quality+resize] [resized at 0.40] New size: 452206 bytes /Users/me/Desktop/temp/tptest/test/2018-11-15__172928.jpg Old size: 3186737 bytes [optimize+quality+resize] ***Unable to shrink: image skipped Exception: "dump" got wrong type of exif value. 41729 in Exif IFD. Got as <class 'int'>. /Users/me/Desktop/temp/tptest/test/2018-11-15__172646.jpg Old size: 3823741 bytes [optimize+quality+resize] ***Unable to shrink: image skipped Exception: "dump" got wrong type of exif value. 41729 in Exif IFD. Got as <class 'int'>. /Users/me/Desktop/temp/tptest/test/20200611_144719.jpg Old size: 5209606 bytes [optimize+quality+resize] [resized at 0.40] New size: 433870 bytes /Users/me/Desktop/temp/tptest/test/2018-11-28__074118.jpg Old size: 4319593 bytes [optimize+quality+resize] ***Unable to shrink: image skipped Exception: "dump" got wrong type of exif value. 41729 in Exif IFD. Got as <class 'int'>. /Users/me/Desktop/temp/tptest/test/2018-11-27__120107.jpg Old size: 2503435 bytes [optimize+quality+resize] [resized at 0.60] New size: 374329 bytes /Users/me/Desktop/temp/tptest/test/2018-11-27__120407.jpg Old size: 2542297 bytes [optimize] New size: 438469 bytes /Users/me/Desktop/temp/tptest/test/2020-06-07__130112.jpg Old size: 6674914 bytes [optimize+quality+resize] [resized at 0.40] [*SAVED ABOVE MAXSIZE*] New size: 915420 bytes Done: 14 files, 14 images, 14 large images ~/Desktop/temp/tptest$