Main Menu

Structure JPEG

Started by lorents, October 12, 2010, 04:07:15 AM

Previous topic - Next topic

Phil Harvey

Quote from: lorents on February 23, 2012, 11:05:05 AM
How it is possible to make removal of all metadata except the comment?

I think it is time you read the documentation.  Look for "--TAG".

QuoteWhether could make you an example of work ExifTool with ActivePerl, I will be very grateful? At the same time to remove all superfluous of ExifTool?

"Aside from the script I posted, I have no plans to write another script that only removes metadata."

- 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 ($).

lorents

#61
I to tell the truth, and haven't understood as to remove all data from JPEG, except the comment. Tried so - comment, but hasn't helped.

Phil Harvey

Try this:

exiftool -all= -tagsfromfile @ -comment FILE

as per the documentation.

- 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 ($).

lorents

#63
Thanks big!

Also it is possible to ask last question
Than differ then

-all= -tagsfromfile @ -exif -xmp

From

-all= -exif:all -xmp:all

Phil Harvey

Quote from: lorents on February 24, 2012, 07:32:59 AM
Than differ then

-all= -tagsfromfile @ -exif -xmp

From

-all = -exif:all -xmp:all

Do you mean -all= --exif:all --xmp:all ?

The first command is slower because it extracts the EXIF and XMP from the file then writes it back again, replacing the original EXIF and XMP.  My version of the 2nd command deletes everything except the EXIF and XMP.

- 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 ($).

lorents

Whether correctly I have understood you, it is better to use a command

-all= -exif:all -xmp:all

It works faster?

Phil Harvey

-all= --exif:all --xmp:all

Yes.
...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 ($).

lorents