View Single Post
Old 02-05-2017, 02:56 PM   #1
CalibUser
Addict
CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.
 
Posts: 201
Karma: 62362
Join Date: Jul 2015
Device: Sony
Plugin to insert and wrap an image with SVG

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 or existing xhtml section, wrapping it with SVG tags.

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

UPDATE
I have updated this plugin to version 0.2.1.0 to put an image on the clipboard from one that already exists in your ePub book or from an external image. The image on the clipboard is surrounded by SVG tags. The image and these tags can then be pasted into any part of your ePub.
  • Images are inserted in the Book Browser in the position that you select using this plugin; however, you may want to move the page containing the image to a different position in the underlying ePub structure of the book for Sigil version 1.0.0.0 or above. To do this (after running this plugin) right-click on the xhtml section that contains the image and select Move from the pop up menu. You can then select the underlying folder in the ePub structure where you want to put this page.
  • Similarly, if you import an image you may wish to move it to a different position in the underlying ePub structure of the ePub.


After pasting in the image and SVG code, you may want to add a class to the <div> wrapper eg div.breakavoid {page-break-inside: avoid;} as suggested by AlanHK.

I have updated this plugin to version 0.2.1.1. This version has the following improvements:
  • Checking for updates - you can set the time interval between reminders
  • The copy button changes colour when an image has been selected for import
  • Code has been improved for the copying process.

I have updated this plugin to version 0.2.1.3 to fix a small bug.

Update I have updated this plugin to version 0.2.1.4 to reflect an update in one of the libraries that this plugin depends on.

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.
Attached Files
File Type: zip InsertImageSVG_02.1.4.zip (14.2 KB, 311 views)
File Type: epub User Guide for InsertImageSVG_v0.2.1.3.epub (473.5 KB, 104 views)

Last edited by CalibUser; 11-17-2023 at 06:43 AM. Reason: Updated user guide to v0.2.1.3.
CalibUser is offline   Reply With Quote