diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2021-12-12 18:15:12 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2021-12-12 18:15:12 +0100 |
| commit | 63c72edc1a50cb4e54dced8d8b231959075fc14d (patch) | |
| tree | 3449bcd78d1e3e3f0f3e14a3826732ba717d69d9 /guides | |
| parent | fcbee6bab58ac9a949b94ef517e073816365e5a7 (diff) | |
| download | memory-leaks-63c72edc1a50cb4e54dced8d8b231959075fc14d.tar.xz | |
Add ImageMagick lore
Diffstat (limited to 'guides')
| -rw-r--r-- | guides/imagemagick.org | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/guides/imagemagick.org b/guides/imagemagick.org new file mode 100644 index 0000000..25859e8 --- /dev/null +++ b/guides/imagemagick.org @@ -0,0 +1,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 |
