View Single Post
Old 12-21-2015, 03:39 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] AddImgasSVG

Hi,

Doitsu has published a plugin to select an image which is then inserted as a complete new page wrapped in SVG to fill the entire screen retaining the aspect ratio. This is the same way the Add Cover menu item is working, but without adding the semantics.

The original Version can be found here:

https://www.mobileread.com/forums/sho...d.php?t=255300

At first some honorable mentions:
  • Doitsu for his first version
  • KevinH for his patience
  • diapdealer and eschwarz for giving some nice tips'n'tricks

The way of publishing the enhanced version was Doitsu's proposal.

What has been enhanced?
  • the list in the dropdown menu is sorted
  • there are no other libs needed any more, imagesize determined with PIL
  • bug with non-unique filenames/ids fixed
  • existent cover.xhtml template used if present in sigil's preference environment

What is the disadvantage? My Version is Python >3 only. This and the PIL library are present when using Sigil > 0.9.1 using the internal python interpreter. If you still want to use Python 2.7 you need to install Doitsu's version which can be found in the thread linked above.

Last edited by rubeus; 03-30-2016 at 04:26 AM.
rubeus is offline   Reply With Quote