This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -x | |
convert -size 1000x1000 canvas:white date1.png | |
sleep 2 | |
convert -size 1000x1000 canvas:white date2.png | |
sleep 2 | |
convert -size 1000x1000 canvas:white date1.jpg | |
sleep 2 | |
convert -size 1000x1000 canvas:white date2.jpg | |
#f="+set date:create +set date:modify" | |
#f="-define png:exclude-chunks=time" | |
#f="-define png:exclude-chunks=tIME" | |
#f="-define png:exclude-chunks=date,time" | |
f="-define png:exclude-chunks=date -define png:exclude-chunks=time" | |
sleep 2 | |
convert $f -size 1000x1000 canvas:white nodate1.png | |
sleep 2 | |
convert $f -size 1000x1000 canvas:white nodate2.png | |
identify -verbose date1.png > date1.png.i | |
identify -verbose date2.png > date2.png.i | |
identify -verbose date1.png > date1.jpg.i | |
identify -verbose date2.png > date2.jpg.i | |
identify -verbose nodate1.png > nodate1.png.i | |
identify -verbose nodate2.png > nodate2.png.i | |
openssl md5 date[12].png | |
openssl md5 date[12].jpg | |
openssl md5 nodate[12].png | |
diff -u date1.png.i date2.png.i | |
diff -u date1.jpg.i date2.jpg.i | |
diff -u nodate1.png.i nodate2.png.i |
Author
wkoszek
commented
Nov 20, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment