memory-leaks

Still reachable: lots of words in many pages.
git clone https://git.kevinlegouguec.net/memory-leaks
Log | Files | Refs | README | LICENSE

commit 63c72edc1a50cb4e54dced8d8b231959075fc14d
parent fcbee6bab58ac9a949b94ef517e073816365e5a7
Author: Kévin Le Gouguec <kevin.legouguec@gmail.com>
Date:   Sun, 12 Dec 2021 18:15:12 +0100

Add ImageMagick lore

Diffstat:
Aguides/imagemagick.org | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/guides/imagemagick.org 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