by DanielCuriousLayman » Sat Apr 13, 2024 11:46 am
Hello!
Today's APOD image is considerably larger in file size than it needs to be, as it's been saved using the PNG format. It should likely be using JPEG instead. I am referring to the image at this path:
https://apod.nasa.gov/apod/image/2404/p ... lm1024.png
I have confirmed I can download the approximately 1 Megabyte PNG file and re-save in PNG format and achieve something like a 78% file size reduction to bring down to around 215 Kilobytes.
It's possible few APOD users will notice, what with prevalence of high-speed broadband these days, but I thought I'd share this IT professional's suggestion anyway!
By the way, for those curious:
PNG is excellent for images that feature sharp lines and flat colors, such as screenshots of computer software. As PNG is a 'lossless' encoder, it's ideal at preserving the fine structure in things like logos, Excel spreadsheets, charts, info graphics, etc. Additionally, PNG supports images having regions of transparency where a background color or image can 'peek through', something you can't do with JPEG.
JPEG is an excellent choice for non-professional photography where lossy encoding is acceptable. It's a particularly good choice for photographic images that have already been modified and edited in a higher-quality 'RAW' format before being saved again for distribution to others, including over the internet. It provides a reasonable balance between image quality and file size. It is worth reiterating that not only is JPEG lossy, it also suffers from something called 'generation loss', where repeatedly decoding and re-encoding an image to save it again causes a loss of information each time, degrading the image.
Anyway, thanks for having me!
Daniel
Melbourne, Australia
Hello!
Today's APOD image is considerably larger in file size than it needs to be, as it's been saved using the PNG format. It should likely be using JPEG instead. I am referring to the image at this path: https://apod.nasa.gov/apod/image/2404/pinholepalm1024.png
I have confirmed I can download the approximately 1 Megabyte PNG file and re-save in PNG format and achieve something like a 78% file size reduction to bring down to around 215 Kilobytes.
It's possible few APOD users will notice, what with prevalence of high-speed broadband these days, but I thought I'd share this IT professional's suggestion anyway!
By the way, for those curious:
PNG is excellent for images that feature sharp lines and flat colors, such as screenshots of computer software. As PNG is a 'lossless' encoder, it's ideal at preserving the fine structure in things like logos, Excel spreadsheets, charts, info graphics, etc. Additionally, PNG supports images having regions of transparency where a background color or image can 'peek through', something you can't do with JPEG.
JPEG is an excellent choice for non-professional photography where lossy encoding is acceptable. It's a particularly good choice for photographic images that have already been modified and edited in a higher-quality 'RAW' format before being saved again for distribution to others, including over the internet. It provides a reasonable balance between image quality and file size. It is worth reiterating that not only is JPEG lossy, it also suffers from something called 'generation loss', where repeatedly decoding and re-encoding an image to save it again causes a loss of information each time, degrading the image.
Anyway, thanks for having me!
Daniel
Melbourne, Australia