+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Image Meta Data

Image Meta Data

4 posts, 0 answered
  1. Netfinity
    Netfinity avatar
    11 posts
    Registered:
    15 Nov 2006
    08 Jul 2011
    Link to this post
    Hi there,
    When an image is imported into the SF Images & Documents module and stored in the database do the meta data items get stripped or are they accessible in the normal way?

    We are looking to display meta-data encapsulated in the image file residing in an Images & Documents library.

    Is this even possible using the current SF 3.7 sflb regime?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    08 Jul 2011
    Link to this post
    Hi Netfinity,

    Could you clarify for the metadata you are referring to?Do you mean the original content type where you want to get the Bitmap and  then PropertyItems? Basically you ca get the items from a library programmatically and retrieve the actual content

    ILibrary lib = man.GetLibrary("ImageGallery");
    IList allImages = lib.GetItems();
    foreach (IContent contentItem in allImages)
    {
        int i = 0;
        IContent cnt = man.GetContent(contentItem.ID);
        string name = (string)cnt.GetMetaData("Name");
        string ext = (string)cnt.GetMetaData("Extension");
        var mipeTipe =  cnt.MimeType;
        byte[] buffer1 = (byte[])cnt.Content;
     
    }


    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Netfinity
    Netfinity avatar
    11 posts
    Registered:
    15 Nov 2006
    11 Jul 2011
    Link to this post
    Thanks for your reply,

    We need to access the Exif data, basically the data added by the photographer including copyright, date taken and other items.

    Lets try this out and we will let you now how we go.

    Thanks Ivan

  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    12 Jul 2011
    Link to this post
    Hi Netfinity,

    You might find this post useful

    http://stackoverflow.com/questions/4772133/how-do-i-extract-exif-data-from-jpeg-files

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
4 posts, 0 answered