Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: looking for a plugin: dimensions to keywords  (Read 4402 times)

0 Members and 1 Guest are viewing this topic.

Deus

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 153
    • DJ-Daz
looking for a plugin: dimensions to keywords
« 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?
Logged
https://daz-stuff.uk
DJ tutorials, E-Bikes, Movies and videogames.
(https://daz-stuff.uk/daz/signature.png)

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: looking for a plugin: dimensions to keywords
« Reply #1 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).
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 19 queries.