Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #57003, comment 3


Ignore:
Timestamp:
11/07/2022 10:20:32 PM (19 months ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57003, comment 3

    initial v1  
    22> it appears we simply do not generate a scaled-down PNG because the image could be larger.
    33
    4 Correct. WP doesn't try to scale large PNGs because the resulting images usually have larger file size, sometimes significantly (1.5 - 2 times) larger. Scaling of PNGs with (some versions) of GD and ImageMagick seems to be somewhat problematic.
     4Correct. WP doesn't try to scale large PNGs because the resulting images usually have larger file size, sometimes significantly (1.5 - 2 times) larger. Scaling of PNGs with (some versions of) GD and ImageMagick seems to be somewhat problematic.
    55
    66> Shouldn't we introduce a file comparison check like I'm proposing here in any case? This way we could potentially remove that condition to not attempt PNG downscaling and instead make a decision afterwards which image is "better".