sebsauvage / MinigalNano

GNU Affero General Public License v3.0
161 stars 50 forks source link

Requrest Unicode support (wrong thumbnails under multiple Unicode directories) #126

Open briancblog opened 5 years ago

briancblog commented 5 years ago

Hello,

Thanks for your GREAT PHP photo gallery!

Some directories are named in Unicode chars. For instance we have 2 sub-directories under one directory:

root/dir/sub-dir1/1.jpg
root/dir/sub-dir2/1.jpg

If Unicode directory names of sub-dir1 and sub-dir2 are equal in chars length, the second thumbnail of "root/dir/sub-dir2/1.jpg" will just display the previous thumbnail of "root/dir/sub-dir1/1.jpg" wrongly. I checked the thumbs folder, and there is only 1 image of "root_dir_____1.jpg".

This issue does not exist in ANSI directory names.

Could you please improve MinigalNano to support UNICODE?

Thank you! Brian

briancblog commented 5 years ago

I can temporarily resolve this issue by comment the partial code in createthumb.php. The system will serve existing thumbnail file by default, and I disabled it by commenting. This will affect performance and is not a perfect resolution. Every time when one image is accessed, the system will generate the thumbnail again, which means cached thumbnails are disable.

So I am requesting to resolve this issue.

Thank you so much!