Skip Navigation

[Resolved] Photo not resizing correctly when filename contains cyrillic characters

This support ticket is created 2 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 4 replies, has 2 voices.

Last updated by simonM-5 2 years, 8 months ago.

Assisted by: Shane.

Author
Posts
#2360773

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

#2360895

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

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

#2362667

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

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

#2364405

Hi Shane

Thanks for the fast, professional support. I can confirm the patch resolves the bug.

Thanks and kind regards
Simon

#2364407

My issue is resolved now. Thank you!