Make WordPress Core

Opened 4 years ago

Closed 3 months ago

Last modified 3 months ago

#57085 closed defect (bug) (wontfix)

Media autoscale threshold change picture's colors

Reported by: fernandot Owned by:
Priority: normal Milestone: Awaiting Review
Component: Media Version: 5.3
Severity: major Keywords: needs-patch close
Cc: Focuses:

Description

When uploading a picture, the automatic autoscale threshold (2560) changes the picture's colors to a different color profile (fewer colors, less vivid)

I've deactivated the automatic autoscale with

add_filter('big_image_size_threshold', '__return_false');

and the issue disappears

This is a big problem for photography-related blogs or websites, where photo quality makes the difference.

It's ok to scale the images for better performance, but we should be able to avoid it without loss of quality.

Note: I've tried to remove the jpg quality loss applied by WordPress and that's not the problem, the problem comes with the autoscale.

(Attached: image file without autoscale, image file with autoscale)
https://aulawp.com/web/wp-content/uploads/2022/11/prueba-Barbeiro-5670.jpg
https://aulawp.com/web/wp-content/uploads/2022/11/prueba-Barbeiro-5670-1-scaled.jpg

Attachments (5)

prueba-Barbeiro-5670.jpg (2.5 MB ) - added by fernandot 4 years ago.
Image file without WP auto scale
prueba-Barbeiro-5670-1-scaled.jpg (351.9 KB ) - added by fernandot 4 years ago.
Image file after WP auto scale
prueba-Barbeiro-5670-scaled.jpg (411.3 KB ) - added by nickchomey 3 months ago.
prueba-Barbeiro-5670-1-scaled.2.jpg (411.3 KB ) - added by nickchomey 3 months ago.
prueba-Barbeiro-5670-3-scaled.jpg (351.9 KB ) - added by nickchomey 3 months ago.

Change History (9)

@fernandot
4 years ago

Image file without WP auto scale

@fernandot
4 years ago

Image file after WP auto scale

#1 @johnbillion
4 years ago

  • Version 6.15.3

#2 @fanvid
4 years ago

Im having a similar issue, new image uploads, every 2 or 3 images in 10 will come out corrupted after going through wordpress...

#3 @nickchomey
3 months ago

I cant really replicate this. I just uploaded the same file and, yes, it does lose some *detail* - as you'd expect - but the colour/tone doesn't seem all that different. Certainly not like yours shows.

I uploaded 2 versions - the 2nd one is after I applied a change to the Imagick editor that I've been working on - it might be barely-perceptibly better.

Can you share info about your server environment? Perhaps you're using GD rather than Imagick?

There's info in https://[YOURSITE.COM]/wp-admin/site-health.php

#4 @nickchomey
3 months ago

  • Keywords close added
  • Resolutionwontfix
  • Status newclosed

That last one was done with GD. So, yeah, that seems to be the issue. Honestly, GD doesn't really get a lot of love because Imagick is generally superior in terms of image quality, and is available when using most webhosts.

So, I'm going to close this and suggest you contact your host about Imagick support, or find a new one (they don't deserve your business if they don't have Imagick...).

Also WordPress 7.1 will be introducing a new image processing mechanism that runs in the browser, and uses the best-in-class libvips tool to do it. It'll almost certainly be faster, and probably higher quality as well.

They're currently looking for testers, so i encourage you to check that out: https://make.wordpress.org/core/2026/06/04/call-for-testing-client-side-media-processing/

Last edited 3 months ago by nickchomey (previous) (diff)
Note: See TracTickets for help on using tickets.