Auto-detection of existing media on server?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
matter
Regular
Posts: 9
Joined: Mon Feb 22, 2010 2:59 pm

Auto-detection of existing media on server?

Post 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
Last edited by matter on Tue Feb 23, 2010 3:21 pm, edited 1 time in total.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Auto-detection of existing media on server?

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
matter
Regular
Posts: 9
Joined: Mon Feb 22, 2010 2:59 pm

Re: Auto-detection of existing media on server?

Post 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.
matter
Regular
Posts: 9
Joined: Mon Feb 22, 2010 2:59 pm

Re: Auto-detection of existing media on server?

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Auto-detection of existing media on server?

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply