Skip to content

Commit 4c391c2

Browse files
committed
logo [nfc]: Update inkscape commands for Inkscape 1.x
I believe the Inkscape version I was using the last time I generated these files was Inkscape 0.92.4. The version now on my machine is Inkscape 1.2.2. In Inkscape 1.0, they made some changes to the `inkscape` CLI. The old way of specifying where to put the output is deprecated, and now produces these warnings: $ tools/generate-logos Warning: Option --export-png= is deprecated Warning: Option --export-png= is deprecated Warning: Option --export-png= is deprecated […] So, switch to the new way. (The new version also produces slightly different output; the old and new versions look identical to my eye, though examining with the `sng` tool confirms some pixels have slightly different values. Leaving those changes out for now, to bundle them with substantive changes coming later in this commit series.)
1 parent 1bc646f commit 4c391c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/generate-logos

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ make_one_ios_app_icon() {
7878
local output_basename=Icon-"${size_pt}x${size_pt}@${scale}x".png
7979
local output="${iconset}"/"${output_basename}"
8080
if [ ! -f "${output}" ]; then
81-
inkscape "${src_icon_square_beta}" -w "${size_px}" --export-png="${output}"
81+
inkscape "${src_icon_square_beta}" -w "${size_px}" -o "${output}"
8282
fi
8383

8484
printf >>"${contents}" \
@@ -139,7 +139,7 @@ make_ios() {
139139

140140
make_webp() {
141141
local input="$1" size="$2" output="$3"
142-
inkscape "${input}" -w "${size}" --export-png="${tmpdir}"/tmp.png
142+
inkscape "${input}" -w "${size}" -o "${tmpdir}"/tmp.png
143143
# `cwebp -z 9` means lossless, and max/slowest compression
144144
cwebp -z 9 "${tmpdir}"/tmp.png -o "${output}"
145145
}

0 commit comments

Comments
 (0)