Jump to:

22975 Posts in 11620 Topics by 2826 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: 828 Views
  • corkg
    Avatar
    Community Member
    30 Posts

    Save EXIF to Database Link to this post

    Hi,

    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?

    Thanks!

  • Pigeon
    Avatar
    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.

    828 Views
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.