Hi Support
When uploading a photo with Cyrillic characters, it is not being resized correctly in the Toolset View "Nanny Profile Photo View". The photo should get resized to 90px x 90px according to the Content Template:
[types field='nanny-user-profile-photo' align='left' size='custom' width='90px' height='90px' proportional='false' style='border-radius: 50%'][/types]
If I rename the same photo by removing the Cyrillic characters, the photo is resized correctly to 90px x 90px.
Original filename:
изображение_viber_2022-05-05_12-43-01-017-1.jpg
Same photo with different filename:
viber_2022-05-05_12-43-01-017-1.jpg
When the photo contains the Cyrillic characters it appears way too big and messes up the layout of our view "Find a Native Nanny Search and Results View", which has the view "Nanny Profile Photo View" embedded in it.
Any idea what the issue could be? As far as I know everything is set up to UTF-8 both on our database and in our wp-config settings.
define( 'DB_CHARSET', 'utf8mb4' );
define( 'DB_COLLATE', 'utf8mb4_unicode_ci' );
Kind regards
Simon
Hi Simon,
I was able to replicate the issue and provided a sandbox site to our 2nd tier team with the problem replicated. Once there is an update on the escalated ticket I will let you know.
Thanks,
Shane
Hi Simon,
Our 2nd tier team has responded and provided a patch for this.
You can download the patch at the link below.
https://toolset.com/patches/image.php.zip
Unzip the image.php file and replace the file of the same name at types/vendor/toolset/types/embedded/views/image.php
Thanks,
Shane
Hi Shane
Thanks for the fast, professional support. I can confirm the patch resolves the bug.
Thanks and kind regards
Simon
My issue is resolved now. Thank you!