![]() |
#1 |
Zealot
![]() Posts: 145
Karma: 10
Join Date: Sep 2016
Location: Montréal Québec
Device: Kobo Glo; Kobo Libra
|
No resizing with SVG
I'm using a Kobo device and kepub files. I have a new problem with the SVG configuration or else. This following code was working fine until few weeks and I don't understand why it stop operating. Now I don't get the option in the Kobo to resize the SVG image. (I'm using the Tablet output option: no resizing of the original image).
<?xml version='1.0' encoding='utf-8'?> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> ... <style type="text/css"> @page { margin-bottom: 5pt; margin-top: 5pt; } body { text-align: center; padding: 0; margin: 0; } div { padding: 0; margin: 0; } </style> </head> <body> <div> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="100%" height="100%" viewBox="0 0 864 1228" preserveAspectRatio="XmidYmid"> <image width="864" height="1228" xlink:href="Map.jpg"/> </svg> </div> ... |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
That code is basically the same as what I use. Checking one of my books with the Kobo firmware 4.20.x, the image can be zoomed. The most likely reason is that something has happened that the book was not sent to the device as a kepub. Are you using the KoboTouchExtended driver to send the books as a kepub? If so, check that it is still installed and active. There are occasional problems were it needs to be reinstalled.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Zealot
![]() Posts: 145
Karma: 10
Join Date: Sep 2016
Location: Montréal Québec
Device: Kobo Glo; Kobo Libra
|
I wasn't using the KoboTouchExtended driver. I install it and disable the Kobo Reader device. But I get the same result.
|
![]() |
![]() |
![]() |
#4 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
The "Kobo Reader device" does not come into this. It is used for the original Kobo ereader and the Kobo WiFi. All devices since then use the built-in KoboTouch driver, or if desired, the KoboTouchExtended driver. But, for the moment, forget about how you are getting the book on the device. Look on the device. In the library list, does the books show as "epub" or "Kobo epub"? It has to be the latter for the image zoom to work. If the recent books are epubs, look for one that is a kepub and check it. |
|
![]() |
![]() |
![]() |
#5 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,211
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Quote:
Code:
preserveAspectRatio="xMidYMid meet" |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Zealot
![]() Posts: 145
Karma: 10
Join Date: Sep 2016
Location: Montréal Québec
Device: Kobo Glo; Kobo Libra
|
Quote:
- All my books are kepub.epub even the one I'm trying to make it work. |
|
![]() |
![]() |
![]() |
#7 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
If you have a book that you can legally post, then we can have a look at it. And, how exactly are you getting the books onto the device as kepubs? And, doe the device show they are kepubs in the library on the device? Yes, anything the double extension of ".kepub.epub" should be treated as a kepub, but, if unless after the book imported as a kepub, it will not be treated as one. |
|
![]() |
![]() |
![]() |
#8 | |
Zealot
![]() Posts: 145
Karma: 10
Join Date: Sep 2016
Location: Montréal Québec
Device: Kobo Glo; Kobo Libra
|
Quote:
Adding "meet" don't change anything. My comprehension is meet is implicit (default) when you use X_Y_. Anyway I try that correction without success. It's look like I'm the only one with this problems! Strange. The kepub sent to my kobo months ago are still working with the same code as the example. |
|
![]() |
![]() |
![]() |
#9 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,188
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Quote:
Now resend to device. See if the problem has gone away. bernie |
|
![]() |
![]() |
![]() |
#10 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,211
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Yes, meet/slice are optional and meet is default. But the property value is case sensitive. Using XmidYmid is incorrect. Use xMidYMid, instead.
|
![]() |
![]() |
![]() |
#11 | |
Zealot
![]() Posts: 145
Karma: 10
Join Date: Sep 2016
Location: Montréal Québec
Device: Kobo Glo; Kobo Libra
|
Quote:
I will try to find some not working SVG kepub to see if this is the solution for all. |
|
![]() |
![]() |
![]() |
#12 | |||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
But, the question I had was to check what the device was seeing the book as. Forget about what you think the book is, that doesn't matter. What matters is what format the device is actually detecting and handling the book as. If "KOBO EPUB" does not show against the book when you look at it in the library on the device, it will not be treated as a kepub, and you will not be able to zoom in on images in it. It is important to check that. Once we know that, then we will at least eliminate a possibility. Quote:
And the "meet" default to something. I don't remember what, but it isn't the best choice for centering images. And if the "meet" is missing, it will not affect how the Kobo device will handle the image for zooming, just how it is displayed in the defined viewport. Quote:
|
|||
![]() |
![]() |
![]() |
#13 | ||
Zealot
![]() Posts: 145
Karma: 10
Join Date: Sep 2016
Location: Montréal Québec
Device: Kobo Glo; Kobo Libra
|
Quote:
I've done a reinitialling this morning ![]() I'm my last post I wrote Quote:
Now begin the long process of classifying manually the books in the kobo collections (or shelf ?). Last edited by jiembe; 04-17-2020 at 08:58 AM. |
||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
font size problem calibre viewer, editor, content-server with non-resizing SVG text | rjwse@aol.com | Editor | 11 | 03-26-2020 12:06 AM |
Resizing photos | Cinisajoy | Lounge | 10 | 11-27-2017 06:41 PM |
Can't add cover in Calibre -- get "svg-error" (the property 'svg' should be declared) | Just some guy | Editor | 7 | 04-11-2017 09:54 PM |
Svg wrapper and image resizing | Nabodita | ePub | 24 | 05-02-2014 12:21 AM |
resizing of svg logo with text increasing and decreasing in epub | ashokbnpal | Introduce Yourself | 0 | 07-21-2011 04:26 AM |