sebsauvage / MinigalNano

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

No thumbnails preview. #121

Open softyoda opened 7 years ago

softyoda commented 7 years ago

Hello, i have a problem, i havn't any preview of the picture, and with folder with a folder.jpg, no thumbnails. I have the last version of Minigal and PHP and all flower are in chmod 775, i also use nginx.

I don't have any flower "thumb".

nodiscc commented 7 years ago
softyoda commented 7 years ago

Ok it worked with $ sudo apt-get install php7.0-gd and $ sudo service nginx restart

Thank you

softyoda commented 7 years ago

Thumbnails caching : No : You should let php create and use the 'thumbs" directory. MiniGal will be much faster.

I don't know why it don't save thumbnails in a folder.

nodiscc commented 7 years ago
softyoda commented 7 years ago

In my browser console, i have this error : TypeError: document.getElementById(...) is null

I did not found any log in my /var/log/nginx/error.log

And i have set all permision to chmod -R 775

The solutioni have find is to set all right to execute, but i prefere desactivate it in the public web, so i generate my tumbs with the right to execute and then, i desactivate after, because i don't want anybody to execute an injection.

nodiscc commented 7 years ago

@softyoda Having file mode 0775 is not enough, you need to ensure files have proper owner/group as well.

set all right to execute

If this works then you probably have wrong ownership on your files. The preferred way to restrict permissions to the minimum is: