locked
Get DPI value for image RRS feed

  • Question

  • Hi All,

    How can I auto populate the DPI value after I upload any image inside a picture library? Sharepoint OOB will auto generate the width, height and size but not DPI. Is there any way i can achieve this? Thanks!


    Regards, Weiliang
    Monday, May 9, 2011 4:15 AM

Answers

  • You could create a "Custom Column" called as "DPI" and then write code in event handler which will execute when you add the picture to picture library and populate the custom column with the value.
    My SharePoint Blog
    http://dhireny.blogspot.com
    Monday, May 9, 2011 5:48 AM

All replies

  • You could create a "Custom Column" called as "DPI" and then write code in event handler which will execute when you add the picture to picture library and populate the custom column with the value.
    My SharePoint Blog
    http://dhireny.blogspot.com
    Monday, May 9, 2011 5:48 AM
  • Okay, so how do I get the file details out in the code? Is there any best practices to do it? Thank you and sorry for the trouble!
    Regards, Weiliang
    Monday, May 9, 2011 6:51 AM