How can I convert a .png to .jpeg?

Booting, installing, newbie
Post Reply
Message
Author
User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

How can I convert a .png to .jpeg?

#1 Post by DaveS »

Does not seem to be an option in Mtpaint?
Spup Frugal HD and USB
Root forever!
don922
Posts: 433
Joined: Sat 19 Jan 2008, 07:58
Location: Nong Yai Buah

convert .png to .jpg

#2 Post by don922 »

Unless I'm missing something the conversion appears to be very simple:

1. Load a .png file into mtPaint (important * )
2. Click File>Save As
3. In File Format section of the Save Image File window select JPEG in the selector

* The File Format section of the Save Image File window does not include the JPEG selection if a .png file is not loaded.

Even though the file will be named xxxxx.png in the Save Image File window it will be saved as xxxxx.jpg.

This is in mtPaint 3.21 included in Puppy 4.12
[color=green][i]Don -- Thailand[/i][/color]
[url=http://www.puppylinux.com][img]http://tinypic.com/4e0tojl.jpg[/img][/url]
User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

Re: convert .png to .jpg

#3 Post by DaveS »

don922 wrote:Unless I'm missing something the conversion appears to be very simple:

1. Load a .png file into mtPaint (important * )
2. Click File>Save As
3. In File Format section of the Save Image File window select JPEG in the selector

* The File Format section of the Save Image File window does not include the JPEG selection if a .png file is not loaded.

Even though the file will be named xxxxx.png in the Save Image File window it will be saved as xxxxx.jpg.

This is in mtPaint 3.21 included in Puppy 4.12
Oh Sh*t........ how did I miss that! I am sure it did not give me that option before.........
Thanks.
Spup Frugal HD and USB
Root forever!
User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#4 Post by smokey01 »

It is even stranger.

If you load an existing .jpg it does not give you an option to save as a .gif file however, if you load an existing gif file then the option to save it as a .jpg disappears.
User avatar
Dingo
Posts: 1437
Joined: Tue 11 Dec 2007, 17:48
Location: somewhere at the end of rainbow...
Contact:

#5 Post by Dingo »

smokey01 wrote:It is even stranger.

If you load an existing .jpg it does not give you an option to save as a .gif file however, if you load an existing gif file then the option to save it as a .jpg disappears.
this can be sound stranger for people ignoring image formats basics:

a GIF format gives a representation of an image/draw using a limited palette (256 colors max)

a jpeg (jpg) format can handle images in milions of colouors, but not indexed images

so, in order to convert a jpg in gif, you must before reduce colors dept, then you will see option to save as a gif
replace .co.cc with .info to get access to stuff I posted in forum
dropbox 2GB free
OpenOffice for Puppy Linux
User avatar
Indy
Posts: 73
Joined: Wed 01 Feb 2006, 10:52
Location: Sydney, Australia

#6 Post by Indy »

Ah, now I see!

At first I couldn't find the Save as File Format JPEG option either.

I'd created a new image in mtpaint, saved as PNG, re-opened it again in mtpaint, tried to save but still didn't see the Save As JPEG option.

Then I realised that when I created my test image, I used the default of "Indexed Palette".

As per Dingo's post, JPEG doesn't do "indexed".

Once I did "Image > Convert to RGB", when I went again to "File > Save As...". this time the JPEG option was available.

Excellent. Thanks!

(p.s. Now I don't need to jump into GIMP to do this)
User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#7 Post by Flash »

It might be helpful if someone would explain what an indexed image is. :?
User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#8 Post by Bert »

Flash wrote:It might be helpful if someone would explain what an indexed image is. :?
Yes, I agree, it shouldn't be taken for granted that we all now what that means..
As often, Wikipedia comes to the rescue here. Not that I understand it all, but it's a start I suppose :wink:

Good idea to bring this up, Multisession Master.. :)
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]
User avatar
Indy
Posts: 73
Joined: Wed 01 Feb 2006, 10:52
Location: Sydney, Australia

#9 Post by Indy »

Ha, yes. Same. I still don't really know what "indexed" is either, so thanks for that link. I'll try to learn. :)

By the way, that link to the Wikipedia article has an extra "L" at the end... here's the link again (fixed):

http://en.wikipedia.org/wiki/Indexed_color
User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#10 Post by Bert »

Oops.. sorry for the bad link. Thanks for fixing it 8)

Bert
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]
looseSCREWorTWO
Posts: 812
Joined: Thu 04 Feb 2010, 13:16
Location: Australia, 1999 Toshiba laptop, 512mb RAM, no HDD, 431 Retro & 421 Retro

#11 Post by looseSCREWorTWO »

I use IrfanView in WINE to do stuff like this.

That way I can remain Blissfully Ignorant about all sorts of things, including indexed images.
Steve
User avatar
Makoto
Posts: 1665
Joined: Fri 04 Sep 2009, 01:30
Location: Out wandering... maybe.

#12 Post by Makoto »

There's also a .pet or two (not to mention an .sfs, if I remember correctly) of the Linux version of XNView lurking... :)
[ Puppy 4.3.1 JP, Frugal install ] * [ XenialPup 7.5, Frugal install ] * [XenialPup 64 7.5, Frugal install] * [ 4GB RAM | 512MB swap ]
In memory of our beloved American Eskimo puppy (1995-2010) and black Lab puppy (1997-2011).
muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#13 Post by muggins »

Sam2p does this easily, via commandline:

Code: Select all

sam2p xxx.png xxx.jpg
Write a simple bash script & convert a directory of png files.
Post Reply