I sometimes receive audio files with a .JPG image. When I upload the .JPG image to my server, there's a conflict, and the image doesn't appear on the website.
When I use the Action command in Mp3tag, can I program a formula to get:
As far as I understand you, you have these JPG-covers embedded in the file and want to extract them to a file.
You can do this manually with a right mouse click on the embedded picture and select "Extract Cover". The file will be saved with the scheme you have defined in Options->Tag sources->Default file name for cover art. The scheme has to be %artist%-%album%
You can also do it with an action of the type "Export cover to file" and the same scheme for "Format string for image filename".
The suffix (jpg) is always in lower case, when you export en embedded image. Therefore you just have to use the format string in my answer (without $lower()).
If you use the above Action "Export cover to file" with the above Format string %artist%-%album%
you get the extension jpg in lowercase.
No special treatement is necessary. Just try it.
If you use another way to extract the cover picture - like drag & drop? - then you have to set the same Format string
in File -> Options -> Tag Sources -> "Default filename for cover art": %artist%-%album%
It's possible to get an uppercase image file extension like JPG if the mimetype of the embedded image is something like image/JPG instead of image/jpeg.
For unknown mimetypes, I'm trying to derive the file extension from the part after image/ (if this fails, I'm trying to inspect the image data to identify the file type).
For the cases where the image file extension is derived from the part after image/, it's currently not possible to manipulate the file extension, e.g., change to lowercase.
If it is really important to have all .JPG extensions in lowercase, you can use a Windows-CMD-Batchfile like this and rename all the .JPG with a double click: for %%F in (*.JPG) do ren "%%F" "%%~nF.jpg"
This would rename all *.JPG into *.jpg in the same directory as the CMD-Batchfile.
Just copy & paste the above line into a new empty CMD-Batch with a name like Rename_JPG_Extension_in_lowercase.cmd
Thanks @Florian for your explanation, I'm starting to understand better.
& thanks @LyricsLover for the MIME command. I didn't understand this command. It's really cool. Finally, I can see my images/JPGs before extracting them.