WP Thumbnail Issues (cropping and color-profiles)
-
Hi!
As can be seen above from the testing link above… I have uploaded three rows using the same images, but the images all look different.
1. The first row’s images are set through visual composer as thumbnails.
2. The second row of images are set through visual composer as separate image sizes (thumbnail-full).
3. The third row of images are just linked to the server (I bypassed the media uploader by uploading the files via SFTP and then linking them to the page directly).There are two issues here.
The first… look at those thumbnails in the first row. Wow. Cropping just does not work here for my smallest image sizes.. I need them to NOT crop. I have thumbnail cropping de-selected but this does not change the results I get and yes, I even used regenerate thumbnails and the image results I get do not change. It’s very odd.
The other issue relates to the color of these image. The above images are ALL the SAME images, but I am getting different results. You will notice the images are made up of two grays, but they should all be the same color (#7e7e7e – not dark gray). WordPress seems to be forcing compression and re-setting the color profiles of my thumbnails that it deems “grayscale”.
The only time I get the correct and consistent color results is from option 3 or row 3 – where I bypass the media uploader entirely. This can not be my solution though as the client wants to be able to edit all from the backend of WordPress and will not have access to SFTP.
So here is what I know…
The default WP media uploader is converting the transparent png logos I am uploading to a gray gamma 2.2 color profile. This means that any time I want to ensure I am getting the correct color PNGs, I have to use the full URL and cannot use medium or thumbnail etc. The only time the color profile of the png images stays true to sRGB is if the original png file size is SMALLER than my designated thumbnail size, which is set at 225px OR if I input any type of color into the image outside #7e7e7e (like red).
I am on a brand new install of WordPress. I’ve installed the twenty-sixteen theme to show that the issue is not theme related. I have most all my plugins turned off. Everything is up to date. This can not be just one of those things everyone has to deal with?
So to be clear
1. How can I NOT force a max-width on thumbnails and NOT force these thumbnails to be hard cropped
2. How do I keep WordPress from compressing gray PNG images it thinks are grayscale?BTW, I tried adding “add_filter( ‘jpeg_quality’, create_function( ”, ‘return 100;’ ) );” to my functions.php file and this does not seem to work for PNG. The png files still get “optimized”.
So Does anyone have suggestions? I’ve fiddled with this and looked around the web for hours and hours with no solutions.
- The topic ‘WP Thumbnail Issues (cropping and color-profiles)’ is closed to new replies.