Blog: Add old blog posts
This commit is contained in:
parent
8303410a25
commit
d8abc8164c
4 changed files with 298 additions and 0 deletions
22
blog/2022-02-04_inkscape-eps.md
Normal file
22
blog/2022-02-04_inkscape-eps.md
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# Inkscape Postscript Export in 2022
|
||||
|
||||
A lot of older guides using Inkscape to convert SVG images to PostScript
|
||||
use a `-E` CLI flag that no longer exists in the Inkscape CLI:
|
||||
~~`inkscape input.svg -E out.eps`~~.
|
||||
|
||||
**The correct way to do this in the *current* year:**
|
||||
```
|
||||
inkscape --export-type=eps -o out.eps in.svg
|
||||
```
|
||||
|
||||
If you want to automatically convert all of the `.svg` files in your current
|
||||
working directory to `.eps` files, you can use something like this script:
|
||||
```bash
|
||||
#!/usr/bin/env bash
|
||||
for svg in *.svg; do
|
||||
bname=$(basename "$svg" | sed 's/\.svg$//g')
|
||||
echo "Converting \""$bname"\"..."
|
||||
echo -e "\tinkscape --export-type=eps -o \"$bname.eps\" \"$svg\""
|
||||
inkscape --export-type=eps -o "$bname.eps" "$svg"
|
||||
done
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue