montage: label images with part of filename
Posted: 2015-08-14T06:33:49-07:00
I would like to montage multiple files with names like these:
I want to label each image with only part of filename before underscore _
If I use the following command then whole filename is displayed that is quite long. Is it possible to extract substring from filenames somehow?
Code: Select all
1235_9123a46d52ecb2de.png
123_6a51ef8968c64b94.png
1269_a7059318d47dbc01.png
12_45fb8c628863d77a.png
1347_04355d15f39e1e06.png
1349_bcbad21a686712d1.png
1368_229b9d3f692fdd61.png
1369_f69c36e04ba37bcb.png
137_ec3571cde47f7b8a.png
...
If I use the following command
Code: Select all
montage -label %t * show: