Can i somehow trigger it to generate them?
-
MODX Staff
- 12,272 Posts
Not without CRON and a custom bit of code. It’s likely a permissions difference between the FTP user and the Apache/PHP user.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
The resource browser will generate it’s own thumbnail on the fly, provided that it has permissions to:
a) read the image file
b) create a new .thumb_blah.jpg file in the same folder as blah.jpg
The resource browser runs under the same process as php on the webserver, so whatever user this process runs as will need the appropriate permissions to access the folder where the images are.
To test this, you could set the permissions on the folder and it’s files to 0777 using your FTP client - then try using the resource browser. On most servers, this will enable thumbnails to be generated. You may need to talk to your server admin/ISP to fully resolve the permissions required.
Simply by using it - they’re generated on demand, provided that the resource browser has permissions to do so - see above.