- This topic has 12 replies, 2 voices, and was last updated 3 months, 1 week ago by dasigna.
June 8, 2020 at 12:50 am #1318724dasigna
running a customer site where the gp blog is used for news.
there, the featured images are set in customizer to use medium size and equal aspect ratio – dimensions set to 600x600px.
additionally they are set to show rounded as a circle.
worked great so far until recently – when two of the pictures started to show uneven… now we have two vertically stretched ‘eggs’ on that page which is not very pleasing 🙁
funny enough, one of them is a fairly old one who showed up correctly til now, the other one is a new one uploaded after last update. so at first i assumed it might have to to with the update somehow. but what about the older one???
and despite that – all others show up as intended anyway.
i cant follow neighter the ‘logic’ nor any clear reason for this miracle.
so i would be glad enough if someone could take a closer look and may come up with any hint or solution.
many thanks and best wishes.June 8, 2020 at 4:22 am #1318930DavidStaffCustomer SupportJune 8, 2020 at 4:53 am #1318970dasigna
… yeah – already tried this. including changing the attachment size and dimensions back and forth. in addition tried regenerating thumbnails and constantly clearing cache etc.
running out of clues.
credentials added to url – may you can look yourself. but be careful -> its a live site 🙂
crazy enough, the lower stretched image is originally one with already even square dimensions …June 8, 2020 at 5:05 am #1318982DavidStaffCustomer SupportJune 8, 2020 at 5:17 am #1319000dasigna
autoptimize and cache disabled. everything should be cleared.June 8, 2020 at 5:25 am #1319005DavidStaffCustomer Support
Hmmm – thats an odd one…. not sure what WP is doing but its spitting out those images with max-width parameters.
Perhaps the best solution would be to register a new media attachment size in GP for 600px x 600px cropped.
Then simply select that without ant Width / Height values in the customizer:
This will stop the theme using CSS to resize them.June 8, 2020 at 6:27 am #1319087dasigna
registering a new media size and selecting it without size values gives an even worse result – all images are different in ratio …!
only the odd lower one before (wich has already even image ratio) is correct.
choosing the customizer dimension in addition gives the same result as before. no healing.
if its not gp that injects the inline css parameters, theres something completely strange going on …June 8, 2020 at 6:34 am #1319092dasigna
after another regenerating of thumbnails all featured images are showing as expected – except the already squared one …
completely weird.June 8, 2020 at 6:54 am #1319117dasigna
works again as expected… stretching of the already even image was obviously due to the fact that it was smaller than the given 600×600 size.
uploaded a bigger one for it and it is o.k. too.
but still dont know where this strange behaviour is coming from …
anyway – big thanks for efforts!
(maybe let me know if you’ve had some spare time and found out more…)June 8, 2020 at 6:55 am #1319119DavidStaffCustomer SupportJune 8, 2020 at 6:57 am #1319124dasigna
… see ‘UPDATE 2’ – overlapping posts 🙂June 8, 2020 at 6:59 am #1319129DavidStaffCustomer SupportJune 8, 2020 at 7:23 am #1319160dasigna
resolved for now, yes.
- You must be logged in to reply to this topic.