how remove date-time stamp from jpg photo?

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?".
Rob Rutten
Posts: 9
Joined: 2015-11-06T02:01:51-07:00
Authentication code: 1151

Re: how remove date-time stamp from jpg photo?

Post by Rob Rutten »

Removed, I found I had inadvertently done this twice.
Last edited by Rob Rutten on 2015-11-12T06:00:52-07:00, edited 1 time in total.
Rob Rutten
Posts: 9
Joined: 2015-11-06T02:01:51-07:00
Authentication code: 1151

Re: how remove date-time stamp from jpg photo?

Post by Rob Rutten »

I closed my weblink and therefore post the resulting working .csh script here (the lines after each convert command must
be concatenated into a single line; I don't how to cut and paste such). Snibgo, many thanks!

Code: Select all

#!/bin/csh

# make the stamp characters transparent
### adapt region and colors
## colors and region below were measured manually (using gimp) by "snibgo"
convert -alpha opaque -region 970x110+2780+2525 -fuzz 10% -transparent black -transparent \#fba420 -transparent \#c08000 -transparent \#b1832d -transparent \#b15000 -transparent \#ad4e00 -transparent \#731e00 -transparent \#805000 -transparent \#402800 -transparent \#2d0000 $1 removestamptemp.png

# now replace the transparant px with sourroundings 
### adapt size at bottom
convert removestamptemp.png \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) \( +clone -resize 90.9091% \) -layers RemoveDups -filter Gaussian -resize "4000x3000!"  -background None -compose DstOver -layers merge -alpha opaque $2

# rewrite the original exif header (taken off by resize)
exiftool -q -all= -overwrite_original_in_place -tagsfromfile $1 -exif:all $2

# cleanup
rm -f removestamptemp.png
zbrozo
Posts: 3
Joined: 2018-08-18T09:27:40-07:00
Authentication code: 1152

Re: how remove date-time stamp from jpg photo?

Post by zbrozo »

Hello, thanks to yours scripts and advices I've created my own automated solution to remove stamp date from photos (unfortunately my camera added such stamp date on my holidays). Anyway I would like to add snibgo's "fillholes" solution as it is described in previous posts. I've compiled ImageMagick and added snibgo's filter sources (from his website) to filters directory and updated Makefile.am but Configure and later make don't see such change. I try it on Mint Linux and Imagemagick is 6.9.10 ( also I've tried with 7.0.8 ). What do I do wrong?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: how remove date-time stamp from jpg photo?

Post by snibgo »

wrote:... don't see such change. I try it on Mint Linux and Imagemagick is 6.9.10 ( also I've tried with 7.0.8 ). What do I do wrong?
What does that mean?

What does "convert -list module" say? It should list any modules you have added. If it does, then you can use them. If it doesn't, then what did your "make" say? Did it list the modules as it compiled each one?
snibgo's IM pages: im.snibgo.com
zbrozo
Posts: 3
Joined: 2018-08-18T09:27:40-07:00
Authentication code: 1152

Re: how remove date-time stamp from jpg photo?

Post by zbrozo »

I still have only analyze module in filters' .libs and .deps:

tomek@bonobo1:~/im/filters/.libs$ ls
analyze.exp analyze.la analyze.lai analyze.so analyze.ver filters_analyze_la-analyze.o
tomek@bonobo1:~/im/filters/.libs$
tomek@bonobo1:~/im/filters/.deps$ ls
filters_analyze_la-analyze.Plo magick_libMagickCore_6_Q16HDRI_la-analyze.Plo

It seems for me like build doesn't see other modules - I don't know why. Even if I used your Makefile.am in "filters" directory and then executed:

./configure --enable-hdri --with-rsvg=yes --disable-docs --with-modules=yes


Did it list the modules as it compiled each one?
No, only analyze is on the list while compilation:

CC coders/coders_x_la-x.lo
CCLD coders/x.la
CC coders/coders_xwd_la-xwd.lo
CCLD coders/xwd.la
CC filters/filters_analyze_la-analyze.lo
CCLD filters/analyze.la
CXX Magick++/lib/Magick___lib_libMagick___6_Q16HDRI_la-Blob.lo
CXX Magick++/lib/Magick___lib_libMagick___6_Q16HDRI_la-BlobRef.lo
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: how remove date-time stamp from jpg photo?

Post by snibgo »

Did you do automake and autoconf first, before ./configure?
snibgo's IM pages: im.snibgo.com
zbrozo
Posts: 3
Joined: 2018-08-18T09:27:40-07:00
Authentication code: 1152

Re: how remove date-time stamp from jpg photo?

Post by zbrozo »

You are right, I didn't make automake and autoconf - thanks a lot for help. I've managed to compile fillholes. I've noticed on version IM 6.9.10 that a few modules don't compile, there were some errors so I just excluded them.

I see that fillholes method takes more time per jpg than method with Gaussian filter :)

Now I have to wait to finish processing of all the photos... but I see that on already processed photos effect is much better with "fillholes" filter... incredible :)

Thank you once again!
Post Reply