v_kyr Posted February 22 Share Posted February 22 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 ... afthumbsgui_video.mp4 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 See for example: How to Easily Convert a Python Script to an Executable File (.exe) Here's the afthumbsGUI.py Python3 script for download: afthumbsGUI.py Have fun! loukash 1 Quote ☛ Affinity Designer 1.10.6 ◆ Affinity Photo 1.10.6 ◆ Affinity Publisher 1.10.6 ◆ OSX El Capitan☛ Affinity V2 apps still not installed and thus momentary not in use under MacOS Link to comment Share on other sites More sharing options...
loukash Posted February 22 Share Posted February 22 While I have no use for this one – since many years I use FileJuicer for these tasks – but I appreciate all your efforts nonetheless! v_kyr 1 Quote 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 More sharing options...
v_kyr Posted February 22 Author Share Posted February 22 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. Quote ☛ Affinity Designer 1.10.6 ◆ Affinity Photo 1.10.6 ◆ Affinity Publisher 1.10.6 ◆ OSX El Capitan☛ Affinity V2 apps still not installed and thus momentary not in use under MacOS Link to comment Share on other sites More sharing options...
loukash Posted February 23 Share Posted February 23 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…? 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". Quote 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 More sharing options...
v_kyr Posted February 23 Author Share Posted February 23 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! Quote ☛ Affinity Designer 1.10.6 ◆ Affinity Photo 1.10.6 ◆ Affinity Publisher 1.10.6 ◆ OSX El Capitan☛ Affinity V2 apps still not installed and thus momentary not in use under MacOS Link to comment Share on other sites More sharing options...
loukash Posted February 23 Share Posted February 23 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! ) v_kyr 1 Quote 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 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.