# PNG vs JPEG

**URL:** <https://forum.hackingthemainframe.com/t/png-vs-jpeg/5325>\
**Category:** Tech\
**Created:** [March 14, 2008, 12:57am UTC](https://forum.hackingthemainframe.com/t/png-vs-jpeg/5325 "2008-03-14T00:57:34Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://forum.hackingthemainframe.com/uploads/default/original/2X/9/98c254f433ccdc03413891b0179886c00d3d3763.png) [@system](https://forum.hackingthemainframe.com/u/system)\
**Post date:** [March 14, 2008, 12:57am UTC](https://forum.hackingthemainframe.com/t/png-vs-jpeg/5325/1 "2008-03-14T00:57:34Z")

</div>

PNG \> JPEG

even though they are about the same size!

hmmmmm . . .

I replied to a thread in the wasteland, but a new topic was created in the original sub-forum, from my reply?

---

<div class="post-metadata">

**Author:** ![system](https://forum.hackingthemainframe.com/uploads/default/original/2X/9/98c254f433ccdc03413891b0179886c00d3d3763.png) [@system](https://forum.hackingthemainframe.com/u/system)\
**Post date:** [March 14, 2008, 7:21am UTC](https://forum.hackingthemainframe.com/t/png-vs-jpeg/5325/2 "2008-03-14T07:21:59Z")

</div>

I would go JPEG, I never even heard of png

---

<div class="post-metadata">

**Author:** ![system](https://forum.hackingthemainframe.com/uploads/default/original/2X/9/98c254f433ccdc03413891b0179886c00d3d3763.png) [@system](https://forum.hackingthemainframe.com/u/system)\
**Post date:** [March 14, 2008, 2:43pm UTC](https://forum.hackingthemainframe.com/t/png-vs-jpeg/5325/3 "2008-03-14T14:43:26Z")

</div>

Png is lossless like GIF.&nbsp; Totally different than Jpeg which is lossy.

Billy if you haven’t heard of something, how can you express an opinion on it?

---

<div class="post-metadata">

**Author:** ![system](https://forum.hackingthemainframe.com/uploads/default/original/2X/9/98c254f433ccdc03413891b0179886c00d3d3763.png) [@system](https://forum.hackingthemainframe.com/u/system)\
**Post date:** [March 14, 2008, 4:16pm UTC](https://forum.hackingthemainframe.com/t/png-vs-jpeg/5325/4 "2008-03-14T16:16:11Z")

</div>

> [@MiG](#):
>
> Png is lossless like GIF.

Well, mostly. Gifs are limited to a 256 color palette, while PNG has no output color limitations whatsoever. Both are lossless for sure, but one just has a hugely restricted color palette. 😄

Especially on the web nowadays, PNG is my choice. By far. Gif is getting increasingly antiquated.

---

<div class="post-metadata">

**Author:** ![system](https://forum.hackingthemainframe.com/uploads/default/original/2X/9/98c254f433ccdc03413891b0179886c00d3d3763.png) [@system](https://forum.hackingthemainframe.com/u/system)\
**Post date:** [March 14, 2008, 4:49pm UTC](https://forum.hackingthemainframe.com/t/png-vs-jpeg/5325/5 "2008-03-14T16:49:28Z")

</div>

I said

> [@](#):
>
> Png is lossless like GIF.

It’s not “well, mostly.”&nbsp; It is lossless like GIF.

PNG’s better than GIF for sure, but it the statement “PNG is lossless like GIF” is 100% true, not just “mostly.” 😉

---

<div class="post-metadata">

**Author:** ![system](https://forum.hackingthemainframe.com/uploads/default/original/2X/9/98c254f433ccdc03413891b0179886c00d3d3763.png) [@system](https://forum.hackingthemainframe.com/u/system)\
**Post date:** [March 14, 2008, 5:09pm UTC](https://forum.hackingthemainframe.com/t/png-vs-jpeg/5325/6 "2008-03-14T17:09:38Z")

</div>

Wonk wonk wonk. 😛

Actually, I stand behind my words.

If you bring a photo into Photoshop, for example, or perhaps create a graphic from scratch, then go to Save-As \> Gif: It _will_ degrade it down to 256 colors. Thus a “loss” of color information.

Not with PNG.

The only exception is if you create the graphic by hand and begin with, and work within the confines of the 256 color palette.

---

<div class="post-metadata">

**Author:** ![system](https://forum.hackingthemainframe.com/uploads/default/original/2X/9/98c254f433ccdc03413891b0179886c00d3d3763.png) [@system](https://forum.hackingthemainframe.com/u/system)\
**Post date:** [March 14, 2008, 6:05pm UTC](https://forum.hackingthemainframe.com/t/png-vs-jpeg/5325/7 "2008-03-14T18:05:51Z")

</div>

Lossy or lossless doesn’t refer to conversion, it refers to the compression algorithm.

GIF and PNG are both lossless, in that when you uncompress one, it’s the exact same as the original.&nbsp; Sort of like a ZIP file.

[en.wikipedia.org/wiki/Lossless\_data\_compression](http://en.wikipedia.org/wiki/Lossless_data_compression)

and

[en.wikipedia.org/wiki/Graphics\_I … nge\_Format](http://en.wikipedia.org/wiki/Graphics_Interchange_Format)

“GIF images are compressed using the Lempel-Ziv-Welch (LZW) lossless data compression technique to reduce the file size without degrading the visual quality.”

There ya go.

You’re talking about converting one data format to another, that’s not about data compression.

> [@nauticalpixel](#):
>
> If you bring a photo into Photoshop, for example, or perhaps create a graphic from scratch, then go to Save-As \> Gif: It _will_ degrade it down to 256 colors. Thus a “loss” of color information.
> 
> Not with PNG.

That’s not right either,&nbsp; converting a file into PNG will result in degradation.&nbsp; If I go out and shoot a RAW file, then open it in photoshop and save it as a PNG, Later on, I can’t open that PNG and get the original RAW file back.&nbsp;

See the difference between compression and conversion?&nbsp;

You’re thinking that lossy and lossless refer to the conversion, but they don’t.&nbsp; They refer to the compression.&nbsp;

The original statement “PNG is lossless like GIF” is 100% correct, and when you said “well, mostly” that’s not accurate.

---

<div class="post-metadata">

**Author:** ![system](https://forum.hackingthemainframe.com/uploads/default/original/2X/9/98c254f433ccdc03413891b0179886c00d3d3763.png) [@system](https://forum.hackingthemainframe.com/u/system)\
**Post date:** [March 14, 2008, 6:08pm UTC](https://forum.hackingthemainframe.com/t/png-vs-jpeg/5325/8 "2008-03-14T18:08:47Z")

</div>

PNG wont degrade the picture but will have a bigger file size. JPEG will compress the picture, which means slightly lower quality but less space used.

I like the fact that you can control the compression on JPEGs. I set mine to 1-5 compression factor, the resulting pic uses 10x less space, and the difference can usually only be seen when the picture is zoomed in.

I usually only use PNG on 2D pictures, a 2D pic never needs to be JPEG.  
If you convert anything into anything, whether it be photos/music/video, quality will go down each time.

---

<div class="post-metadata">

**Author:** ![system](https://forum.hackingthemainframe.com/uploads/default/original/2X/9/98c254f433ccdc03413891b0179886c00d3d3763.png) [@system](https://forum.hackingthemainframe.com/u/system)\
**Post date:** [March 14, 2008, 6:09pm UTC](https://forum.hackingthemainframe.com/t/png-vs-jpeg/5325/9 "2008-03-14T18:09:51Z")

</div>

That’s right, PNG is meant to replace GIF (Png is Not Gif), not Jpeg.

---

<div class="post-metadata">

**Author:** ![system](https://forum.hackingthemainframe.com/uploads/default/original/2X/9/98c254f433ccdc03413891b0179886c00d3d3763.png) [@system](https://forum.hackingthemainframe.com/u/system)\
**Post date:** [November 14, 2015, 5:03pm UTC](https://forum.hackingthemainframe.com/t/png-vs-jpeg/5325/10 "2015-11-14T17:03:04Z")

</div>

Closed on November 14, 2015, 5:03pm UTC


