ImageMagick. Multiple SVG files are only allowed for PDF and PS output I'm running script /tools/generatepngall.sh from https://github.com/twain47/Open-SVG-Map-Icons to generate PNG icons from SVG-files.

However, there are errors:

Multiple SVG files are only allowed for PDF and PS output.
Multiple SVG files are only allowed for PDF and PS output.
convert: unable to open image `/Volumes/Data/Downloads/SJJB-SVG-Icons-20111021/pngall/accommodation_alpinehut.p.0092DA.32.png': No such file or directory @ error/blob.c/OpenBlob/2643.
convert: unable to open file `/Volumes/Data/Downloads/SJJB-SVG-Icons-20111021/pngall/accommodation_alpinehut.p.0092DA.32.png' @ error/png.c/ReadPNGImage/3995.
convert: image sequence is required `+clone' @ error/convert.c/ConvertImageCommand/946.
Multiple SVG files are only allowed for PDF and PS output.
Multiple SVG files are only allowed for PDF and PS output.


I can't understand what's wrong.

P.S.: I googled an answer, that it might be due to rsvg should have an -o before output filename, and I changed it in recolourtopng.sh, but the result is the same.
/dev/stdin was superfluous.

When I removed it, it works perfectly:

${BASEFOLDER}/tools/recolour.sh $1 $2 $3 $4 | rsvg -f png -w ${5} -h ${5} -o ${6}.png