use pipe with inkscape

This commit is contained in:
Roy Olav Purser 2021-06-15 15:51:02 +02:00
parent 02bbb23e2f
commit 14664e3bc6
Signed by: roypur
GPG Key ID: E14D26A036F21656
2 changed files with 5 additions and 9 deletions

View File

@ -2,8 +2,8 @@
dir=$(dirname $(realpath $0)) dir=$(dirname $(realpath $0))
svg_data=$(curl --silent https://git.purser.it/roypur/stream-api/raw/branch/master/frontend/favicon-basic.svg) svg_data=$(curl --silent https://git.purser.it/roypur/stream-api/raw/branch/master/frontend/favicon-basic.svg)
echo ${svg_data} | inkscape --export-area-page --export-width=16 --export-height=16 --export-filename="${dir}/chrome/icon-16.png" echo ${svg_data} | inkscape --pipe --export-area-page --export-width=16 --export-height=16 --export-filename="${dir}/chrome/icon-16.png"
echo ${svg_data} | inkscape --export-area-page --export-width=19 --export-height=19 --export-filename="${dir}/chrome/icon-19.png" echo ${svg_data} | inkscape --pipe --export-area-page --export-width=19 --export-height=19 --export-filename="${dir}/chrome/icon-19.png"
echo ${svg_data} | inkscape --export-area-page --export-width=38 --export-height=38 --export-filename="${dir}/chrome/icon-38.png" echo ${svg_data} | inkscape --pipe --export-area-page --export-width=38 --export-height=38 --export-filename="${dir}/chrome/icon-38.png"
echo ${svg_data} | inkscape --export-area-page --export-width=48 --export-height=48 --export-filename="${dir}/chrome/icon-48.png" echo ${svg_data} | inkscape --pipe --export-area-page --export-width=48 --export-height=48 --export-filename="${dir}/chrome/icon-48.png"
echo ${svg_data} | inkscape --export-area-page --export-width=128 --export-height=128 --export-filename="${dir}/chrome/icon-128.png" echo ${svg_data} | inkscape --pipe --export-area-page --export-width=128 --export-height=128 --export-filename="${dir}/chrome/icon-128.png"

View File

@ -36,8 +36,4 @@ fi
${browser} --disable-gpu --no-sandbox --user-data-dir=${chrome_dir} --pack-extension="${dir}/chrome" --pack-extension-key="${temp_dir}/privkey.pem" ${browser} --disable-gpu --no-sandbox --user-data-dir=${chrome_dir} --pack-extension="${dir}/chrome" --pack-extension-key="${temp_dir}/privkey.pem"
ls -l ${dir}
ls -l ${dir}/chrome
rm -rf ${temp_dir} rm -rf ${temp_dir}