Page 1 of 1

Removing datetime from digital photo using imagemagick

Posted: 2008-07-14T13:12:44-07:00
by xhe
When reading the use instruction, I am very interested in removing the datetime from a digital photo. I only found command

identify -format "%[EXIF:*]" pagoda_sm.jpg | column -c 110


to list all the embedded information for an image, but I can not find any command to remove the datetime from the photo.

Can anyone show me the command to remove the datetime from a digital photo?

Thanks very much in advance.

Re: Removing datetime from digital photo using imagemagick

Posted: 2008-07-14T14:12:45-07:00
by fmw42
see datetime tags for EXIF at http://www.imagemagick.org/script/escape.php

Re: Removing datetime from digital photo using imagemagick

Posted: 2008-07-14T17:04:19-07:00
by anthony
That would only read the date time, not modify it.

You can -strip it but for modification I suggest a more specialized progrma such as jhead

See IM examples, Photos
http://imagemagick.org/Usage/photos/

Re: Removing datetime from digital photo using imagemagick

Posted: 2008-07-14T17:18:46-07:00
by xhe
I used this commend:

convert image1.jpg -strip output.jpg

But on the output image, the date time is still there. Any suggestion?

Re: Removing datetime from digital photo using imagemagick

Posted: 2008-07-14T17:27:37-07:00
by xhe
I just found that using -strip can strip all the information from the image, but unfortunately, for the jpeg photo, if the date-time is already on it, it won't be removable, is this true?

Re: Removing datetime from digital photo using imagemagick

Posted: 2008-07-14T18:19:20-07:00
by anthony
Hold everything.... stop the presses.... Lets take this back to square one!!!

Where exactly is the date-time!!!!!

Is it drawn on the photo itself???? If so that is a whole different
problem that what we think you are requesting!!!!!

Unfortunately it is also a problem that requires you to replace missing information, which is a very advanced problem, and one currently beyond the capabilities of IM.

However a program that is using leading edge research, has been developed that can remove and fill in the missing data quite well from the surrounding image. I tried to find it again, but don't have a bookmark, or remember the name. sorry.

Perhaps someone else here will know.

Re: Removing datetime from digital photo using imagemagick

Posted: 2008-07-14T23:50:30-07:00
by fmw42
Anthony,

Perhaps you are thinking of GREYCstoration.

See the inpainting example near the bottom:

http://www.fmwconcepts.com/misc_tests/G ... index.html


Fred

Re: Removing datetime from digital photo using imagemagick

Posted: 2008-07-15T17:38:35-07:00
by anthony
Something like that. But GREYCstoration only works for a regular feature.

No the one I saw show a photo of a bird in a cage. the cage was masked and then removed, and the bird was left without a foreground cage. In fact as the bird was hanging onto the front bars of the cage, the bird was left hanging in mid-air!!!

I just can't seem to find it any more.

Re: Removing datetime from digital photo using imagemagick

Posted: 2008-07-15T19:39:55-07:00
by fmw42
Anthony,

It is GREYCstoration. See the parrot example under inpainting:

http://cimg.sourceforge.net/greycstorat ... tion.shtml

Fred