Imageprocessor: Exif images. Read image orientation

Created on 7 Jul 2016  路  25Comments  路  Source: JimBobSquarePants/ImageProcessor

I'm using this library on production, i know... i know.. but it works great! and AFAIK is the only working library for NET Core :)

I was wondering, uploading images from a phone/device that has exif information about the orientation. It is possible to read that data now and adjust/rotate accordingly? I don't think this is supported now, but since I'm not sure I prefer to ask.

Thanks,

core question

Most helpful comment

I am working on adding support for EXIF information (see #357 for more info). That would mean the information would be preserved when you read/write an image. I also wonder if a feature to AutoOrient (thats how we call it in ImageMagick) the image would be a nice addition to the library. I will try and see if I can add that once the EXIF code is included.

All 25 comments

Eeeeeeeeeeeeeeeeeeeeeeeeeeep!

scurrd

There's an open PR that would add EXIF support https://github.com/JimBobSquarePants/ImageProcessor/pull/357

Unfortunately it seems that @stbraley has been caught up with other work which is understandable. He's made excellent progress so far so hopefully it can be completed sometime soon.

Once we have that performing an EXIF based rotation should be a cinch.

@Bartmax seems like we meet again, I guess .Net core on GitHub doesn't give too much options :smile:

I'm curious to know how you overcome this, we are using it too (on production...) and iPhone images are being rotated when resized.

I am working on adding support for EXIF information (see #357 for more info). That would mean the information would be preserved when you read/write an image. I also wonder if a feature to AutoOrient (thats how we call it in ImageMagick) the image would be a nice addition to the library. I will try and see if I can add that once the EXIF code is included.

@gdoron i didn't. I told people to upload photos and fix the orientation if it's wrong for the time being. :cry:

@Bartmax So your site gives rotating API for the user, correct?
Or do they need to edit it somewhere else?

@gdoron fortunatelly my upload thing is internal and not public faced. Since they do work on the images in a photo editor before upload they just do it there.

The pull request for adding exif support has been pushed and merged (#450). Will work on adding support for auto orientation.

AutoOrient has been added: ae4de1ad

Wow that was fast! Amazing

馃憦馃憦馃憦
Thank you all!
I wish I could contribute to this super important library, but unfortunately I didn't attend to any of the image processing classes at college...
Great stuff!馃憤

I also haven't had any image processing classes at college. You just need to do a lot of reading on image formats and algorithms. And if you can read C you can also take a look at the ImageMagick library (I work on that project) and see how stuff is done there and learn from it. There are a couple of issues where help is requested (needed): https://github.com/JimBobSquarePants/ImageProcessor/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+needed%22

And I just got a request for my Magick.NET project that is related to this: https://magick.codeplex.com/discussions/657123. You could help creating the huge ExifDescriptions class so we can use it here and in Magick.NET.

I'm learning by doing. Wikipedia and looking through older open source libraries has been how I've learned. You'd be amazed how much you can pick up in a short time.

Decided to use a different approach: 3bca9a911. We could still use some help.

Hi,
We are looking for this awesome feature too!
Any ETA on this?

Thanks!

This feature has been added we are still fine tuning it but the latest build from appveyor should have this feature.

It's not on myget yet, right?
I checked the latest version, 1.0.0-alpha-999, and it doesn't seem to exists there.

We're a few build on from that now.

v1.0.0.1021 as of just now.

https://ci.appveyor.com/project/JamesSouth/imageprocessor/branch/Core

@JimBobSquarePants Can you please push it to myget?
I still get 1.0.0-alpha-999 as the latest version there.

myget

Can you double check this. Publishing is automatic.

Actually hold on, main page says different!

You're right, I found it somewhere way way down the list, for some reason VS/myget decided 1000 < 999.
Sounds legit... :dizzy_face:

Frantically investigating semver rules now. Not sure how I can fix this. :worried:

Was this page helpful?
0 / 5 - 0 ratings