home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
Improvement Suggestions
EXIF support
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Anonymous" data-source="post: 473"><p>I already wrote some very good code in C# a while ago to accomplish exactly what you need. It allows you to enumerate all of the meta tags in the image file and display the values for each tag. I even put in descriptive names for each one of the tags.</p><p></p><p>I'd be happy to contribute this to Media Portal, but is is code that I wrote in my 'earlier' days of C#. I would like some time to clean this up a bit. I would also like to put the tag names into resources so that they can easily be localized to the users language (very easy to do).</p><p></p><p>I estimate one or two evenings at the most and I could give it to you guys if you think it would be helpful. Basically, you can use it like this:</p><p></p><p>Image Img = Image.FromFile(<somepath>);</p><p></p><p>MetaData Data = new MetaData(Img);</p><p></p><p>foreach (MetaProperty Prop in Data)</p><p>{</p><p> // Format a string to display on the screen</p><p> string StringToDisplay = string.Format("{0}: {1}", Prop.DisplayName, Prop.Value);</p><p></p><p> // TODO: do something to display on the screen.</p><p>}</p></blockquote><p></p>
[QUOTE="Anonymous, post: 473"] I already wrote some very good code in C# a while ago to accomplish exactly what you need. It allows you to enumerate all of the meta tags in the image file and display the values for each tag. I even put in descriptive names for each one of the tags. I'd be happy to contribute this to Media Portal, but is is code that I wrote in my 'earlier' days of C#. I would like some time to clean this up a bit. I would also like to put the tag names into resources so that they can easily be localized to the users language (very easy to do). I estimate one or two evenings at the most and I could give it to you guys if you think it would be helpful. Basically, you can use it like this: Image Img = Image.FromFile(<somepath>); MetaData Data = new MetaData(Img); foreach (MetaProperty Prop in Data) { // Format a string to display on the screen string StringToDisplay = string.Format("{0}: {1}", Prop.DisplayName, Prop.Value); // TODO: do something to display on the screen. } [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Improvement Suggestions
EXIF support
Contact us
RSS
Top
Bottom