Tiny Core Extensions > TCE Tips & Tricks
Converting PNG files into JPG format ?
Pats:
I want to convert all the PNG graphic files in a directory named 'Graphics' into JPG format, with the same file-names except the file-extension.
Presently I am doing it using GIMP2 one file at a time, with all the default parameters. GIMP first export the PNG file into some Colour table and then convert the file into JPG format.
I think there is some command - 'convert' or something which may be doing the job. What is the exact command and which extension is needed to convert all the files in one-go ? An example command will be highly appriciated .
~ Pats
Juanito:
I suspect one of the tools supplied with ghostscript, poppler-bin, tiff-bin, etc will do this
bmarkus:
Install ImageMagick and use this command:
--- Code: ---convert file.png file.jpg
--- End code ---
or install GraphicsMagick and use command
--- Code: ---gm convert file.png file.jpg
--- End code ---
You can use wild cards.
With additional parameters you can fine tunes conversion compression, size, etc. Note jpg formet doesn't support transparency while png do, so you can loose some features with jpg.
Pats:
Thnks bmarkus,
It helped .
My graphic files are just line and graphs, so other parameters are not needed,anyhow.
Extremely sorry, I was in such a hurry to complete the job within given deadline, that I forgot to search the net.
Many-many thanks.
~ Pats
bmarkus:
Pats,
no problem, glad to hear it worked for you :)
Navigation
[0] Message Index
[#] Next page
Go to full version