forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 plugins => Topic started by: Deus on December 29, 2012, 11:29:40 pm

Title: looking for a plugin: dimensions to keywords
Post by: Deus on December 29, 2012, 11:29:40 pm
as stated, take the dimensions of an image and create keywords from them.
Example: 1920 x 1200 would be 1920 and 1200
has anyone created this plugin at some point?
Title: Re: looking for a plugin: dimensions to keywords
Post by: Αndré on January 02, 2013, 01:58:34 pm
As far as I know such a plugin doesn't exist yet. As the needed data should be already available in the SQL database, a simple query will solve it for already existing pictures. If you need it for future pictures, too, you either have to run the SQL query as a cronjob (not recommended), create a plugin (should be quite easy by using the add_file_data hook) or a mod (just append it to $keywords in include/picmgmt.inc.php).