Skip to content

Simple script to convert svg files to grayscale

License

Notifications You must be signed in to change notification settings

Snailedlt/svgray

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

svgray

Simple script to convert svg files to grayscale.

The replacement uses a simple regex so if you have text containing SVG color codes in your SVGs, this will replace them, sorry. My first draft of this script used BeautifulSoup and avoided this issue but I decided against requiring external dependencies.

Note: the script does not currently handle named colors; that's planned for the future.

Installation

  • Make sure python3 is in your PATH
  • Put svgray and .svgray.py in the same directory somewhere in your PATH or wherever you intend to use it
  • chmod x svgray

Usage

svgray [-q] FILE

About

Simple script to convert svg files to grayscale

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%