![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,178
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
|
Check Book can't find images in svg tags
Is this a bug?
I have this: Code:
<div> <svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMidYMid" version="1.1" viewBox="0 0 402 650" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink"> <image height="650" width="402" xlink:href="Images/img001.jpg"></image> </svg> </div> The referencing file is OEBPS/maps.html, and the image file is OEBPS/Images/img001.jpg so the file locations are OK (they must be because File Preview would not work). Last edited by ShellShock; 02-02-2014 at 06:48 AM. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,178
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
|
OK, I found the problem was due to case sensitivity. The image file is in "OEBPS/images/img001.jpg", but I was linking to "Images/img001.jpg".
Would this be a good candidate for an automatic fix? I.e., change case of links to match physical locations. Last edited by ShellShock; 02-02-2014 at 06:55 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,231
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Case mismatches are a rather subtle problem. calibre represents the book as files on the filesystem. Therefore case mismatches may or may not be detected, depending on the case sensitivity of the underlying file system. I plan to spend the time someday to make it work right on all filesystems, but for the moment, the fact that it points out *some* error is enough.
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,231
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Turns out that inspiration (in the form of a concise algorithm to handle case-mismatches on all types of filesystems) struck while I was in the shower. https://github.com/kovidgoyal/calibr...da2c37a0842b66
|
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,178
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
|
Great work...thanks!
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,923
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Some people sing
others write code Thanks
![]() |
![]() |
![]() |
![]() |
#7 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 56
Karma: 2024
Join Date: Apr 2011
Location: Southern Idaho
Device: Samsung Galaxy Tabs
|
Just think what Calibre would be like if he took more showers each day. But, he would become the cleanest and most wrinkled programmer in the world.
![]() ![]() ![]() |
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,231
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I have been known to linger in my showers till the hot water runs out. I do most of my serious thinking in there
![]() |
![]() |
![]() |
![]() |
#9 |
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
|
Think what you could accomplish with a bigger water heater!
You do great work! Dale |
![]() |
![]() |
![]() |
#10 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 56
Karma: 2024
Join Date: Apr 2011
Location: Southern Idaho
Device: Samsung Galaxy Tabs
|
Maybe this is why the code is so clean.
All kidding aside, I really do appreciate your program along with all of the various plugins. Ron |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How good Sigil supports SVG images? | RbnJrg | Sigil | 7 | 07-18-2013 03:08 AM |
blank pages after SVG images in Kobo | jobalcaen | ePub | 3 | 05-19-2013 01:19 PM |
can I use SVG images in mobi? | sarah_pnix | Kindle Formats | 4 | 01-07-2013 04:21 PM |
Two Neighboring SVG Tags | Rand Brittain | ePub | 6 | 12-19-2012 04:58 PM |
<svg> to <img> tags conversion | codrutoctavian | Conversion | 1 | 02-15-2012 09:58 PM |