News:

2023-03-15 Major improvements to the new Geolocation feature

Main Menu

Trying to stamp images with exiftool

Started by davidcalvin, August 01, 2013, 09:21:51 PM

Previous topic - Next topic

Phil Harvey

In this case, a bad IFD1:StripOffsets would mean that the thumbnail image is garbage.

You may get a warning about this if you run exiftool -warning jpg.jpg, but I'm not sure.  In general, more validation is done when writing than when reading images (because data integrity is more important than speed when writing).

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

tadej

Thanks Phil,

-warning does not return anything. Will perform real write and perform accordingly.
Last question for today:
How do I read only one specific Exif tag.
exif -???? file

regards Dusan

Phil Harvey

The syntax is: exiftool -TAG FILE

ie) exiftool -artist test.jpg

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

tadej

Thanks Phil for being patient with me.
It works great.
I have included Shell mode in my VB.NET program.
I am considering to go commercial at some point.
What are terms and conditions if I would use your ExifTool.exe
Regards, Dusan
P.S. I have never seen such consistent and passionate approach to manage such a mess and inconsistency which abused Exif actually embodies. Yo've got my 10 out of 5.
:)

Phil Harvey

Hi Dusan,

Thanks for the compliments.

ExifTool is free to use inside another application with some conditions.  See the Perl artistic license for details.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

tadej

Hi Phil,

that is fine. As I am not USA or UK resident it is difficult to understand (from legal point of view - wording, expessions, assumptions - usually the culture stuff )  what I am supposed to do if I distribute and call your exe from my VB.NET product.
Please enlighten me.

Thanks and Regards,
Dusan

Phil Harvey

Hi Dusan,

If your product is free, then there are no restrictions.

If you sell your product, then it must provide some value-added functionality, and not simply be an overt attempt to sell ExifTool by exposing ExifTool's functionality through a thin user interface.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

tadej

Hi Phil,

the system, GUI an functionality will be (are) thick, very thick.
What wording would you like to see in About Box.
I am perfectly happy to promote your excellent work.
I know the time will come for a a suitable donation.
Currently  am recovering from a disaster  >:(.

Regards,
Dusan

Phil Harvey

Hi Dusan,

I hope your disaster recovery goes well.

What you put in an about box, if anything, is entirely up to you.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

tadej

Hi Phil,

I have come to the last stage of my development where I have to write the following data into jpg image:
longitude,
latitude,
altitude in meters,
true north camera orientation,
UTC time of picture taken.

Is there a command line example which I can test without a lot of try and error approach.

Kind regards,
Dusan

Phil Harvey

Hi Dusan,

The command will look something like this:

exiftool -gpslatitude=VAL -gpslatituderef=north -gpslongitude=VAL -gpslongituderef=west -gpsaltitude=VAL -gpsaltituderef=above -gpsimgdirection=VAL -gpsimgdirectionref=true -gpsdatestamp=2014:01:12 -gpstimestamp=19:56:59 image.jpg

See FAQ 14 for more information about valid coordinate formats.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

tadej

Hi Phil,

works like magic.
I have added three additional fileds:
Title, Description, Type. Are there standarized tages where can I write this information, what are the limits of text size and how actually command to write all three looks like.

Are there any tags which tell what is viewing angle of camera lenses.

Kind regards,
Dusan


Phil Harvey

Hi Dusan,

There are no ExifTool-imposed limits on text size.  There is a command-line length limitation in Windows, but not Mac/Linux.

There is a Composite FOV tag that ExifTool calculates to give the field of view in degrees.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).