Wednesday 26 October 2011

Re saving PNG to JPEG to reduce file size?

Right, I run a website and have recently noticed that some of my png images are a lil large when it comes to file sizes. Messing around, I realised that by re saving them as jpeg, I can cut about 200KB off the file size, and not notice the difference (I had the two images on a slideshow, and you could not see that it was changing at all.)

Would it be a good idea to convert all my images to jpeg, or am I missing something here?
Re saving PNG to JPEG to reduce file size?
It's okay to convert to JPEG. No problem.



The only thing that you have to worry about is if the item you're displaying is color critical, then you may have to stick with PNG format.



Other than that, save yourself some space and it will increase the speed at which your website refreshes or displays a page.



*

*

*
Re saving PNG to JPEG to reduce file size?
When you save a PNG that doesn't contain transparencies as a JPEG your not losing anything visible.



For a demonstration of what you are giving up when you save to JPEG use Photoshop to create an image that is 50% transparent. Now convert that image into JPEG. When viewed in a browser you will note that in the JPEG image you are viewing doesn't render opacity. Those values are removed.



Q) Can I save space?

A) Yes you can save space by saving as a JPEG.



Q) Is there a difference between the formats?

A) Yes and it's not limited to opacity. Take a look at the link below for more information about why PNG is better.
Its perfectly fine to convert them all if you don't care about losing some of the image data. In other words, if after conversion the difference is suitable for the %26quot;intended%26quot; use of the image, then by all means convert them. I do stress intended use here. If the use was for image comparison then converting to jpeg would not be a good idea.
The PNG file format is considered %26quot;lossless%26quot;, while the JPEG file format can be lossy, depending on several different factors.



If you plan on doing any editing to these images, then keep the PNG file format for editing, and save it in JPEG format for your website.



Good Luck!
I'd recommend Photos to be converted to JPEGs. Full color images with complex graphics and no sharp lines may also benefit from JPEG.



However, for images that contains mostly flat colors and lots of sharp lines (e.g. buttons, graphs, vector images); it will be difficult to find a JPEG compression level that does not sacrifice quality.
Jpg files are lower quality than png files. But since the web is lower quality than even a jpg file, you'll probably never see the difference. (You will if you specify picture size on the page - a lot of jpg files will pixelate if you do that.)
it's a good idea to convert them, but if you're using a large picture and making it look small in your website, you might want to make the picture small and then upload it again.
Try this batch picture resize tool.

http://www.softorbits.com/batch_picture_鈥?/a>