From d3a5724a3416dbd198e86dc888095efd234f17f1 Mon Sep 17 00:00:00 2001 From: Justin W. Flory Date: Feb 27 2020 19:33:17 +0000 Subject: Makefile: Change deprecated Inkscape flag This was annoying to figure out because the Inkscape manpage still shows `--export-png` as a valid option, even though it was removed in the last release. It has to be `--export-file` now: https://wiki.inkscape.org/wiki/index.php/Using_the_Command_Line#New_options Undocumented features… Since I still use this Makefile for my own blog featured images, I figured I should go ahead and upstream my patch. Thanks @pfrields and @ryanlerch for this handy little script: https://github.com/jwflory/blog-images/commit/937c3d3627e82536cdc31dc73af6aa50d2108d51 Signed-off-by: Justin W. Flory --- diff --git a/images/Makefile b/images/Makefile index edc0361..2fabf1c 100644 --- a/images/Makefile +++ b/images/Makefile @@ -7,8 +7,8 @@ help: all: help -%.png: %.svg - @inkscape -z -C -w 1890 -e $@ $< +%.png: %.svg + @inkscape --without-gui --export-area-page --export-width=1890 --export-file=$@ $< %.jpg: %.png @convert $< $@