Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #63773


Ignore:
Timestamp:
07/31/2025 04:56:53 PM (16 months ago)
Author:
adamsilverstein
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #63773 – Description

    initial v1  
    1 When uploading a palette based PNG image and attempting to use core's `image_editor_output_format` to output WebP or AVIF images, conversion fails with a fatal error when using GD. GD cannot convert palette-based PNG to WebP/AVIF formats so to fix the issue, a palette image is first converted to truecolor (`imagepalettetotruecolor`). Testing shows the fatal is resolved and the resulting images are still significantly smaller than their PNG counterparts.
     1When uploading a palette based PNG image and attempting to use core's `image_editor_output_format` to output WebP or AVIF images, conversion fails with a PHP error when using GD. GD cannot convert palette-based PNG to WebP/AVIF formats so to fix the issue, a palette image is first converted to truecolor (`imagepalettetotruecolor`). Testing shows the PHP error is resolved and the resulting images are still significantly smaller than their PNG counterparts.
    22
    33