Build Your Own Arcade Controls Forum
Main => Software Forum => Topic started by: BadMouth on November 16, 2010, 07:54:00 pm
-
Here's my situation:
My jukebox album art is saved along with the tracks in Album subfolders. (Music folder/Artist folder/Album folder)
There are two copies. One is named after the album and the other is just named cover.jpg
They are bitmap files, but they have the jpg extension. I'm not sure how this happened, my collection has been through a few structure changes for the sake of trying different jukebox software. The covers were originally attached to the tags, then stripped from them using an option in ThePCJukebox.
Anyways, I have bmp files with jpg extensions that I want to convert to jpegs. All the programs I've looked at to do them in batches will only work if they are all in one folder.
Does anyone know of a program that can batch convert pics in different subfolders?
-
If you have a command line tool to do the conversion, you can do something like this (syntax is probably wrong, but should help you get started). Put this into a .BAT or .CMD file:
@echo off
:: Watch the use of quotes. They are required for folder and
:: file names containing spaces.
:: cd to your music folder
pushd "C:\My Music Folder"
:: loop for all JPG files in all subfolders and call the "convert" subroutine
FOR /f "tokens=*" %%G IN ('dir /b/s *.jpg') do call :convert "%%G"
:: return to starting location
popd
::::::::::::::::::::::::::::::::::::::::::::
:: This is the convert subroutine
:convert
:: cd to the location of the file. This is required for the rename to work.
pushd "%~dp1"
:: rename the JPG file to a BMP file to match the file type
ren "%~nx1" "%~n1.bmp"
:: use whatever convert command you want, and adjust this to the proper syntax.
:: note that you can specify the BMP file as an input, and a JPG file as an output.
"c:\program files\blahblah\convert_command.exe" -input "%~n1.bmp" -output "%~n1.jpg"
:: return to previous location
popd
:: exit subroutine
goto :eof
This site will definitely help: http://ss64.com/nt/ (http://ss64.com/nt/)
Mario
-
Try Xnview to process a batch of images. I am not sure how it will work with the fact that the extensions are messed up though. It should work with subfolders.
-
Try Xnview to process a batch of images. I am not sure how it will work with the fact that the extensions are messed up though. It should work with subfolders.
Thank you. Thank you. Thank you! :applaud:
That program just saved me an eternity (and only took a minute to figure out how to use).