How to get author name in jpg file using aspose

Hi




In image .jpeg file get author name for “Author” property is there how to get that built in property.


Note:

I need to get built properties for jpeg file, .tif ,.tiff, note file (.one)and digram files (.vsd),xps document


for ex:

WORD:


If docExt.ToLower = “doc” Or docExt.ToLower = “docx” Then

Dim fileName As String = strval
Dim doc As New Aspose.Words.Document(fileName)
ret = doc.BuiltInDocumentProperties.Author
ElseIf docExt.ToLower = “jpeg” Then
Dim fileName As String = strval
ElseIf (docExt.ToLower = “one”) Then
Dim fileName As String = strval
ElseIf ((docExt.ToLower = “vsd”) Or (docExt.ToLower = “vsdx”) Or (docExt.ToLower = “vss”) Or (docExt.ToLower = “vst”) Or (docExt.ToLower = “vsx”) Or (docExt.ToLower = “vtx”) Or (docExt.ToLower = “vdw”) Or (docExt.ToLower = “vdx”)) Then
Dim fileName As String = strval
Dim ppft As New Diagram(fileName)

endif

Hi Senthil,

Thank you for your inquiry.

You can use EXIF (Exchangeable Image File) information for this purpose. JpgImage.ExifData.Artist is the required property that you are looking for. Please visit the following link for details on how to read EXIF information.



Hi



Thank for ur reply, from u link i did not get author name for .jpeg file and .tif file

i get the value
exif.WhiteBalance,exif.PixelXDimension,exif.PixelYDimension,exif.ISOSpeed like this


Note :

I need to get author name for .jpeg file and .tif file

Hi,



In this url u give tow to get author name for jpeg i got the result from artist field ,bur in .tif file how to get quthor name
Hi Senthil,

Thank you for writing us back.

For reading Artist property of TIFF image you have to access the TIFF options. Following is the sample code that can be used.

using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(@"example.tif"))
{
Console.WriteLine((image as Aspose.Imaging.FileFormats.Tiff.TiffImage).ActiveFrame.FrameOptions.Artist);
}