Resizing Images
-
Hi,
Wordpress has a serious problem resizing/compressing images that i cannot fix in any way. Using the latest current WP (5.6) start with a large (4096 x 4096 pixels) all white RGB(255,255,255) image, example here.
In the “Media Settings” set the images sizes to something like this:Large Size: 1920 x 1920
Medium Size: 510 x 510
Thumbnail Size: 247 x 247Now upload the image to the media folder and check the thumbnail size (247 x 247) image that was created, it will have horizontal stripes of RGB(254,254,254). This is a really big problem when using WooCommerce product images with white background because it will be very noticeable.
I cannot reproduce this in any software, tried some major image editing tools free and paid and tried a lot of online compressing/resizing tools. With this tools i tried lots of different variations of Resizing then Compressing, or Compressing then Resizing, or Resizing without compression but i end up with an all white image at the end.
I also tried to disable WP compressing but as far that i could tell it isn’t possible, only way is to up the compression quality to 100 but that still processes the image.
add_filter(‘jpeg_quality’, function($arg){return 100;});
add_filter(‘wp_editor_set_quality’, function($arg){return 100;});My question is, is this fixable? Or at least can we workaround this be disabling compression or uploading ourselves the different image sizes with the correct naming?
Thanks
The topic ‘Resizing Images’ is closed to new replies.