Page 1 of 1

Thumbnails for text files

Posted: 06 Jan 2025 18:29
by klownboy
Has anyone been able to get thumbnails for text files? I did before using Thumbnail Extensions 1.03.exe which provides support for text file thumbnail in explorer, and it worked in XYplorer. Now Windows 11 won't even let me reinstall the program. It says this version can't run on your PC. I have text file support for MDBU and for floating preview over the file icon but no thumbnails. I was trying to break up a photo trip collection with a location and date text files to simply indicate a new travel site and the date. I could probably use a branch view for something similar (i.e., breaking up the trip locations in separate sub folders), but I'd rather not.

I Googled "Thumbnail Extensions 1.03" and it brought me to an XYolorer link viewtopic.php?p=121913#p121913. On that link I showed a screenshot of text file thumbnails back in 2015. I was on Windows 8.1 at that time.

Re: Thumbnails for text files

Posted: 07 Jan 2025 11:54
by klownboy
The reason I asked the above question; was I was hoping to come up with some alternative way to accomplish something like Google Photos is able to do. See the attached screenshot below. A simple title or separator can be inserted between photos to indicate locations, dates, comments, or whatever.
Title separators.jpg
Title separators.jpg (439.75 KiB) Viewed 1357 times
I suppose it would be similar to Explorer grouping feature but simply for title breaks, dates or comments.
Explorer grouping thumbs.jpg
Explorer grouping thumbs.jpg (71.71 KiB) Viewed 1357 times

Re: Thumbnails for text files

Posted: 20 Jan 2025 20:00
by klownboy
Still goofing around with this, here's a script that utilizes ImageMagick to write a thumbnail type label image which could be used as a text label or marker to separate sections in a thumbnail view (e.g., to distinguish different places visited or whatever the need is). See pic below. However my desire as state in my first post would be to have the label as a divider on a single row or line as shown in my first post

Hey Don, would there be any chance or coming up with or implementing some kind of hidden marker or command that could be inserted to break up a row in thumbnail views, something similar to a line feed that would be used before and after a label or marker file (i.e., when XYplorer sees the inserted marker, it starts a new row). Something like that could also be used in other grouping features in other views discussed on the forum. Thanks.
thumbnail view headers.jpg
thumbnail view headers.jpg (671.73 KiB) Viewed 1250 times

Code: Select all

// This script requires ImageMagick thou I'm sure some other graphics programs could do the same
// Start script in the folder that you would like text label files
// Input caption
   $caption = input("Enter the caption or title of your label file",, "Caption", "s",,400,300);

// provide the desired date
   $date = datepicker(,"mm-dd-yyyy");    // change format as desired

   $filename = $caption . ".png";

   $file = <curpath> . "\" . $filename;  //this is why you should start the script in the thunbnail folder desired

   run lax("D:\Graphics\ImageMagick\convert.exe " -background transparent -fill darkblue -font Arial -size 300x150 -gravity center "caption:$caption\ $date" "$filename"), , 2,0;

   selectitems $file;

// Time stamp the selected file to the date desired. This will establish proper location of the label file when the folder is sorted by date.
   timestamp cm,$date;