At the moment only "JPEG Image" files are allowed. Your images are "Paintshop Pro 8 Image" files. In the next version I will use file extension instead of image type, as no doubt other software stores their own name instead of the actual image type!
trixmoto - I don't understand why the "folder.jpg" is not a "JPEG" file as you suggest. The association in windows was set by me to open ".jpg" with Paint Shop Pro. It is not Paint Shop Pro's own proprietry format (.psp).
Also 5 other graphics programs all recognise the file "folder.jpg" as a .jpg (which also includes - jpeg/jfif/jpe) graphics format file.
I also have 17 other graphics formats associated with PSP8 and they will all now show as "Paint Shop Pro 8 Image" whenever I hover over them - they also show this way in Windows Explorer in the file type column.
Just for a test I re-associated all .jpg files with MS Paint and downloaded a new cover and saved it as "folder.jpg" - the script errors now show "MS Paint File" instead of the PaintShop file type. Any graphics program will change the pop up to whatever program has the .jpg association assigned to it.
The file format is not the problem I don't think - as the file "folder.jpg" is definitely .jpg graphics format.
I guess I have the same question as teemac... why would the Windows file association matter? This only determines the default application used to open a file and doesn't have any effect on the file itself. The image files that I am using are all standard jpeg, but they don't seem to work with the script(?)
Just tried again with the same file that was causing the fault before and everything works perfectly now... thanks!
One more question... when the image file is added to a track the 'Image Type' field shows as 'Not Specified'. Is there a way to set the default image type to the commonly used 'Cover (front)' descriptor instead of 'Not Specified'?
Note that I'm not talking about the text in the 'Description' field, I can see how to change that, I'm referring to the 'Image Type' field.
trixmoto - Thanks for all your hard work and for v2.1 - it now is adding the image to the mp3 files OK.
After running the script, I delete the "folder.jpg" file from the album folder, rescanning the test folder, monkey does not show albumart (from the file that the script has added art to) when either "now playing" or "selected" is chosen as art viewing method. Tag&Rename confirms art is present, but monkey won't show it.
Can monkey show art from the tag or does "folder.jpg" need to stay in the album folder? I need to do some more research on this.
Thanks anyway for your skills in solving the problem.
...if you remove the comment ('), I believe 5 is correct for Cover (Front).
@teemac - MM should display the artwork if it is correctly in the tags without needing an external image. I'll have a check to make sure it's not something I've missed, but maybe sending a debug log to the MM team would highlight why this is not working.