Converting Files to PNG

rstrong wrote on 11/7/2014, 1:27 PM
Hello,
Why does converting a jpg file to png, cause the file to increase 8 times? I am using Irfan View.

thanks,
robert

R. Strong

Custom remote refrigerated water cooled system for CPU & GPU. Intel i7- 6950X, 10 Core (4.3 Turbo) 64gb DDR4, Win7 64 Bit, SP1. Nvidia RTX 2080, Studio driver 431.36, Cameras: Sony HVR-Z5U, HVR-V1U, HVR-A1U, HDR-HC3. Canon 5K MK2, SX50HS. GoPro Hero2. Nikon CoolPix P510. YouTube: rstrongvideo

Comments

John_Cline wrote on 11/7/2014, 2:01 PM
Because a .JPG file always uses lossy compression, PNG files are typically lossless and are always much bigger than lossy files. The same is true of video files, uncompressed files are often massively bigger than say, MPEG2 or MP4 (h.264) files at the same image size, frame rate and color depth.
Gary James wrote on 11/7/2014, 2:22 PM
"PNG files are typically lossless and are always much bigger"

John, that's simply not true. Almost all of the images I use on my web sites are .png format because I find them to produce better visual results in a smaller file. I too use Irfanview for much of my image capture work. But when I save files I use the Irfanview Save For Web plugin.
rs170a wrote on 11/7/2014, 2:29 PM
Robert, I use IrfanVIew all the time and have never seen a 8X increase.
Here are the results of one very quick jpg to png test.
47K > 95K
2148K > 2220K
5029K > 3728K
41K > 80K
1584K > 5232K

Mike
Gary James wrote on 11/7/2014, 2:37 PM
Mike, did you use the Save For Web plugin in your tests?
rs170a wrote on 11/7/2014, 2:48 PM
Gary, all I did was use the built in batch converter and left everything at default.

Mike
John_Cline wrote on 11/7/2014, 3:19 PM
Note that I said "typically lossless", there is usually no loss of image quality in a PNG file. PNG files do have a form of ZIP-type compression which can make the files smaller, particularly if they are graphics with large expanses of the same color. Even though PNG is designed as a lossless format, PNG encoders can reduce the number of colors used in the color palette to improve PNG compression, this is the method that the "Save for Web" option in IrfanView uses. Generally speaking, PNG files will be larger than .JPG files on real-world photographs.
johnmeyer wrote on 11/7/2014, 3:58 PM
In support of John:

PNG Format
Gary James wrote on 11/7/2014, 4:01 PM
Guys, I'm not disputing the attributes of PNG files. All I said was that PNG files are NOT always bigger as was originally stated.
johnmeyer wrote on 11/7/2014, 5:51 PM
Guys, I'm not disputing the attributes of PNG files. All I said was that PNG files are NOT always bigger as was originally stated. Absolutely true. As a corollary to that, most photo editing programs let you set JPEG compression to zero, so that too can become lossless.
rstrong wrote on 11/7/2014, 8:01 PM
So, can someone remind me why Vegas Pro prefers png's to jpegs, or does it really matter since the loss is almost not noticeable?
Using the defaults in Irfanview, the conversion to png still increases file size, so I might as well stay with the smaller jpeg.

thanks,
robert

R. Strong

Custom remote refrigerated water cooled system for CPU & GPU. Intel i7- 6950X, 10 Core (4.3 Turbo) 64gb DDR4, Win7 64 Bit, SP1. Nvidia RTX 2080, Studio driver 431.36, Cameras: Sony HVR-Z5U, HVR-V1U, HVR-A1U, HDR-HC3. Canon 5K MK2, SX50HS. GoPro Hero2. Nikon CoolPix P510. YouTube: rstrongvideo

PeterDuke wrote on 11/7/2014, 8:44 PM
Vegas accepts both JPG and PNG without fear or favour. If you lightly compress JPG, in practice no-one will notice the difference from a lossless PNG.

Vegas will be happier though, if the resolution of each image is not too much greater than the resolution of your video. If you plan to zoom in or pan, then the resolution should be appropriately higher.
Gary James wrote on 11/7/2014, 8:57 PM
"So, can someone remind me why Vegas Pro prefers png's to jpegs"

I thought it wasn't so much that Vegas prefers PNGs over JPGs, it's that PNGs support an alpha channel for transparencies.
John_Cline wrote on 11/7/2014, 9:36 PM
There has been a rumor going around the forum for years (and I've probably said it myself) that Vegas handles PNG files natively but that has never been confirmed one way or the other. Vegas seems to be happier with PNG files. Regardless, Vegas must decompress whatever file format gets used and PNG files could decompress a bit faster than JPG files. This would likely be more noticeable when using image sequences. Other than that, there really isn't much to be gained by converting JPG files to PNG files as the visual damage has already been done by the JPG encoding.
ushere wrote on 11/7/2014, 10:04 PM
and i too voiced that opinion (vegas prefers jpgs) - but then again, my wife say's my mouth starts well before my brain kicks in to gear ;-)

that said, i did have some problems with client jpgs, but none when converted to png.