![]() |
Adding an SVG Wrapper
I know you can add a blank SVG file to an epub by right-clicking the Images folder in the Book Browser (I'm not sure why you would want a blank SVG file, but there must be a reason), but is there anyway of inserting a regular image file (jpg, png, etc) with an SVG wrapper?
I can never seem to build it correctly when I want to insert one, so if there is a method already baked into Sigil? Would this be an example where using the clips could resolve this? |
Quote:
https://www.mobileread.com/forums/sho...d.php?t=215088 However, you can insert a SVG wrapper in Sigil by means of: Code:
<div>http://www.w3.org/TR/SVG/images/coor...spectRatio.png Regards Rubén |
Quote:
I am guessing, there does need a way to make Sigil accept (incorporate) a SVG into the book. I would have :yahoo: if they had ('borrowed' from the code used in Calibre for SVG covers) to Place "SVG Wrapped Image" (opposed to the current: place Image). There are uses for both without having to learn SVG on top of the EPUB dialect of XHTML :thumbsup: |
Sigil does have a Tools->Add Cover feature that will add an image using an SVG wrapper. It is designed to be used for a cover, so it will create/recreate a cover.html file and mark the file and the image as type cover. You can then copy the SVG wrapper to where you want it, and when everything is done you can re-add your original cover. Not a seemless Add Image using SVG wrapper feature, but it's an option. The SVG inserted is actually fully customizable using an ini file as described in the User Guide.
|
Quote:
|
Quote:
It was on Tools where I would not have expected it :chinscratch:. I was thinking that 'Cover' was just another image (with flags) and was doing it the hard way (even witout the SVG part). 1a) Add Image File 1b) Add cover semantics 2) Place Image 2b) Add cover page semantics |
Quote:
BobC |
Quote:
Better to know it now than never.... :D |
Quote:
|
Quote:
I have a clip set to that to replace: preserveAspectRatio="none" that I find (or not used) in other books. I HATE STRETCH-O-VISION. Be it TV or book covers |
Quote:
|
Quote:
|
Quote:
The "Add Cover" feature works fine but if I have enabled "Tidy", the <image /> tag is changed to <image>...</image> and that is not correct. Could it be possible in next versions of Sigil to fix that bug? Many thanks in advance. |
Quote:
|
Quote:
Code:
<img alt="Foobird" class="foocvr" src="../Images/00002.jpeg" /> |
| All times are GMT -4. The time now is 07:51 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.