Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2015
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. set -x
  4.  
  5. convert -size 1000x1000 canvas:white date1.png
  6. sleep 2
  7. convert -size 1000x1000 canvas:white date2.png
  8.  
  9. sleep 2
  10. convert -size 1000x1000 canvas:white date1.jpg
  11. sleep 2
  12. convert -size 1000x1000 canvas:white date2.jpg
  13.  
  14. #f="+set date:create +set date:modify"
  15. #f="-define png:exclude-chunks=time"
  16. #f="-define png:exclude-chunks=tIME"
  17. f="-define png:exclude-chunks=date,time"
  18. #f="-define png:exclude-chunks=date -define png:exclude-chunks=time"
  19.  
  20. sleep 2
  21. convert -size 1000x1000 canvas:white $f nodate1.png
  22. sleep 2
  23. convert -size 1000x1000 canvas:white $f nodate2.png
  24.  
  25.  
  26. identify -verbose date1.png > date1.png.i
  27. identify -verbose date2.png > date2.png.i
  28.  
  29. identify -verbose date1.png > date1.jpg.i
  30. identify -verbose date2.png > date2.jpg.i
  31.  
  32. identify -verbose nodate1.png > nodate1.png.i
  33. identify -verbose nodate2.png > nodate2.png.i
  34.  
  35. openssl md5 date[12].png
  36. openssl md5 date[12].jpg
  37. openssl md5 nodate[12].png
  38.  
  39. diff -u date1.png.i date2.png.i
  40. diff -u date1.jpg.i date2.jpg.i
  41. diff -u nodate1.png.i nodate2.png.i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement