Page 1 of 1

Generating Cover with Details

Posted: 06 Aug 2016 19:07
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;

Re: Generating Cover with Details

Posted: 06 Aug 2016 19:44
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?