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

afthumbsGUI - Extracting PNG Thumbnails from .afphoto, .afdesign, afpub and .aftemplate files ...


v_kyr

Recommended Posts

Here's the afthumbsGUI.py Python3 script which can be used to extract PNG thumbnail images out of Affinity files. This afthumbsGUI.py script is a slightly enhanced GUI version of my CLI based afthumbs.py script.

In this GUI version one has to specify (open) a supported Affinity file (see below) and an output directory path, afterwards to press the "EXTRACT THUMB IMAGES!" button in order to extract any possible thumb images (PNGs) from the given Affinity file. When a thumb image is found and written out, it will be then displayed in a popup window, as a sort of visual indication of a written out thumb image.

Here's a little screencast of how the GUI of afthumbsGUI.py looks like and how it is intended to be used ...

In it's actual state afthumbsGUI.py can open and extract PNG thumb images out of Affinity Designer-/Photo-/Publisher- & Affinity Template files. The script is written in an OS crossplatform manner and thus should run under MacOS/Linux/Windows, as far as Python 3 environment is installed and available on the specific platform. This script doesn't use any third party Python modules and uses just what does already come along as default with a common Python 3 installment.

afthumbsGUI.py can be started the common via Python way from a cmd shell/terminal ...

MacOS/Linux:

Quote

> python3 afthumbsGUI.py

Windows:

Quote

> py afthumbsGUI.py

 

Alternatively afthumbsGUI.py can also be renamed and provided with execution rights, so it can be startet like a program/application on a certain OS ...

MacOS/Linux:

Quote

> mv afthumbsGUI.py afthumbsgui
> chmod +x afthumbsgui
> cp afthumbsgui /usr/local/bin
...Afterwards it can be started like this...
> afthumbsgui

Windows:

Quote

 

Here's the afthumbsGUI.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

While I have no use for this one – since many years I use FileJuicer for these tasks – but I appreciate all your efforts nonetheless! :) 

MacBookAir 15": MacOS Ventura > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 16 > Affinity v2

Link to comment
Share on other sites

16 minutes ago, loukash said:

While I have no use for this one – since many years I use FileJuicer for these tasks – but I appreciate all your efforts nonetheless! :) 

An old commercial one, so €18,50 for something I can do easily on my own instead in various more flexible flavors. My Py CLI version for example extracts also from other file types than just Affinity files, only the GUI version here is via it's file open dialog restricted to open only certain Affinity file types. - So I for my part have no real usage for that FileJuicer, since it does nothing my own various tools (written in C/C++, Java, C# or Python ... etc.) can already do. 😉

18 minutes ago, N.P.M. said:

xnviewmp
ctrl+a>batchconvert>png>done

The latest version which also supports MacOS 10.11.6 always cores when it's opened and it's browser part scans over some specific file types in image directories. So thanks, it's sadly not more really usable for me at all. Further I have/use, beside my own tools, GC for everything else here, which does IMO overall a much better job than XnViewMP.

☛ 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

21 minutes ago, v_kyr said:

€18,50 for something I can do easily on my own

Well, where were you back in April 2006 when I bought FileJuicer for $12…? :P 
And here we are 17 years and literally thousands of "juiced" files later, and it still does what it's supposed to do, and it's still receiving regular free updates.

I love reliable "one trick ponies" like that. It was well spend money.

28 minutes ago, v_kyr said:

GC for everything else here, which does IMO overall a much better job than XnViewMP.

I never liked GC as an image editor, but as an image browser, batch converter or metadata editor, it's indispensable.
Oddly enough though, GC choked on that odd image from this recent thread unless I set TIFF preferences to "Decompress using CoreImage".

MacBookAir 15": MacOS Ventura > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 16 > Affinity v2

Link to comment
Share on other sites

1 hour ago, loukash said:

I love reliable "one trick ponies" like that. It was well spend money.

Well my pony is free like "Freibier"! - GC I use it mostly as it's name implies, as a converter.  That tiff I don't see that much display/view problems with that image if a right profile is setup. Beside that it either way looks like a crappy image, probably not worth the efforts!

 

☛ 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

If I recall correctly, back in the day I would often receive Word documents from my clients that contained all kind of stuff that I was supposed to reuse in layouts, like images or – ugh! – logos. Since the last version of Word that I used was Word for Macintosh 5.1 from the good ole "68k" era, I needed a tool that could "juice" literally everything out of those silly *.doc files. So buying FileJuicer was ultimately the better spent money than buying MS Office which I have otherwise absolutely no use for.

Other than that, I like Freibier as much as the next guy. (Especially since my bestest buddy got a homebrew set for his birthday last year! :82_heart_eyes_cat:)

MacBookAir 15": MacOS Ventura > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 16 > Affinity v2

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.

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

Loading...
×
×
  • 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.