|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Enthusiast
![]() Posts: 29
Karma: 10
Join Date: Mar 2017
Device: none
|
Can't add cover in Calibre -- get "svg-error" (the property 'svg' should be declared)
When I add a cover to my ePub file, I get this Validator error:
"ERROR: OEBPS/titlepage.xhtml -- The property 'svg' should be declared in the OPF file." Could anyone please tell me how I fix this? EDIT: I've tried adding the cover in the two ways: 1) Using Calibre's "Add cover" option. 2) Adding the image as a New File, and then adding that file as a cover. But both ways result in the same error. Am I missing a third way? Last edited by Just some guy; 04-11-2017 at 05:12 PM. |
![]() |
![]() |
![]() |
#2 |
Enthusiast
![]() Posts: 29
Karma: 10
Join Date: Mar 2017
Device: none
|
OK, inspired by an old post by
![]() ![]() ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Would I be right in thinking this was an EPUB3 rather than an EPUB2? The cover page you added via calibre probably contained an image wrapped in an <svg> tag.
For EPUB3s, EpubCheck will show an error if the OPF manifest item for an XHTML file containing an <svg> tag doesn't have a properties="svg" attribute e.g. Code:
<item href="text/titlepage.xhtml" id="titlepage" media-type="application/xhtml+xml" properties="svg"/> |
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,138
Karma: 57532198
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#5 | |
Enthusiast
![]() Posts: 29
Karma: 10
Join Date: Mar 2017
Device: none
|
Quote:
But I assume I would have to open the file as an OPF (whatever that means ![]() Anyway, the problem is solved, and my ebook finally looks exactly like it should. So I'll say ![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
The OPF file is the master control file for your EPUB. You edit it like any other file when you have the EPUB open in the calibre Editor (or the Sigil editor).
|
![]() |
![]() |
![]() |
#7 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38,055
Karma: 152037714
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
![]() |
![]() |
![]() |
#8 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,138
Karma: 57532198
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
There are tools in Calibre and Sigil that do most of the normal entry tasks. On occasion, you might have to resort to direct edit to cleanup things left behind
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Use of SVG wrapper in Add Cover module | eggheadbooks1 | Sigil | 9 | 11-19-2016 03:43 PM |
SVG images marked as "unused media" | AlanHK | Sigil | 5 | 09-02-2016 12:36 PM |
using "Add Blank SVG Image" | dhdurgee | Sigil | 3 | 11-07-2015 01:47 PM |
What does properties="svg" on an <item> element in the manifest mean? | rtmyers | ePub | 0 | 12-14-2012 06:37 AM |
Validation error: svg cover | graycyn | Sigil | 2 | 07-24-2011 07:34 PM |