LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 07-14-2004, 11:09 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
pictures .pmg to jpeg?


When I save pics in my Fedora Core 2 distro I see they show up with a .pmg extension. Is there a way to convert them as jpegs or in the future save them as jpegs or does it even matter?
 
Old 07-14-2004, 11:14 PM   #2
pave_spectre
Member
 
Registered: Jan 2004
Location: Behind You!
Distribution: Slackware 10 | SmoothWall 2.0 | FreeBSD 4.8
Posts: 56

Rep: Reputation: 15
What pictures are you saving?
Where are you saving from?
Did you check the image properties before saving? Are you sure they are jpeg files?

Are you sure its saving as pmg and not png?

Last edited by pave_spectre; 07-14-2004 at 11:15 PM.
 
Old 07-14-2004, 11:21 PM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
sorry - I am at work and dont have my PC infront of me - yes , they are png files and I just right click them from the internet and save to a folder - maybe I am not changing the extension. Is png default?
 
Old 07-14-2004, 11:25 PM   #4
pave_spectre
Member
 
Registered: Jan 2004
Location: Behind You!
Distribution: Slackware 10 | SmoothWall 2.0 | FreeBSD 4.8
Posts: 56

Rep: Reputation: 15
If you check the properties on the files before saving you will probably find that they are png images rather than jpeg.

Unless for some reason you need them to be jpegs you can leave tham as is and they should work fine.
 
Old 07-14-2004, 11:29 PM   #5
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
when I go to a website and download a pic on my XP machine, it is a jpeg - when I download the same pic on Linux - its saved as an .png

will it effect the pic of I save the .png as a jpeg?
 
Old 07-15-2004, 12:28 AM   #6
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333

Rep: Reputation: 40
The swiss army knife for image formats is ImageMagick, which is a collection of command line tools that allow you to do virtually anything with images. The "convert" utility will do the trick --

convert file.png file.jpg

makes a jpeg out of a png.

It will also make any other from any other, by the way. Example, a screen shot:

xwd | convert - screen.jpg

xwd produces a dump file on stdout, we just pipe it into convert and get a nice jpg.

You can resize, crop, touch up, color transform, add text, superimpose some primitive drawings, produce animated gifs, you name it, it does it. Ever had to quickly make thumbnails of 1500 images?

Hope it helps,
mlp
 
Old 08-19-2004, 09:00 AM   #7
miner
Member
 
Registered: Feb 2004
Location: Canada
Distribution: FC3
Posts: 73

Rep: Reputation: 15
how do i batch resize with the convert command

for one photo i type in

Code:
convert 100_1191.JPG -resize 800x533 pic1.JPG
but i am clueless on how to do 25 at once. would it be

Code:
convert 10*.JPG -resize 800x533 pic1.JPG pic2.JPG pic3.JPG etc.....
 
Old 08-19-2004, 11:45 AM   #8
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333

Rep: Reputation: 40
Just make a little script, e.g. c.sh:

Code:
#! /bin/sh

# convert something.JPG into a smaller something_small.JPG,
# eg 100_1191.JPG --> 100_1191_small.JPG

for file in $* ; do

convert $file  -resize 800x533 `echo $file | sed 's/.JPG/_small.JPG/g'`

done
make c.sh executable - chmod +x c.sh

then do

./c.sh *.JPG

it will make smaller versions of the image with the new name.

Hope it helps,
mlp
 
Old 08-19-2004, 12:06 PM   #9
miner
Member
 
Registered: Feb 2004
Location: Canada
Distribution: FC3
Posts: 73

Rep: Reputation: 15
thanks, it worked.
 
Old 08-19-2004, 12:19 PM   #10
shengchieh
Member
 
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472

Rep: Reputation: 30
Easiest way: Use

http://wheel.compose.cs.cmu.edu:8001.../browse/objweb

Sheng-Chieh
 
  


Reply



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
JPEG and Monochrome James_dean Programming 6 11-10-2005 06:12 PM
Jpeg? sonic04002 Linux - Newbie 3 11-02-2005 02:18 PM
gd won't see jpeg library pigmut Red Hat 0 03-05-2004 02:56 AM
no jpeg support arrruken Linux - Software 1 03-03-2004 01:11 AM
Jpeg Modification Endy Programming 0 02-17-2003 04:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:25 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration