thumbs in cache folder, hashing names and watermarks

Join us in effort to make Admiror Gallery better. Submit your feature proposals and reviews, we are interested to hear your opinion.
Post Reply
Message
Author
mko
Maegashira
Maegashira
Posts: 12
Joined: Mon Apr 11, 2011 7:35 pm

thumbs in cache folder, hashing names and watermarks

#1 Post by mko »

Grouped in one post as this features are similar.

I'd consider moving thumbnalis from plugin directory to some folder in cache directory (eg. "ROOT_DIR/cashe/gallery_thumbs"), by default. This would make thumbs easier to find, and manage if needed.

Optionally hashing original file names would be also nice. This can by done same way as in other plugins md5 hash of: "filename, [opt directory], thumb/image size".

Than finally watermarking :)

Admiror Gallery 5 - Fundraising Campaign

User avatar
kekeljevic
Developer
Developer
Posts: 445
Joined: Tue Aug 17, 2010 2:38 pm
Location: Novi Sad, Serbia
Contact:

Re: thumbs in cache folder, hashing names and watermarks

#2 Post by kekeljevic »

Maybe placing a thumbnails in cache directory isn't bad idea. Sound reasonable. How cache directory works in Joomla! ? Is Joomla! clears this folder? If it does than it will cause a problem with image details files. Image details than must be in database...

mko
Maegashira
Maegashira
Posts: 12
Joined: Mon Apr 11, 2011 7:35 pm

Re: thumbs in cache folder, hashing names and watermarks

#3 Post by mko »

Cache is cleared manually from Admmin menu -> Tools -> Clean Cache. Some components eg. "Content" clears automatically when changes are done, but I've never noticed them to clear other extensions folders. Images in subdirectories of cache were always left untouched, if not cleared manually.
I think there is no need of moving image details files, just thumbs which are now stored in "/plugins/content/AdmirorGallery/thumbs" (and fullsize if file name hashing enabled). BK-Multithumb works this way.

Post Reply