Generating Cover with Details

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
jdev21
Posts: 45
Joined: 08 Oct 2014 22:13

Generating Cover with Details

Post by jdev21 »

I am in the process of creating covers/thumbnails for my image collections. I am trying to make them look almost like a magazine cover to the image collection for various different uses.
Right now I am able to select an image and click a button to run the script below to copy the image and put the folder name at the bottom of it.
My question: Does anyone know of possible ways to get more information like the amount of images inside that folder? Any other suggestions for good information for the cover would be welcome as well.
I am open to using third-party scripts (the command below is using imagemagick).

Code: Select all

     run "cmd /c convert ""<curitem>"" -fill white -undercolor ""#00000080"" -gravity South -font ""avenir lt std"" -pointsize 50 -annotate +0+15 ""   <curfolder>   "" ""<curpath>\.<curfolder>.jpg""", , 2,0;

highend
Posts: 14568
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Generating Cover with Details

Post by highend »

Does anyone know of possible ways to get more information like the amount of images inside that folder?
That depends:

01. Simple count (all files are REALLY pictures)

Code: Select all

$cnt = get("countitems");
02. A single picture type (e.g. *.jpg)

Code: Select all

$cnt = gettoken(listfolder(, "*.jpg"), "count", "|");
03. More accurate (you can filter by file type):

Code: Select all

$cnt = gettoken(formatlist(listfolder(), "f", , "*.jpg|*.tif|*.png", "f"), "count", "|");
Any other suggestions for good information for the cover would be welcome as well
Maybe basic EXIF information?
One of my scripts helped you out? Please donate via Paypal

Post Reply