DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: C# Image Orientation Gotcha  (Read 6,610 times)

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
C# Image Orientation Gotcha
« on: December 24, 2010, 02:48 PM »
I just posted a C# EXIF image orientation gotcha here.

The long & short of it is that you cannot dispose of an image and you must leave the file handle open (locked) in order to get at the metadata, and specifically, the EXIF 274 (0x112) image orientation data. If you clone or copy the image, the image orientation data will not be available.

Hope that helps someone. Took me a while to figure out what was going on.
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
Re: C# Image Orientation Gotcha
« Reply #1 on: January 07, 2011, 04:26 PM »
Dang!  They need to fix this.  I can think of a couple scenarios where this will be darned inconvenient!
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

Original address: https://www.donationcoder.com/forum/index.php?topic=25010.0