Warning: this is an htmlized version!
The original is across this link,
and the conversion rules are here.
#######
#
# E-scripts on ImageMagick.
#
# Note 1: use the eev command (defined in eev.el) and the
# ee alias (in my .zshrc) to execute parts of this file.
# Executing this file as a whole makes no sense.
#
# Note 2: be VERY careful and make sure you understand what
# you're doing.
#
# Note 3: If you use a shell other than zsh things like |&
# and the for loops may not work.
#
# Note 4: I always run as root.
#
# Note 5: some parts are too old and don't work anymore. Some
# never worked.
#
# Note 6: the definitions for the find-xxxfile commands are on my
# .emacs.
#
# Note 7: if you see a strange command check my .zshrc -- it may
# be defined there as a function or an alias.
#
# Note 8: the sections without dates are always older than the
# sections with dates.
#
# This file is at <http://angg.twu.net/e/imagemagick.e>
#           or at <http://angg.twu.net/e/imagemagick.e.html>.
#        See also <http://angg.twu.net/emacs.html>,
#                 <http://angg.twu.net/.emacs[.html]>,
#                 <http://angg.twu.net/.zshrc[.html]>,
#                 <http://angg.twu.net/escripts.html>,
#             and <http://angg.twu.net/>.
#
#######





# «.wand»		(to "wand")
# «.wand-api»		(to "wand-api")
# «.tclmagick»		(to "tclmagick")
# «.convert»		(to "convert")
# «.rotate»		(to "rotate")
# «.exif»		(to "exif")
# «.exif-orientation»	(to "exif-orientation")
# «.whiteboard»		(to "whiteboard")




# (find-esgrep "grep -niH -e imagemagick *.e")
# (find-es "x" "imagemagick")

# (find-status   "imagemagick")
# (find-vldifile "imagemagick.list")
# (find-udfile   "imagemagick/")
# (find-status   "imagemagick-doc")
# (find-vldifile "imagemagick-doc.list")
# (find-udfile   "imagemagick-doc/")
# (find-fline "/usr/share/doc/imagemagick/www/api/")
# (find-udw3m "imagemagick/www/api/resize.html")
# (find-udw3m "imagemagick/www/api/resize.html")





# (find-zsh "installeddebs | sort | grep magick")
# (find-zsh "availabledebs | sort | grep magick")





#####
#
# Wand
# 2010dec15
#
#####

# «wand»  (to ".wand")
# (find-zsh "installeddebs | sort | grep wand")
# (find-zsh "availabledebs | sort | grep wand")

# (find-status   "libmagickwand-dev")
# (find-vldifile "libmagickwand-dev.list")
# (find-udfile   "libmagickwand-dev/")
# (find-status   "libmagickwand3")
# (find-vldifile "libmagickwand3.list")
# (find-udfile   "libmagickwand3/")

# (find-fline "/usr/bin/MagickWand-config")
# (find-fline "/usr/bin/Wand-config")
# (find-fline "/usr/lib/pkgconfig/")
# (find-fline "/usr/lib/pkgconfig/MagickWand.pc")
# (find-fline "/usr/lib/pkgconfig/Wand.pc")



#####
#
# The Wand API
# 2010dec15
#
#####

# «wand-api»  (to ".wand-api")
# (find-status   "imagemagick-doc")
# (find-vldifile "imagemagick-doc.list")
# (find-udfile   "imagemagick-doc/")
# (find-udfile "imagemagick/www/")
# (find-udw3m  "imagemagick/www/api.html")
# (find-udfile "imagemagick/www/api/")
# (find-udw3m  "imagemagick/www/api/transform.html")




#####
#
# TclMagick
# 2010dec15
#
#####

# «tclmagick»  (to ".tclmagick")
# (find-es "tcl" "tclmagick")
# (find-es "tcl" "tclmagick-build")
# (find-es "tcl" "tclmagick-build2")
# (find-status   "tclmagick")
# (find-vldifile "tclmagick.list")
# (find-udfile   "tclmagick/")
# (find-udfile "tclmagick/")
# (find-udw3m  "tclmagick/index.html")
# (find-udw3m  "tclmagick/TclMagick.html")
# (find-udw3m  "tclmagick/TkMagick.html")
# file:///usr/share/doc/tclmagick/TclMagick.html
# file:///usr/share/doc/tclmagick/TkMagick.html

# (find-tclmagickfile "")
# (find-tclmagickfile "tests/")
# (find-tclmagickfile "tests/test-draw.tcl")
# (find-tclmagickfile "tests/test-pixel.tcl")
# (find-tclmagickfile "tests/test-wand.tcl")
# (find-tclmagickfile "tests/test-wand.tcl" "$draw Rectangle")
# (find-tclmagickfile "tests/test-wand.tcl" "$wand CropImage")
# (find-tclmagickfile "tests/tkmagick.tcl")
# (find-tclmagickfile "tmp/")

# (find-fline "~/SCANS/caderno4/C2_VS_2010dec13_2.jpg")





#####
#
# convert
# 2012may04
#
#####

# «convert»  (to ".convert")
# (find-esgrep "grep -nH -e convert *.e")
# (find-man "1 convert" "-despeckle")
# (find-man "1 convert" "-scale")
# (find-man "1 convert" "-resize")
# (find-fline "~/eev-current/debian/eev.xpm")

* (eepitch-shell)
* (eepitch-kill)
* (eepitch-shell)

convert ~/eev-current/debian/eev.xpm -scale 200   /tmp/eev_s200pixels.png
convert ~/eev-current/debian/eev.xpm -scale 200%  /tmp/eev_s200percent.png
convert ~/eev-current/debian/eev.xpm -resize 200  /tmp/eev_r200pixels.png
convert ~/eev-current/debian/eev.xpm -resize 200% /tmp/eev_r200percent.png
# (find-sh "for i in /tmp/eev_*; do identify $i; done")
# (find-fline "/tmp/" "eev")

# Blurred:
# (find-fline "/tmp/eev_r200percent.png")
# (find-fline "/tmp/eev_r200pixels.png")

# Sharp:
# (find-fline "/tmp/eev_s200percent.png")
# (find-fline "/tmp/eev_s200pixels.png")







# (find-man "1 ImageMagick")
# (find-man "1 animate")
# (find-man "1 compare")
# (find-man "1 composite")
# (find-man "1 conjure")
# (find-man "1 convert")
# (find-man "1 display")
# (find-man "1 identify")
# (find-man "1 import")
# (find-man "1 mogrify")
# (find-man "1 montage")
# (find-man "1 stream")


#####
#
# rotate
# 2012aug26
#
#####

# «rotate»  (to ".rotate")
* (eepitch-shell)
* (eepitch-kill)
* (eepitch-shell)
# (find-fline "/tmp/dejours/")
cd /tmp/dejours/
convert 0030.jpeg -rotate 180 0030_r.jpeg
convert 0030.jpeg -rotate 180 0030.jpeg




#####
#
# exif
# 2012aug26
#
#####

# «exif»  (to ".exif")
# http://en.wikipedia.org/wiki/Exchangeable_image_file_format
# (find-zsh "availabledebs | sort | grep exif")
# (find-status   "exif")
# (find-vldifile "exif.list")
# (find-udfile   "exif/")
# (find-man "1 exif")
# (find-man "1 exif" "Orientation tag")

# (find-man "1 identify")

# (find-fline "/sda6/nikon/containers/orig/")
* (eepitch-shell)
* (eepitch-kill)
* (eepitch-shell)
cp -v /sda6/nikon/containers/orig/DSC_0112.JPG /tmp/

# (find-man "1 exif")
# (find-sh "exif --list-tags /tmp/DSC_0112.JPG")
# (find-sh "exif --list-tags /tmp/DSC_0112.JPG | grep '\\*'")
# (find-sh "exif             /tmp/DSC_0112.JPG")

# (find-sh "exif /sda6/nikon/containers/orig/DSC_0117.JPG     | tee /tmp/o")
# (find-sh "exif /sda6/nikon/containers/DSC_0117_r4_rampa.JPG | tee /tmp/o2")
# (find-tkdiff "/tmp/o" "/tmp/o2")

# (find-callprocess '("exif" "/tmp/DSC_0112.JPG") "Inch")




#####
#
# Exif orientation problem
# 2013sep26
#
#####

# «exif-orientation» (to ".exif-orientation")
# http://www.daveperrett.com/articles/2012/07/28/exif-orientation-handling-is-a-ghetto/
# http://www.impulseadventure.com/photo/exif-orientation.html

# 2014mar12:
# (find-angg ".emacs" "rotate")
# file:///usr/share/doc/imagemagick/www/command-line-options.html#auto-orient

# http://www.emacswiki.org/emacs/Tumme
# (find-egrep "grep -niH -e rotation *.el")
# (find-efile "image-dired.el")
# (find-efile "image-mode.el")

# (find-freenode-links "##imagemagick")
# http://angg.twu.net/2013.2-GA/20130911_GAA1.jpg
# (find-fline "~/2013.2-GA/20130911_GAA1.jpg")
# (find-exif "~/2013.2-GA/20130911_GAA1.jpg")
# (find-exif "~/2013.2-GA/20130911_GAA2.jpg")

<edrx> hi... this is an image that looks in the "right" orientation
       in browsers and upside-down in Emacs (and possibly in other
       programs too):
       http://angg.twu.net/2013.2-GA/20130911_GAA1.jpg
<edrx> when I run exif on it it says that its orientation is
       "Bottom-right"... the other images in the directory are
       "Top-left".
<edrx> I usually adjust the orientation of my photos with commands
       like this: "convert orig.jpg -rotate 270 new.jpg" - which,
       in this case and others, produces images that are rendered
       in one way in programs that respect the exif orientation
       field, and in another in those that don't.
<edrx> any suggestions? there must be some flags and options in
       imagemagick to produce images that do not confuse the
       programs that treat the exif orientation field in the wrong
       way...
(edrx) 






#####
#
# Whiteboard
# 2014jun07
#
#####

# «whiteboard» (to ".whiteboard")
# (find-es "gimp" "whiteboard")














# (find-sh "grep-aptavail -P imagemagick")
https://answers.launchpad.net/ubuntu/+source/tclmagick/+question/125936
http://www.imagemagick.org/script/api.php
http://tclmagick.sourceforge.net/


# (find-es "tcl" "tclmagick-using")
# (find-es "tcl" "tclmagick-using" "resize")


# (find-zsh "availabledebs | sort | grep libmagick")



# (find-udw3m "imagemagick/www/command-line-options.html#despeckle")
# (find-udw3m "imagemagick/www/command-line-options.html#median")
# http://en.wikipedia.org/wiki/Median_filter
# http://en.wikipedia.org/wiki/Speckle_noise
# http://en.wikipedia.org/wiki/Salt_and_pepper_noise
# http://en.wikipedia.org/wiki/Gaussian_blur






#  Local Variables:
#  coding:               raw-text-unix
#  ee-delimiter-hash:    "\n#*\n"
#  ee-delimiter-percent: "\n%*\n"
#  ee-anchor-format:     "«%s»"
#  End: