Removing datetime from digital photo using imagemagick

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
xhe

Removing datetime from digital photo using imagemagick

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Removing datetime from digital photo using imagemagick

Post by fmw42 »

see datetime tags for EXIF at http://www.imagemagick.org/script/escape.php
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Removing datetime from digital photo using imagemagick

Post 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/
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
xhe

Re: Removing datetime from digital photo using imagemagick

Post 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?
xhe

Re: Removing datetime from digital photo using imagemagick

Post 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?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Removing datetime from digital photo using imagemagick

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Removing datetime from digital photo using imagemagick

Post 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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Removing datetime from digital photo using imagemagick

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Removing datetime from digital photo using imagemagick

Post by fmw42 »

Anthony,

It is GREYCstoration. See the parrot example under inpainting:

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

Fred
Post Reply