View Single Post
Old 01-06-2016, 11:55 AM   #1
rubeus
Banned
rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.
 
Posts: 272
Karma: 1224588
Join Date: Sep 2014
Device: Sony PRS 650
[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.
rubeus is offline   Reply With Quote