Quote:
Originally Posted by rubeus
For example inserting images. I dont want them to blow up on hires screens over the "natural" size so i have a common code snippet and to make it individual to each image i'm applaying the with via inline stylesheet [...]:
|
You should be able to this with beautifulsoup4 and PIL. I.e. grab all img tags with BS4, get the dimensions with PIL and then add a style attribute with BS4.
The following edit plugin code, which requires Sigil 0.9 (and higher) and the bundled interpreter, should work.