05-21-2017, 08:10 PM | #16 | |
A Hairy Wizard
Posts: 3,095
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
That is probably why your shorter image makes it all the way across and the taller does not. edit: if you do NOT want to maintain the aspect ratio then you can change the <svg> to: preserveaspectratio="none" Last edited by Turtle91; 05-21-2017 at 08:26 PM. |
|
06-06-2017, 01:42 AM | #17 | |
Connoisseur
Posts: 60
Karma: 602194
Join Date: Apr 2017
Device: Ipad
|
Quote:
Code:
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 900 160"> <image width="900" height="160" xlink:href="../Images/myimage.svg"/> </svg> |
|
Advert | |
|
06-06-2017, 02:31 AM | #18 |
Fanatic
Posts: 554
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
|
Why you are embedding an SVG inside an SVG?
|
06-06-2017, 03:24 PM | #19 | ||
A Hairy Wizard
Posts: 3,095
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
Quote:
If you fiddle with the yMid, yMin, yMax options you may get something close to what you are looking for but as others have mentioned it's very difficult to do reliably across all devices/apps. |
||
06-07-2017, 02:53 PM | #20 |
Connoisseur
Posts: 60
Karma: 602194
Join Date: Apr 2017
Device: Ipad
|
OK, I've changed yMid to yMin when the image is placed at the bottom, and that helps.
As an aside, is there a way of inserting a 'title' pop up? I tried inserting it between 'height' and 'xlink' but no luck. |
Advert | |
|
Tags |
image, svg, width, zoom |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
fit a image to the width of screen | leescott | ePub | 7 | 07-23-2015 10:39 AM |
Maximize Image | Francois Driesen | Calibre | 8 | 08-19-2014 02:58 PM |
Changing image width in the economist | goios | Recipes | 1 | 04-24-2014 01:29 PM |
problem with floating image and relative width | jobalcaen | ePub | 5 | 08-17-2013 07:53 AM |
Setting Image width on news feed | Wiggles | Calibre | 2 | 08-13-2010 02:10 AM |