Jump to:

23368 Posts in 18143 Topics by 2863 members

General Questions

SilverStripe Forums » General Questions » Save EXIF to Database

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 875 Views
  • corkg
    Community Member
    30 Posts

    Save EXIF to Database Link to this post


    Does anyone know how I would go about extracting EXIF data from an image as it is uploaded and inputting this information into the CMS?


  • Pigeon
    Community Member
    243 Posts

    Re: Save EXIF to Database Link to this post

    You'd need to decorate the Image class and customise the 'onBeforeWrite' function.

    Using exif_read_data to then get the information and save it to the relevant db fields you create.

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.