Thread: SVG Clip
View Single Post
Old 12-14-2013, 11:27 AM   #1
tharael89
Enthusiast
tharael89 began at the beginning.
 
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"?
tharael89 is offline   Reply With Quote