Jump to content
You must now use your email address to sign in [click for more info] ×

razerwolf

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by razerwolf

  1. I recently discovered that Affinity Designer will copy paths to the clipboard as SVG Documents, so I decided to use it for some simple automation. I wrote a simple python script to simplify SVG paths: https://gist.github.com/NickBeeuwsaert/004851e7f7571b288f3c And here is a example of it in action: before: Copy path with Command+V execute on command line: $ pbpaste | python svg_simplify.py | pbcopy And then paste back into Affinity Designer: I just thought it might be a cool tip for anyone who uses SVG optimization tools for web development... I'd like to set up a Automator script to streamline it but Automator is acting up for me today :/ Also: If you have imagemagick and potrace installed (usually via brew), you can rasterize a image from AFD using this (after copying the image from AFD) using: $ pbpaste | convert svg:- pnm:- | potrace -s - -o - | pbcopy (P.S. I hope this is the right area of the forum to post...)
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.