A simple WordPress plugin that will allow users to upload raster images and convert them to usable SVGs with a shortcode.
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
admin
includes
pxtosvg-functions.php
pxtosvg.php
readme.md

readme.md

PX to SVG (WIP)

A simple WordPress plugin that will allow users to upload raster images and convert them to usable SVGs with a shortcode.

Shortcode

To-Do

  • Check if filename already exists when converting and uploading
  • Add a "Library" page (shows all the SVGs)
  • Batch file upload
  • Add a settings page (save dir, default threshold, compress/not compress SVG, etc...)
  • Add support for PNG somehow? Example 1, Example 2
  • [ ]Shortcode
    • Get all the attributes working (color, width, height)
    • How-to in the readme
    • Add a button above the editor to insert a shortcode (able to choose from created SVGs)
  • Add the uploaded image as fallback, or include a field
  • Create an SVG sprite? Example
  • Add the ability to edit the SVG's?
  • Inspiration for smaller filesize

Credit

Credit to Eric Meyer, Amelia Bellamy-Royds, Robin Cafolla, and Neal Brooks for the conversion script.

Changelog