summaryrefslogtreecommitdiff
path: root/guides/imagemagick.org
blob: 25859e8bc3e61d456a3ecf330d45fd6cbbbbba1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
ImageMagick recipes I should stuff into config files or scripts, but
haven't yet.
* Configuration
** Allow conversion from/to PDF
- Open ImageMagick's =policy.xml= configuration file.
- Locate the =<policy>= tag with a =pattern= including "PDF".
- Comment it out.
* Comparing images
~magick compare~ is a thing; ~magick convert~ can also do [[https://stackoverflow.com/a/33673440][neat stuff]]:
#+begin_src sh
convert '(' a.png -flatten -grayscale Rec709Luminance ')' \
        '(' b.png -flatten -grayscale Rec709Luminance ')' \
        '(' -clone 0-1 -compose darken -composite ')' \
        -channel RGB -combine diff.png
#+end_src