LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Converting .png to .jpg (https://www.linuxquestions.org/questions/linux-software-2/converting-png-to-jpg-31722/)

GtkUser 10-02-2002 02:15 PM

Converting .png to .jpg
 
How the hell do you do it? Can you use gimp to do this? Is gimp tough. They can't view .png in Microsoft, right.

bsdjunkie 10-02-2002 02:19 PM

most graphics and editing tools can do this including the gimp.. Also, newer MS browsers should have no problem viewing .pngs

acid_kewpie 10-02-2002 02:19 PM

use "convert" the gimp, or a billion trillino other filters. i prefer convert...

convert file.png file.jpg

that's it.

GtkUser 10-02-2002 02:22 PM

Quote:

Originally posted by acid_kewpie
use "convert" the gimp, or a billion trillino other filters. i prefer convert...

convert file.png file.jpg

that's it.

Thats all I have to type! Holy Jesus Christ, that's great.

GtkUser 10-02-2002 02:31 PM

Quote:

Originally posted by bsdjunkie
most graphics and editing tools can do this including the gimp.. Also, newer MS browsers should have no problem viewing .pngs
Okay, I didn't know that MS could display .png's.

stickman 10-03-2002 01:40 PM

convert is part of the ImageMagick tools. It's quite handy to have around for mass manipulations and such.

morrolan 04-17-2007 07:52 AM

But can convert do mass conversion? I.e. if I have a folder full of PNG's, can I do:

convert *.png *.jpg

or will that b0rk?

jschiwal 04-17-2007 08:10 AM

You could do something like:
for picture in *.png; do
convert "$file" "${file%png}jpg"
done

Marsolin 04-17-2007 08:54 AM

If you use KDE and have ImageMagick installed all you have to do is right-click the files in Konqueror, go to the Actions menu | Convert To, and pick the desired format.

Zention 04-17-2007 02:04 PM

They can view png in Microsoft. I am going to assume you mean Internet Explorer.

The problem is alpha channel that doesn't/didn't work so well. But, if your images are not using the alpha channel and yet again I will assume they don't because you are going to jpg, then yeah just use png.

Otherwise you go to gif and use transparency.

The alpha channel helps when you have a image you wish to place on different coloured backgrounds, it is smoother than transparency.


All times are GMT -5. The time now is 05:43 AM.