Page 1 of 1
Auto-detection of existing media on server?
Posted: Tue Feb 23, 2010 3:13 pm
by matter
Hi All,
I find the web-based media uploader to be extremely inconvenient. Is there a way for the media library to scan existing files in the directories to add and generate thumbnails for? Thanks for the info,
m
Re: Auto-detection of existing media on server?
Posted: Tue Feb 23, 2010 3:17 pm
by garvinhicking
Hi!
Yes, of course. You can simply put your files inside the /uploads structure via FTP/SSH/whatever, and simply click on "Rebuild Thumbnails" in the s9y admin section. It will create thumbnails for all files that don't have one yet.
Best regards,
Garvin
Re: Auto-detection of existing media on server?
Posted: Tue Feb 23, 2010 3:39 pm
by matter
I suppose there's no way to include directories that are not under uploads? I tried adding the directories to the media structure, but no dice.
Re: Auto-detection of existing media on server?
Posted: Tue Feb 23, 2010 4:13 pm
by matter
OK, I made a symbolic link- that solved the problem. Unfortunately the tumbnail generation is failing:
Code: Select all
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 15488 bytes) in /home2/mattrosa/public_html/include/functions_images.inc.php on line 1307
Hopefully it's not a server problem since my php.ini has 32mb listed... Anyway, thanks again for letting me know about rebuilding thumbs. Cheers!
m
Re: Auto-detection of existing media on server?
Posted: Wed Feb 24, 2010 12:18 pm
by garvinhicking
Hi!
Large JPEGs take up huge amounts of RAM to resize. A 1MB JPEG can easily take up to 50MB of RAM, but your server is limited to 32MB. You might need to resize the JPEGs so that it fits your memory limit, or raise the PHP memory limit...
Best regards,
Garvin