After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 740654 - Autodetecting picture type by filename should include 'Leaflet page' picture type
Autodetecting picture type by filename should include 'Leaflet page' picture ...
Status: RESOLVED FIXED
Product: easytag
Classification: Other
Component: general
2.3.x
Other All
: Normal enhancement
: 2.2
Assigned To: EasyTAG maintainer(s)
EasyTAG maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-11-24 20:07 UTC by J.B. Nicholson
Modified: 2014-11-24 21:50 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description J.B. Nicholson 2014-11-24 20:07:28 UTC
I tried adding some "Leaflet" type pictures to FLAC files and was surprised that EasyTAG didn't recognize the type of picture from the filenames -- leaflet08-09.jpg, leaflet10-11.jpg, leaflet12-13.jpg, and so on.

You will need:
- a directory of FLAC files
- some JPEG images with names like "leaflet01-02.jpg", "leaflet03-04.jpg", and so on.

Steps to reproduce:
1. Launch EasyTAG and point EasyTAG at a directory of FLAC files.
2. Select some FLAC files (it doesn't matter how many) and switch to the image tab in the right of the application to set some pictures.
3. Drag in the JPEG image files into the image area and see what type of image EasyTAG associates with the images.

EasyTAG seems to find front and back covers based on the filename, but not leaflet page images. My image filenames were added as front cover type images, so I had to edit each image type.

It would be good to either:
- add more substrings/regexes to automatically identify the image type based on the image filename,
- or (better still) let the user edit the mapping and ordering of image filename substring/regexes so the user could add "leaf(let)?" as a regular expression mapped to a "Leaflet page" image type.
Comment 1 David King 2014-11-24 21:50:34 UTC
I added several more strings to the type guesser on master as b6e9d66d8a305209160706bd916f2f7282055063. Having user-settable strings (or regexes) with priorities is a good idea, so I added it to the etherpad, but will probably not get around to it for a while.