Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
oozcitak authored Sep 6, 2019
1 parent 2cd0650 commit d302699
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ If you are using [NuGet](https://nuget.org/) you can install the assembly with:
To read an image file and extract metadata:

```cs
var file = ImageFile.FromFile('path_to_image');
// metadata.Properties is a collection of image metadata
var file = ImageFile.FromFile("path_to_image");
foreach (var item in file.Properties)
{
if (item.Tag == ExifTag.ISOSpeedRatings)
Expand Down Expand Up @@ -48,7 +47,7 @@ foreach (var item in file.Properties)
To add metadata:

```cs
var file = ImageFile.FromFile('path_to_image');
var file = ImageFile.FromFile("path_to_image");
file.Properties.Add(ExifTag.ISOSpeedRatings, 200);

```
Expand All @@ -57,5 +56,5 @@ To save the image with metadata:

```cs

file.Save('path_to_image');
file.Save("path_to_image");
```

0 comments on commit d302699

Please sign in to comment.