Strip all metadata without altering original image.

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: helmut, XnTriq, xnview

Katamara
Posts: 63
Joined: Sun Apr 04, 2010 11:54 am

Strip all metadata without altering original image.

Post by Katamara »

Hello.

I am not sure about the options for nconvert (linux) to remove all metadata from jpeg/tif images
and 'not' alter the original image content.

I tried:
$ nconvert -rmeta -overwrite -keepfiledate image-01.jpg

Questions;
1. Will the above remove all metadata, including EXIF, XMP, COMMENT, ICC PROFILE, MAKER NOTES ?
2. Will the above remove metadata and 'not' alter the image contents ?
3. How can I preserver the original 'Creation date/time' or 'DateTimeOriginal' ?
4. Is nconvert the 'only' available method to use commands on the command line ? i.e. XnviewMP

Thank you.
User avatar
xnview
Author of XnView
Posts: 45794
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Strip all metadata without altering original image.

Post by xnview »

Katamara wrote: 1. Will the above remove all metadata, including EXIF, XMP, COMMENT, ICC PROFILE, MAKER NOTES ?
yes
2. Will the above remove metadata and 'not' alter the image contents ?
Yes
3. How can I preserver the original 'Creation date/time' or 'DateTimeOriginal' ?
-keepfiledate doesn't work??
4. Is nconvert the 'only' available method to use commands on the command line ? i.e. XnviewMP
yes
Pierre.
Katamara
Posts: 63
Joined: Sun Apr 04, 2010 11:54 am

Re: Strip all metadata without altering original image.

Post by Katamara »

Thank you Pierre.

Regarding: -keepfiledate
I can't be sure. I was watching the 3 dates shown in XnViewMP when I did the command,
and they all changed. I didn't investigate this further.

If I understand you correctly, I will be able to preserve the Creation Date exif with -keepfiledate.
If I check the image 'before' with for example, exiftool...
$ exiftool -s -DateTimeCreated DSCF8557.tif

then I do: $ nconvert -rmeta -overwrite -keepfiledate DSCF8557.tif
it 'should' preserve the exif DateTimeCreated ?

Thank you.
User avatar
xnview
Author of XnView
Posts: 45794
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Strip all metadata without altering original image.

Post by xnview »

sorry but -keepfiledate works only on windows
And on linux it's not possible to change created_date_time's file
Pierre.
Katamara
Posts: 63
Joined: Sun Apr 04, 2010 11:54 am

Re: Strip all metadata without altering original image.

Post by Katamara »

Thank you Pierre, ambitious thinking on my part.
Best regards,

[Solved]