19

I want to add basic exif info to images like author,camera model,date etc.Is there a way to do this using the Inbuilt classes without using other external libraries.Does the image formats like JPEG,PNG,TIFF,BMP,GIF Support all EXIF Fields.

techno
  • 6,100
  • 16
  • 86
  • 192
  • possible duplicate of [How to edit EXIF data in .NET](http://stackoverflow.com/questions/226973/how-to-edit-exif-data-in-net) – jscs Jun 14 '12 at 07:08
  • 1
    @JoshCaswell 'without using other external libraries' – techno Jun 15 '12 at 08:08

1 Answers1

17

System.Drawing allows modifying the image properties with PropertyItems/SetPropertyItem. A sample can be found here.

But this access is quite basic and there are quite a few libraries around (see for instance How to edit EXIF data in .NET). So I wonder if it's worth the trouble.

After all, only JPEG and TIFF files support EXIF metadata according to Wikipedia.

Community
  • 1
  • 1
Paul B.
  • 2,394
  • 27
  • 47
  • Allows `modify` but not `add`, it's not work if a property item that is not already exist. – huang Jun 17 '20 at 00:56