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: Searching by Regular Expression  (Read 3606 times)

0 Members and 1 Guest are viewing this topic.

mulharinf

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Searching by Regular Expression
« on: October 05, 2015, 08:22:03 pm »

Is there a guide to explain how to Search "Matching Regular Expressions"  I would like to be able to Search photos by the Date the photo was taken, not added to the gallery
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15765
Re: Searching by Regular Expression
« Reply #1 on: October 16, 2015, 04:21:55 pm »

The regular expression search won't help you in that case, as that information is stored in the EXIF data, which isn't included in the search if I remember correctly. There's an option to read EXIF data in the Coppermine configuration. Unfortunately, Coppermine just reads that information (and stores it in the database) after a picture has been viewed at least once. If all information has been read, you still need to modify the search to use the EXIF data.
Logged

mulharinf

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Searching by Regular Expression
« Reply #2 on: October 22, 2015, 07:27:59 pm »

Thanks,  is there a guid for using regular expressions in searches?  Not very familiar with it, and would like to know more about the functionality

Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15765
Re: Searching by Regular Expression
« Reply #3 on: October 22, 2015, 07:39:39 pm »

Honestly, I never used that functionality of the Coppermine search, but I'd expect that you can use any regular expression tutorial to learn how it works.
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4862
    • Windsurf.me
Re: Searching by Regular Expression
« Reply #4 on: October 22, 2015, 09:31:21 pm »

Maybe for 1.6 we should include EXIF data in the searches.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

gmc

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 785
    • GMC Design Photo Gallery
Re: Searching by Regular Expression
« Reply #5 on: October 22, 2015, 11:15:51 pm »

It is a bit deceiving to include EXIF data in search - as that data only exists if the picture has been viewed since the option was set to read the data... And at least one CPG release truncated the table (was ok as it would just repopulate as pics were viewed - and nothing depended on the data being there...)

If it is going to be included in search - then we have to consider populating the data at upload - and the implications that may have...
Or maybe an admin utility to do so - if the user wants the data there to search.

I just wouldn't want to give the impression we are searching all EXIF data if we can't be sure that we are...
Logged
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4862
    • Windsurf.me
Re: Searching by Regular Expression
« Reply #6 on: October 22, 2015, 11:24:14 pm »

I too was thinking similar. We have radio buttons so users can select what fields they are searching so it would be easy to have the EXIF one greyed out. But how does a user then know which images actually have EXIF data and that the data has been read? I can see a lot of frustration where users are not getting the results they expect.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15765
Re: Searching by Regular Expression
« Reply #7 on: October 23, 2015, 10:30:00 am »

Currently, if the image gets resized by GD, any meta data is lost. If I remember correctly this doesn't happen when using ImageMagick. However, as we intend to write meta data back to the image (thread, toolkit), this shouldn't be an issue in the future even when using GD. Of course this won't restore the meta data of already existing files.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.