Resize an image with .NET without losing EXIF data
-
What is the best way to resize images using .NET, without losing the EXIF data? I'm okay with using .NET 2 System.Drawing.* classes, WPF classes, or open-source libraries. The only easy way I found to handle this all for now is to use the Graphics.FromImage (.NET 2) to perform the resizing and to re-write the EXIF data with an OpenSource library manually (each piece of data one by one).
-
Answer:
Your suggestion of extracting the EXIF data before resizing, and then re-inserting the EXIF data seems like a decent solution. EXIF data can be defined only for formats like JPEG and TIFF - when you load such an image into a Graphics object for resizing, you're essentially converting the image to a regular bitmap. Hence, you lose the EXIF data. Slightly related thread about EXIF extraction using C# http://stackoverflow.com/questions/58649/how-to-get-the-exif-data-from-a-file-using-c.
TigrouMeow at Stack Overflow Visit the source
Related Q & A:
- How to restore windows 7 without losing data?Best solution by Super User
- How to resize image javascript?Best solution by Stack Overflow
- How to resize image size in javascript?Best solution by Stack Overflow
- How can i change my email address, without losing my old emails?Best solution by Yahoo! Answers
- How to resize swf image?Best solution by wiki.eltima.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.