v_kyr Posted February 2, 2023 Share Posted February 2, 2023 Here's a afthumbs.py Python3 script which can be used to extract PNG thumbnail images out of Affinity files. The afthumbs.py script can be called either by passing over a Affinity file as argument directly ... Quote > python3 afthumbs.py file.afdesign > python3 afthumbs.py file.afphoto ... or in an interacting mode just like this ... Quote > python3 afthumbs.py Enter a Affinity filename to scan or press ENTER to skip: test.afphoto Selecting file... test.afphoto Opening file: test.afphoto File size: 1001678B Try to find PNG signatures Found PNG Signature #1 at 863200 Writing PNG to pngs/ directory Done! If the script does find a PNG thumb image it will extract it and write it into a pngs/ directory! Here's the afthumbs.py Python3 script for download: afthumbs.py Have fun! Frozen Death Knight, walt.farrell, Komatös and 1 other 3 1 Quote ☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan ☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2 Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.