Click here to Skip to main content
15,185,471 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Salve in un progetto vb.net cerco di leggere i metadati (Copyright, Apertura, focale ecc..), per i file Jpeg nessun problema ma per i file .TIF legge solo pochi dati. Ho provato con ExifLib ed altre librerie senza risultati. Inoltre nella documentazione vb.net si richiede l'importazione della libreria System.Windows.Media.drawing che risulta impossibile importare per i progetti con i form. Cosa posso provare?

Quote:
Hi in a vb.net project I try to read the metadata (Copyright, Apertura, focal etc ..), for the Jpeg files no problem but for the .TIF files it reads only a few data. I have tried with ExifLib and other libraries with no results. In addition, the vb.net documentation requires the import of the System.Windows.Media.drawing library which is impossible to import for projects with forms. What can I try?


What I have tried:

Dim exif As ExifTagCollection = New ExifTagCollection(fi)
      Dim tag As ExifTag

tag = exif(&H8298)
           Return tag.Value.ToString
Posted
Updated 3hrs ago
v2

1 solution

Have you tried this: CompactExifLib: Access to EXIF Tags in JPEG, TIFF and PNG Files[^]
It specifically describes TIF support.

If that - and other packages - can't locate the TIF info, have you checked that the file contains the info you seek? And if so, that it's visible by Windows explorer / Properties for example?
   
Comments
Member 10708951 1hr 10mins ago
   
Si già provato e mi da errore nella lettura. I dati nel file ci sono controllato da esplora risorse/proprietà. Grazie

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900