You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Read image from fileusing(MagickImageimage=newMagickImage("FujiFilmFinePixS1Pro.jpg")){// Retrieve the exif informationExifProfileprofile=image.GetExifProfile();// Check if image contains an exif profileif(profile==null)Console.WriteLine("Image does not contain exif information.");else{// Write all values to the consoleforeach(ExifValuevalueinprofile.Values){Console.WriteLine("{0}({1}): {2}",value.Tag,value.DataType,value.ToString());}}}
VB.NET
' Read image from fileUsingimageAsNewMagickImage("FujiFilmFinePixS1Pro.jpg")' Retrieve the exif informationDimprofileAsExifProfile=image.GetExifProfile()' Check if image contains an exif profileIfprofileIsNothingThenConsole.WriteLine("Image does not contain exif information.")Else' Write all values to the consoleForEachvalueAsExifValueInprofile.ValuesConsole.WriteLine("{0}({1}): {2}",value.Tag,value.DataType,value.ToString())NextEndIfEndUsing
Create thumbnail from exif data
C#
// Read image from fileusing(MagickImageimage=newMagickImage("FujiFilmFinePixS1Pro.jpg")){// Retrieve the exif informationExifProfileprofile=image.GetExifProfile();// Create thumbnail from exif informationusing(MagickImagethumbnail=profile.CreateThumbnail()){// Check if exif profile contains thumbnail and save itif(thumbnail!=null)thumbnail.Write("FujiFilmFinePixS1Pro.thumb.jpg");}}
VB.NET
' Read image from fileUsingimageAsNewMagickImage("FujiFilmFinePixS1Pro.jpg")' Retrieve the exif informationDimprofileAsExifProfile=image.GetExifProfile()' Create thumbnail from exif informationUsingthumbnailAsMagickImage=profile.CreateThumbnail()' Check if exif profile contains thumbnail and save itIfthumbnailIsNotNothingThenthumbnail.Write("FujiFilmFinePixS1Pro.thumb.jpg")EndIfEndUsingEndUsing