Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Paul Nerie 10 posts 71 karma points
    Mar 04, 2016 @ 03:35
    Paul Nerie
    0

    PNG file size and PageSpeed Insights

    I have uploaded an optimized PNG file, which is 685px x 718px, and size is 215KB.

    Testing the page on PageSpeed Insights results in a 97 score.

    I use ImageGen to load the file, set the dimensions to 663px x 695px. The generated PNG file is 751kb.

    With ImageGen, the Insights score went down to 95 because PageSpeed reports that the image file can still losslessy compressed.

    My questions are:

    1. Why is the generated file larger than the original? Is it because the file generated by ImageGen not optimized?
    2. Can we do anything about this?

    It defeats the purpose that the generated file is larger than the original, which in this case is 3x as large.

    Hoping someone can help, thanks in advance!

  • Douglas Robar 3563 posts 4597 karma points MVP 6x admin c-trib
    Mar 04, 2016 @ 08:07
    Douglas Robar
    1

    Hi, Paul,

    ImageGen is built for output quality and rendering speed, rather than every last ounce of optimization of the generated filesize. Unfortunately that means PNGs can be larger when resized than the original (optimized) image.

    One thing you can do that will help some with pngs... after ImageGen creates the PNGs and saves them to the 'cached' folder you can schedule a task to run PNGcrush or a similar utility to smash them even more than ImageGen does. It'll save some kB's and every bit helps.

    cheers,
    doug.

  • Paul Nerie 10 posts 71 karma points
    Mar 04, 2016 @ 11:01
    Paul Nerie
    0

    Hi Doug,

    Thanks for the information!

    Regards, Paul

Please Sign in or register to post replies

Write your reply to:

Draft