[wp-trac] [WordPress Trac] #58435: Media library strips color profiles => significant image color problems
WordPress Trac
noreply at wordpress.org
Wed Oct 23 20:33:44 UTC 2024
#58435: Media library strips color profiles => significant image color problems
-------------------------+------------------------------
Reporter: gregbenz | Owner: adamsilverstein
Type: enhancement | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: Media | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+------------------------------
Comment (by azaozz):
Replying to [comment:11 gregbenz]:
> While I am personally OK using ImageMagick instead of the native WP
image processing
Just to be clear: WordPress uses the ImageMagick image editor if it is
installed on the server. If not, it falls back to using GD which is the
[https://www.php.net/manual/en/book.image.php default image editor] for
PHP. As far as I know GD doesn't retain any color profiles when resizing
images, there is an old issue about that:
https://github.com/libgd/libgd/issues/136.
> I would hope this is a fairly simple enhancement for CICP/NCLX, as all
that is needed is to not remove the metadata.
Yes, seems CICP (and NCLX?) can simply be
[https://github.com/WordPress/WordPress/blob/6.2.2/wp-includes/class-wp-
image-editor-imagick.php#L919-L934 added to the list] of retained meta
tags when resizing JPEGs with ImageMagick (may be wrong but thought NCLX
is only for AVIF images).
So seems this ticket is for an enhancement to existing functionality. If
that's correct thinking perhaps the title should be changed to something
like: "Keep CICP and NCLX color profiles when resizing JPEGs". Would
describe this better imho.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58435#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list