Comments (4)
Could you send me your code and an offending image? I renamed a jpg to what you
wrote above and it works fine. Here is what I tried:
ExifFile file = ExifFile.Read(@"C:\Users\ozgur\Desktop\image.123.456.jpg");
Original comment by oozcitak
on 25 Aug 2010 at 7:46
from exiflibrary.
Here's the code I'm using in VisualBasic - pic is also attached:
Dim exif As ExifFile
Dim i As Integer
exif = ExifFile.Read("S:\Pictures\2010\2010-03 Photoshooting Migros\8919.005.10.1_001.jpg")
i = exif.Properties(ExifLibrary.ExifTag.Orientation).Value
exif = Nothing
Original comment by [email protected]
on 25 Aug 2010 at 7:19
Attachments:
from exiflibrary.
The image you sent me doesn't have an orientation tag. If an image doesn't have
a tag, it will not be in the dictionary. The library doesn't create defaults
for missing tags. You can something like this:
Orientation orientation = Orientation.Normal;
ExifEnumProperty<Orientation> o;
if (file.Properties.TryGetValue(ExifTag.Orientation, out o))
orientation = o.Value;
This ensures you get a valid orientation regardless of the tag being present or
not.
Thanks,
Ozgur
Original comment by oozcitak
on 6 Oct 2010 at 7:17
from exiflibrary.
Original comment by oozcitak
on 20 Nov 2010 at 1:19
- Changed state: Invalid
from exiflibrary.
Related Issues (20)
- Typo in JPEGMarker enum
- Recompression or not ? HOT 1
- Incorrect indexing in ExifVersion.Interoperability causes GPSVersionID to be incorrect
- GPS value precision loss on writing
- Fraction32.IsInfinity and UFraction32.IsInifinity returns true for NaN fractions
- Field offset validation HOT 1
- CRC table initialisation is not thread safe
- Trouble setting Date Taken tag on a PNG file. HOT 8
- Working with .tif files ? HOT 1
- JPEG exif properties are being read differently on windows and ubuntu
- Issue loading specific image HOT 2
- IPTC tags
- After getting ImageFile object with ImageFile.FromFile("pathToImage"), how to get a byte array Extension?
- Can't retrieve WindowsKeywords from (some) jpg /png files HOT 1
- UserComment
- Image fails to Load due to ArgumentException
- Version missmatch (where does version 2.1.4 come from)
- Property WindowsComment not read by Windows
- Probably False Positive NotValidJPEGFileException
- MathEx.UFraction32 with big error?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exiflibrary.