-
-
Save Anoopi-iSingh/e2891d8ce25337e23a2addf20d22f24c to your computer and use it in GitHub Desktop.
Revisions
-
matsen revised this gist
Aug 9, 2013 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,6 @@ # Requires Inkscape and ImageMagick 6.8 (doesn't work with 6.6.9) for i in $@; do BN=$(basename $i .svg) inkscape --without-gui --export-png="$BN.png" --export-dpi 300 $i convert -compress LZW -alpha remove $BN.png $BN.tiff -
matsen revised this gist
Dec 12, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ #!/bin/sh # Convert all arguments (assumed SVG) to a TIFF acceptable to PLOS # Requires Inkscape and ImageMagick 6.8 (doesn't work with 6.6.9) for i in $@; do -
matsen created this gist
Dec 12, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ #!/bin/sh # Convert all arguments (assumed SVG) to a TIFF acceptable to PLOS ONE # Requires Inkscape and ImageMagick 6.8 (doesn't work with 6.6.9) for i in $@; do inkscape --without-gui --export-png="$(basename $i .svg).png" $i BN=$(basename $i .svg) inkscape --without-gui --export-png="$BN.png" --export-dpi 300 $i convert -compress LZW -alpha remove $BN.png $BN.tiff mogrify -alpha off $BN.tiff rm $BN.png done