![]() |
#1 |
Enthusiast
![]() Posts: 26
Karma: 12
Join Date: Aug 2013
Device: kobo aura hd
|
SVG Clip
hi.
i've got a little problem and maybe a suggestion. first. creating some kepub i've found myself to have to add images with the svg tag but a lot of different sizes. even resizing all of them with the same height leaves me with different widths. i've been trying to find a fast way to resolve the problem with an automatic way to add the images as svg. the best one for now is to use the "add cover" tool and then cut and paste the code in the right place. but it's a roundabout way of doing it i was then thinking of using a clip to add the svg tag and i've come to use this. <div class="svgouter"> <svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 SGC_IMAGE_WIDTH SGC_IMAGE_HEIGHT" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink"> <image height="SGC_IMAGE_HEIGHT" width="SGC_IMAGE_WIDTH" xlink:href="../Images/\1"></image> </svg> </div> but it does not work since sigil it's not able to substitute the SGC_IMAGE_... with the image data. ah. i've tried with the SGC since i've found it on the tutorial on how change the cover standard html code here: http://web.sigil.googlecode.com/git/...add_cover.html now my question. there is a code o something similar that tells sigil to use the image height and lenght? is it possible to develop the command "insert SVG image"? |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
I do not think ePub 2.0 supports variables used as values in SVG and entities are gone in ePub 3.0 I believe. I think a cut and paste is the best way to create an insert SVG image. It really doesn't matter if this sort of thing is displayed properly in Sigil by the way. A Test in ADE is much better for this sort of thing.
Dale |
![]() |
![]() |
![]() |
#3 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Kovid Goyal's new Sigil successor does better with svg images.
I don't know though how it correlates to display in any particular device. |
![]() |
![]() |
![]() |
#4 |
Zealot
![]() Posts: 115
Karma: 10
Join Date: Jan 2011
Device: none
|
|
![]() |
![]() |
![]() |
#5 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,908
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-T1 Clip-on Light | Gilmartin | Sony Reader | 19 | 01-28-2012 08:29 AM |
Clip-on speakers? | TechnoCat | Kindle Fire | 5 | 11-22-2011 12:38 AM |
Touch Clip On Light | MorganM | Kobo Reader | 1 | 10-06-2011 06:42 AM |
Classic Will Nook clip ? | Prince Hal | Barnes & Noble NOOK | 0 | 02-18-2010 10:55 PM |
The clip? | ardeegee | Sony Reader | 6 | 09-24-2009 12:52 PM |