Jump to content
You must now use your email address to sign in [click for more info] ×

afthumbs - Extracting PNG Thumbnails from .afphoto and .afdesign files ...


Recommended Posts

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 ...


> python3 afthumbs.py file.afdesign
> python3 afthumbs.py file.afphoto

... or in an interacting mode just like this ...


> 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

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:

Have fun!

☛ 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

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.