|
|
Thread Tools | Search this Thread |
10-06-2020, 09:59 PM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Oct 2020
Location: New Zealand
Device: iPad
|
Error when uploading to vendor platforms, and a question about editing the OPF file
Kia ora,
I am new to ePub. I'm a graphic designer with some rudimentary html skills, but definitely flying blind in terms of fiddling with code. So much so that I don't really know where to put this question, so sorry if it's in the wrong place. I have been working on a fixed layout ePub for a design journal. (I should note here that yes, it does need to be fixed not reflowable as it contains several visual essays where the authors have specific requirements around layout – my preference would have been for it to be web-based or in a native app, but that isn't my call ). It was produced in InDesign and is generally working well. I ended up finding Calibre as I needed a way to resize a heap of pngs that InDesign generated for visual elements like text underlines and overrules – these were causing a problem with vendor platforms as though they are tiny in kb terms, the dimensions of some of them exceeded 4 million pixels. What a headache. Anyway I worked through that, and now have a single error: ERROR ITMS-9000: Invalid prefix attribute in root (package) element of the OPF file. Please supply a prefix attribute with valid rendition value in root <package> element of the OPF file I found the OPF file in 'edit file' and the package bit reads: <package xmlns="http://www.idpf.org/2007/opf" version="3.0" unique-identifier="bookid" prefix="ibooks: http://vocabulary.itunes.apple.com/r...xtensions-1.0/ calibre: https://calibre-ebook.com"> I tried to swap this out for content from an OPF file where this error was not occurring (but the image issue persisted), and saving it: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <package version="3.0" xmlns="http://www.idpf.org/2007/opf" unique-identifier="bookid" prefix="rendition: http://www.idpf.org/vocab/rendition/# ibooks: http://vocabulary.itunes.apple.com/rdf/ibooks/vocabulary-extensions-1.0/"> But when I reopen the editor, it looks like Calibre strips that out and reverts it to the original. Any suggestions about what's wrong with that package element? (I have no idea what a prefix attribute is or what is should look like!) And how can I maintain the changes that Calibre seems to want to remove? Any advice appreciated, especially if it's basic enough for my non-expert skills! |
10-07-2020, 06:12 AM | #2 |
null operator (he/him)
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Moderator Notice
Calibre can't do much with Fixed Layout epubs So, I am moving this to ePub forum where the bookmakers hang out. BR |
10-07-2020, 06:49 AM | #3 |
Resident Curmudgeon
Posts: 73,974
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Do your authors realize the problems with fixed layout ePub and how few systems will actually display it correctly?
|
10-07-2020, 07:35 AM | #4 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Code:
<package version="3.0" unique-identifier="bookid" xmlns="http://www.idpf.org/2007/opf" prefix="schema: http://schema.org/ rendition: http://www.idpf.org/vocab/rendition/# ibooks: http://vocabulary.itunes.apple.com/rdf/ibooks/vocabulary-extensions-1.0/" xml:lang="en-US"> You also might want to have a look at the Apple Books Asset Guide. |
|
10-07-2020, 10:12 AM | #5 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
I see .tiff files, for example, that are well over 100MB, themselves, some piece of art, that's going to be half-a-page in size, in the print book. I see this sort of cruft all the time. Any chance that these graphic elements are like that? In terms of changing out the package, Calibre IS going to replace that, simply because you are opening the editor. Try editing it in a regular HTML/text editor, not software like Calibre or Sigil that's part of a software package/program/app that looks to "fix" things for people. Hitch |
|
10-07-2020, 04:05 PM | #6 |
Grand Sorcerer
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Given that you are committed to using fixed layout, I question your desire to publish in EPUB.
PDF is better supported and leads to far fewer problems. |
10-07-2020, 04:59 PM | #7 |
Junior Member
Posts: 2
Karma: 10
Join Date: Oct 2020
Location: New Zealand
Device: iPad
|
Thanks, fixed
Thank you for your responses.
In the end I concluded that Calibre was indeed causing me hassles, so I kept the resized images file and used the top part of an opf file generated by InDesign that hadn't been near Calibre. I finally read the CanCrusher instructions properly so I could reassemble a Zip into ePub on Mac . So it submitted fine. Hitch was on the money, and I had originally done the unzip/fiddle with images/try to rezip but screwed it up. At least Calibre gave be a bit of a look under the hood in the file so I learnt some things. To address a couple of your points: Yes, the authors were made aware of the limitations (by me). The book is basically designed to be viewed on iPads or other screen devices, not ePub readers. And I have tested it on those and it does look great. It had to be fixed layout ePub given PDF no longer supports video content and this is a design/art journal that has a lot of image/video (in fact, there is also a pdf version with links to all the video online). Why it isn't in a native app or responsive web only is another question (partly to do with it needing a permanent home, ISBN and DOI), but that is not my call. This 4 million pixels issue is a known InDesign weirdness and as I said, the file sizes are tiny (a small handful of kb) but the dimensions are enormous. Because in my file these are mostly being generated by text boxes (which are almost the page size and almost entirely transparent) that contain either link underlines, or coloured boxes on footnote superscripts that are basically small flat colour squares it really doesn't matter if they are smaller (because there's no real detail to loose) so just taking the dimensions under 2000x2000px is fine, if laborious, and still looks ok on screen. So thanks for the help, got there in the end, just I wish I'd read the CanCrusher instructions in the first place (I didn't see you're supposed to just drag the file onto the icon rather than opening it in the programme – duhhh). |
10-08-2020, 01:28 AM | #8 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
All that eCanCrusher stuff, lord. It's faster to simply unzip the bloody ePUB, open the images folder and replace the offending images with "better" replacements; I typically run all the PNGs through TinyPNG, which is my go-to Jam for that. So, next time, try opening it in something like NoteTab Pro, so that you don't get that whacky "helpful" Calibre stuff. :-) Offered FWIW. Hitch |
|
10-08-2020, 05:56 AM | #9 | |
Resident Curmudgeon
Posts: 73,974
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Load an ePub into the editor. You will not save it or edit it. Go to Edit > Preferences and then make the following changes and then exit the editor and do not save the ePub if asked.
With these two options deselected, this will prevent any changes made to the ePub when it is loaded into the editor. (IMHO), these two options should be off by default. |
|
10-08-2020, 09:11 AM | #10 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
I'm sure that the OP and others who come later will appreciate that, Jon. I still pretty much just use Calibre as an archival method--shocking, I know, to use it for the purpose for which it was originally intended, but there you go, I'm boring--so I don't know all those editing tricks. :-) So, thanks for that! Hitch |
|
10-08-2020, 06:49 PM | #11 | |
the rook, bossing Never.
Posts: 11,157
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
Fixed epub is pointless. PDF does that. Video epub with video isn't an ebook at all. Make an app, because there is ZERO assurance that the existing epub or ebook reader app someone has will work with a fixed layout epub with video in it. Just because some spec exists is not a good reason to use it. Last edited by Quoth; 10-08-2020 at 06:52 PM. |
|
10-09-2020, 01:14 AM | #12 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
10-09-2020, 10:16 AM | #13 |
Addict
Posts: 311
Karma: 3196258
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
|
I would be so annoyed if I bought a book and a portion of the content was stuck in a video.
|
10-09-2020, 11:10 AM | #14 | |
A Hairy Wizard
Posts: 3,094
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:
It depends on the TYPE of book you are purchasing. For most of my Sci-Fi/Fantasy books I would agree. But my wife teaches Latin to her high school students and uses embedded videos in her books to great effect. However, those books are only used in a very controlled environment. I would imagine some other textbooks would do quite well with embedded and/or linked video. |
|
10-09-2020, 11:47 AM | #15 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ePub3 to Mobi Error - Error(prcgen):E21027: Epub file has more than one opf file | dtsmith | Kindle Formats | 4 | 01-30-2018 11:20 AM |
Kobo - OPF file Error | RZetlin | Calibre | 6 | 06-11-2014 05:49 PM |
ePub OPF file error | soulartist | ePub | 4 | 10-03-2011 05:09 PM |
editing OPF on sigil and adding flash file | shlomof | Sigil | 5 | 02-23-2011 02:39 PM |
Newbie to editing opf file | pda_junkie | Workshop | 2 | 05-08-2010 09:58 AM |