Change png to jpg?

Thread Starter

Ron H

Joined Apr 14, 2005
7,063
In this post, I attached this file. It was a .png on my computer. It was changed to .jpg, apparently by the forum software. Was this done to minimize file size? I see that my original .png file was about 3 times the size of the posted .jpg.
No problem, I just hadn't seen this before.
 

bertus

Joined Apr 5, 2008
22,921
Hello,

I am using the .png image format for posting schematics.
I am reducing the colors to 8 Bits deep, to reduce its size.
The 24 Bits .png files can get converted to .jpg, to reduce space.

Bertus
 

bertus

Joined Apr 5, 2008
22,921

Attachments

Last edited:

panic mode

Joined Oct 10, 2011
4,974
i am running Windows and using IrfanView as image browser/manipulator that supports many file formats. It handles file conversions, and various functions like crop, rotate, effects etc. It is light and fast and - free.

for test I used screenshot with particular display content and saved it as BMP (no compression) so I could use it as same input and generate different outputs:

test 1: GIF , size 149kb
this file format is pretty good for graph content like computer generated artwork (windows etc.).
small file size, no artefacts but colour degradation was easy to see because GIF only supports up to 8-bit colours. this file format was infamously used to extort royalties, after it was used royalty-free for years. that was the main reason it was abandoned. it was great for computer generated content (lines, frames, windows etc.). for nature (people, photography) JPG was much better but neither GIF not JPEG could solve all problems. there is an improved JPEG (extension JP2) but it is not free. then PNG came along and saved the day.

test 2: JPG, high quality (set as "100"), size 578kb
bearable file size, some color degradation and no significant compression artefacts other t.

test 3: JPG, med quality (set as "60"), size 166kb
reasonable file size but more compression artefacts and more colour degradation.

test 4: PNG, 24BPP (compression set to 0), size 3Mb
nice image but way too large file for forum attachments

test 5: PNG, 24BPP (compression set to recommended value 6), size 162kb
nice image, no observable artefacts or color loss, small file size
minute color loss can be seen only in direct comparison.

test 6: PNG, 8BPP with compression value 6, size 120kb
Menu: Image: Decrease Color Depth, 8BPP then save as PNG with compression value 6.
even smaller file but looks like GIF, color degradation while noticeable it is still less than that of GIF.

As shown, some experimenting can help determine optimum but I would say that leaving everything as is, and using recommended compression setting for PNG produces very good results.
 

#12

Joined Nov 30, 2010
18,224
I've been using MS Paint for so long that I've gotten good at it. (That means minimum time wasted looking for features and the quality is pretty good, etc.) Anyway, I've been saving as PNG and the file sizes are pretty small, probably because I only use black and white. MS Paint doesn't have setting options. Lucky me, huh? It works for stupid people :)

I see here that PNG's can be outrageously large, so, Mods: which "save as" does this site prefer? Whatever makes it fairly small?
 

Audioguru

Joined Dec 20, 2007
11,248
Most nOObs post their first schematic as an extremely fuzzy Jpeg instead of as a very clear PNG.

I used an old PAINT program to make schematics for many years but now I have a new PAINT program that is completely different. I must learn it all over again.
 

Georacer

Joined Nov 25, 2009
5,182
I usually use .png to save computer generated images, such as MSPaint scribbles and schematics.
I leave photos in their original .jpeg format, but I reduce their size to 800x600 when uploading them for a more easy to use resolution.

I believe that the filesize might actually increase if one converts a real-life image from .jpeg to .png. I don't have proof, though.
 

Thread Starter

Ron H

Joined Apr 14, 2005
7,063
Most nOObs post their first schematic as an extremely fuzzy Jpeg instead of as a very clear PNG.

I used an old PAINT program to make schematics for many years but now I have a new PAINT program that is completely different. I must learn it all over again.
Yeah, but the new Paint is WAY better than the old one, and the learning curve, for me, was not steep at all.
 
Top