Re: how remove date-time stamp from jpg photo?
Posted: 2015-11-11T03:24:16-07:00
Removed, I found I had inadvertently done this twice.
Use https://github.com/ImageMagick/ImageMagick/discussions instead.
https://imagemagick.com/discourse-server/
https://imagemagick.com/discourse-server/viewtopic.php?t=28640
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
What does that mean?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?