LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-02-2002, 02:15 PM   #1
GtkUser
Member
 
Registered: Sep 2002
Location: Canada
Distribution: Redhat 9.0
Posts: 637

Rep: Reputation: 30
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.
 
Old 10-02-2002, 02:19 PM   #2
bsdjunkie
Member
 
Registered: Sep 2002
Distribution: slack
Posts: 39

Rep: Reputation: 15
most graphics and editing tools can do this including the gimp.. Also, newer MS browsers should have no problem viewing .pngs
 
Old 10-02-2002, 02:19 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,397

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
use "convert" the gimp, or a billion trillino other filters. i prefer convert...

convert file.png file.jpg

that's it.
 
Old 10-02-2002, 02:22 PM   #4
GtkUser
Member
 
Registered: Sep 2002
Location: Canada
Distribution: Redhat 9.0
Posts: 637

Original Poster
Rep: Reputation: 30
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.
 
Old 10-02-2002, 02:31 PM   #5
GtkUser
Member
 
Registered: Sep 2002
Location: Canada
Distribution: Redhat 9.0
Posts: 637

Original Poster
Rep: Reputation: 30
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.
 
Old 10-03-2002, 01:40 PM   #6
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
convert is part of the ImageMagick tools. It's quite handy to have around for mass manipulations and such.
 
Old 04-17-2007, 07:52 AM   #7
morrolan
Member
 
Registered: Sep 2003
Location: Manchester UK
Distribution: Frustrated Ubuntu 6.10 Edgy User
Posts: 257

Rep: Reputation: 30
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?
 
Old 04-17-2007, 08:10 AM   #8
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
You could do something like:
for picture in *.png; do
convert "$file" "${file%png}jpg"
done
 
Old 04-17-2007, 08:54 AM   #9
Marsolin
Member
 
Registered: Jul 2005
Posts: 124

Rep: Reputation: 15
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.
 
Old 04-17-2007, 02:04 PM   #10
Zention
Member
 
Registered: Mar 2007
Posts: 119

Rep: Reputation: 16
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting to .jpg format satimis Linux - General 15 02-08-2006 02:12 AM
mencoder problem converting *.jpg to .avi whistl Linux - Software 9 06-29-2005 01:32 PM
how to show phtos(.jpg,.png etc) using java pranith Programming 1 01-08-2005 12:04 PM
CMD line tool for PDF -> HTML or JPG/PNG/GIF ilhbutshm Linux - Software 5 10-23-2004 04:18 AM
pnp to png or jpg illtbagu Linux - Newbie 1 01-26-2003 03:08 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration