[Plugin] AdjustSVG
Hi,
YASP (yet another Sigil Plugin)
When modifying images already wrapped into the SVG element like cropping or resizing you need to change the viewbox attribute values in the svg tag as well as the width and height attribute in the image tag... things a computer can do better.
The plugin will scan all html files and look for an svg element having an image element as child, checking the dimensions and corrects them if they do not match.
It requires sigil >= 0.9.1, Python >= 3.4, PIL and sigil_bs4 library. If you have enabled the internal python interpreter all this is present.
If you are running an external Python interpreter i don't know if this is working due to the required sigil_bs4 lib (Beautifulsoup derivate)
//rubeus
Last edited by rubeus; 03-30-2016 at 04:25 AM.
|