Mobileread
Plugin to insert and wrap an image with SVG
#1  CalibUser 02-05-2017, 03:56 PM
Description
The attached plugin will enable you to select an image that already exists in your ePub book or import an external image and then insert it in a new xhtml section wrapping it using SVG.

How to use the plugin
Please see the attached user guide.

UPDATE
I have updated the plugin to version 0.1.6.2 to fix a bug.
Thanks to DiapDealer for suggesting amendments to the code.

Please note that if you are using Sigil 0.99 then the first time you run the plugin it will try to run again when an image has been imported. To get round this issue please close Sigil after installing the plugin. You can then use the plugin next time you open Sigil.
[zip] InsertImageSVG_1.6.2.zip (13.4 KB, 158 views)
[epub] User Guide for InsertImageSVG_v0.1.6.2.epub (732.9 KB, 132 views)
Reply 

#2  DiapDealer 02-05-2017, 04:49 PM
Thanks! I'll get it added to the plugin index.
Reply 

#3  bravosx 02-05-2017, 06:16 PM
@CalibUser...

When you attempt to use the plug getting the message.



bravosx
zrzut.png 
Reply 

#4  Doitsu 02-05-2017, 06:27 PM
@bravosx: The plugin works fine on my Windows 10 machine. Did you check the Use Bundled Python box in the Manage Plugins dialog box?

If so, you'll need to post the steps that caused this message to be displayed, unless it's being displayed immediately after running the plugin.
Reply 

#5  DiapDealer 02-05-2017, 06:37 PM
The epub he opened probably has no images in it. I get the same error when launching the plugin when no images exist (in the plugin). Works fine on Linux, otherwise.

Just needs a way to handle the empty list situation, is all.


EDIT: I take that back. It's not the images. The error happens when an epub only has 1 xhtml file. One of the combo boxes is set to default to the second entry in the list ... but a brand-new epub only has one xhtml file.
Reply 

#6  bravosx 02-05-2017, 06:56 PM
@Doitsu...
@DiapDealer...

Field: of Use Bundled Python box in the Manage Plugins dialog box is checked.

An error message is given a moment after starting the plug.

Images are included eo Images directory.

edit: The plugin works properly when epub is a lot of files in the folder text.

Sorry for my English.
Regards
bravosx
Reply 

#7  Toxaris 02-06-2017, 03:17 AM
Thanks! I will wait for an update for the reported bug though!
Reply 

#8  DiapDealer 02-06-2017, 09:28 AM
Some suggestions in the attached patch.

In addition to the index error, I'd suggest populating the combo box with the xhtml file _names_, rather than their manifest ids. Many people won't recognize those offhand.

Also the image file filter is broken on the openfile dialog. My png files wouldn't show up unless I changed to "All files".

Yours to do with what you will, of course. Thanks for the plugin!
[txt] insertsvg.patch.txt (1.6 KB, 252 views)
Reply 

#9  CalibUser 02-06-2017, 03:38 PM
Thanks for the bug report and for the suggested patch - I have uploaded a correction in the first post of this thread
Reply 

#10  CalibUser 02-11-2017, 04:53 PM
I have updated the plugin in the first post of this thread.

Quote DiapDealer
...I'd suggest populating the combo box with the xhtml file _names_, rather than their manifest ids. Many people won't recognize those offhand.
I am not sure what you were referring to - the combo box showed the names of the xhtml files when I ran the original plugin eg Section0001.xhtml. Was you referring to the Images\... reference in the listbox? The new version no longer shows Images\...
Reply 

  Next »  Last »  (1/10)
Today's Posts | Search this Thread | Login | Register