Create a lot of folder.jpg files automatically
#1
Hi,

I already have a large archive of FLAC music files orgainsed in folders and subfolders. The album-folders already contain a file "image.png" with the cover art. For Kodi I need to convert them to "folder.jpg". But how can I do that for all these files automatically? From an other thread I got this command

Code:
find /path -type f -name "image.png" -exec convert "{}" "???" \;

My question is the "Huh" part - what do I have to write there to not to get the path to the "image.png" but the path to the new "folder.jpg", means how can I change the file name part in this command?

Thanks!
Reply
#2
change your directory to the top level of your flacs that your want to change then type:

find . -name "image.png" -exec convert {} folder.jpg \;

the period means start at the current directory and traverse down.
convert is part of the imagemagik suite if you need to install that.
the curly brackets represent the CURRENT image.png which will then be converted to a folder.jpg in that directory (ie the right place)
the backslash semicolon is the find command terminator.
|-<:)
Reply

Logout Mark Read Team Forum Stats Members Help
Create a lot of folder.jpg files automatically0