• Resolved thisisbbc

    (@thisisbbc)


    Hey there,

    I was wondering something about the way TinyPNG compress the original image…

    Is the image sent to TinyPNG prior to WordPress generating all other image sizes?

    In other words, if we compress the original image, do all image sizes generated technically benefit from the original compression?

    Hope this makes sense.

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author TinyPNG

    (@tinypng)

    Hi there,

    Wordpress saves the resized images with a standard engine which does not optimize the images. It’s therefore recommended to compress the (WordPress) resized images with TinyPNG. If the original image is compressed with TinyPNG, other formats might benefit a bit size wise, but the quality would be less as you are resizing an already compressed image.

    I hope this answers your question!

    Thread Starter thisisbbc

    (@thisisbbc)

    Hey there,

    Thank you for the quick reply.

    You said that the quality of resized images would be less as we are resizing an already compressed image. Does that mean that resized images are optimized twice if the original image is compressed?

    WP Upload -> TinyPNG Compress Original Image -> WP Resize -> TinyPNG Compress Resized Image

    … does that sound about right?

    If WP Resize happens after TinyPNG has compressed the original image I believe we should benefit from most of the optimization, although I understand what you said and I’ll have to run some tests to confirm.

    Plugin Author TinyPNG

    (@tinypng)

    Hi there,

    Let me try to clarify it a bit!

    When you select all sizes to compress including the original, the procedure is as follows:

    Original image is uploaded, multiple sizes are created by WordPress, all sizes including the original are sent to TinyPNG, optimised files are returned by TinyPNG and overwrite existing images.

    Thread Starter thisisbbc

    (@thisisbbc)

    Gotcha!

    So when we optimize the original image, the multiple sizes created by WordPress are actually created before TinyPNG replaces the original with the compressed version, correct?

    Plugin Author TinyPNG

    (@tinypng)

    Correct!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Compress original image’ is closed to new replies.