Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 07-27-2010, 07:03 AM   #1
Adjust
Addict
Adjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel is
 
Adjust's Avatar
 
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
cleaning the content.opf file

Hi Guys,
I'm having alot of:
"content.opf(67): duplicate resource:"
errors, after creating an epub from InDesign CS3

I can manually delete this image references which fix the problem, but there could be 1000 of them...
here is a screen grab...I've put red dots next to the line that the shouldn't be there...
So for every image in the job it InDesign will duplicate it for every xhtml and so...

eg If you have 10 xhtml files each with 10 images then those 100 image would be duplicated 10 times and throw up that error message....

It's taking forever to clean them up.
There must be an easier way?

Adjust is offline   Reply With Quote
Old 07-27-2010, 07:29 AM   #2
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,188
Karma: 727236
Join Date: Sep 2009
Device: PRS-505
Open the .opf in Notepad++ and use a regular expression to replace the erroneous lines with a blank.

I'm guessing that you have 2 images in each chapter, and they're all linked to the same sources on disk. If you want to avoid having to clean up the opf and can accept a bit of bloat in your epub, then a solution might be to create copies of the images with distinct names for each chapter and link to those in your source documents.

I never used CS3 to create epubs, but I do know a lot of people complained about how buggy its epub export filter was. Unfortunately, even CS5 fails to address this issue properly and creates a copy of each repeated image rather than simply linking to a single version.
charleski is offline   Reply With Quote
Old 07-27-2010, 07:38 AM   #3
Adjust
Addict
Adjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel is
 
Adjust's Avatar
 
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
Nuts... I was hoping CS5 (which is in trasit) would have this problem fixed.
I was hoping someone would have made a script or something which would at least get it to a point of Validating (epubcheck+kindleGen).

Yeah, I've been using ^.*-jpeg-.*$ to clean up the lines... But so time consuming...

Last edited by Adjust; 07-28-2010 at 09:10 PM.
Adjust is offline   Reply With Quote
Old 07-27-2010, 08:04 AM   #4
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,150
Karma: 4792399
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
I guess it could be added to the "ePUB fix" plugins in Calibre.
Jellby is offline   Reply With Quote
Old 07-27-2010, 06:00 PM   #5
Adjust
Addict
Adjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel is
 
Adjust's Avatar
 
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
Quote:
Originally Posted by Jellby View Post
I guess it could be added to the "ePUB fix" plugins in Calibre.
Well here's hoping, I can't be the only one out there frustrated by this...
It's a real PITA and takes forever to strip these lines out if you have a image heavy conversion
Adjust is offline   Reply With Quote
Old 09-01-2010, 04:57 PM   #6
saytionne
Junior Member
saytionne began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Aug 2010
Device: iPhone
does the ePub fix actually do anything?
saytionne is offline   Reply With Quote
Old 09-01-2010, 05:54 PM   #7
Adjust
Addict
Adjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel is
 
Adjust's Avatar
 
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
I don't think it's being added...

It turns out InDesign CS5 fixes most of these issues. Not sure about CS4 though
Adjust is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Old Thread] calibre not creating content.opf or toc.ncx files during conversion foxxywith2xs Calibre 7 12-16-2012 07:49 PM
[Old Thread] What's an OPF file? Anarel Calibre 6 08-14-2012 08:23 AM
Default book language to be saved in content.opf? moriakaice Calibre 7 05-21-2011 05:02 PM
HTML to Mobi conversions (DocBook XSL, and content.opf?) AndrewLB Calibre 3 09-04-2010 09:02 PM
Newbie to editing opf file pda_junkie Workshop 2 05-08-2010 09:58 AM


All times are GMT -4. The time now is 12:19 PM.


MobileRead.com is a privately owned, operated and funded community.