Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 11-16-2010, 03:13 AM   #1
Ray Tayek
Enthusiast
Ray Tayek began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Nov 2010
Device: as many as possible
Issue 501: images with same name in different directories collide in final epub file

this http://code.google.com/p/sigil/issues/detail?id=501 says it's fixed, but i seem to have the problem.

i have about 500 images in 50 or so chapter folders. sigil does ok on the first two chapters that have images and then shows missing images for the remaining chapters.

the html files are from word 2007, so things are a bit messy.

my html for the images looks like:

img src="chapter1_files/image001.gif"

thanks
Ray Tayek is offline   Reply With Quote
Old 11-16-2010, 04:40 AM   #2
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Attach the HTML files as a comment to that issue, with an explanation of where the problem occurs.
Valloric is offline   Reply With Quote
Advert
Old 11-16-2010, 05:11 PM   #3
Ray Tayek
Enthusiast
Ray Tayek began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Nov 2010
Device: as many as possible
Issue 501: images with same name in different directories collide in final epub file

Quote:
Originally Posted by Valloric View Post
Attach the HTML files as a comment to that issue, with an explanation of where the problem occurs.
the html files are about 4mb, with images it's 16mb.

i will do some experiments or post the stuff somewhere.

thanks
Ray Tayek is offline   Reply With Quote
Old 11-17-2010, 05:34 AM   #4
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by Ray Tayek View Post
the html files are about 4mb, with images it's 16mb.

i will do some experiments or post the stuff somewhere.

thanks
You should try to minimise the test case. Only a subset of your file triggers the problem. See the ReportingIssues wiki page.
Valloric is offline   Reply With Quote
Old 11-18-2010, 01:43 AM   #5
Ray Tayek
Enthusiast
Ray Tayek began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Nov 2010
Device: as many as possible
i updated issue 501. i uploaded 3 files. images from the first two are visible in the sigil view. images from the third file are not.

thanks
Ray Tayek is offline   Reply With Quote
Advert
Old 11-20-2010, 04:48 PM   #6
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Ray: You didn't attach the images.

Hitch
Hitch is offline   Reply With Quote
Old 11-21-2010, 07:31 AM   #7
Ray Tayek
Enthusiast
Ray Tayek began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Nov 2010
Device: as many as possible
Quote:
Originally Posted by Hitch View Post
Ray: You didn't attach the images.

Hitch
no, there are 500 of them. an they have duplicate names.

i will need to make a smaller test case if i can't get a good epub file.

thanks
Ray Tayek is offline   Reply With Quote
Old 11-21-2010, 08:26 AM   #8
Ray Tayek
Enthusiast
Ray Tayek began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Nov 2010
Device: as many as possible
i made a small test case that shows the problem. the files in the attched zip are listed below.

the epub was made by sigil 0.3.1 4.7.0.

i added the three xhtml files and saved.

the opf, mbpm and prc files are not relevant.

thanks


book1/book1.epub
book1/book1.mbp (ignore)
book1/book1.opf (ignore)
book1/book1.prc (ignore)
book1/html/
book1/html/ch1/
book1/html/ch1/image001.gif
book1/html/ch1/image002.gif
book1/html/ch1/image003.gif
book1/html/ch2/
book1/html/ch2/image001.gif
book1/html/ch2/image002.gif
book1/html/ch2/image003.gif
book1/html/ch3/
book1/html/ch3/image001.gif
book1/html/ch3/image002.gif
book1/html/ch3/image003.gif
book1/html/chapter1.xhtml
book1/html/chapter2.xhtml
book1/html/chapter3.xhtml
book1/mbp_toc.html
Attached Files
File Type: zip book1.zip (114.3 KB, 215 views)
Ray Tayek is offline   Reply With Quote
Old 11-21-2010, 04:06 PM   #9
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
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:
Originally Posted by Ray Tayek View Post
i made a small test case that shows the problem. the files in the attched zip are listed below.

the epub was made by sigil 0.3.1 4.7.0.

i added the three xhtml files and saved.

the opf, mbpm and prc files are not relevant.

thanks


book1/book1.epub
book1/book1.mbp (ignore)
book1/book1.opf (ignore)
book1/book1.prc (ignore)
book1/html/
book1/html/ch1/
book1/html/ch1/image001.gif
book1/html/ch1/image002.gif
book1/html/ch1/image003.gif
book1/html/ch2/
book1/html/ch2/image001.gif
book1/html/ch2/image002.gif
book1/html/ch2/image003.gif
book1/html/ch3/
book1/html/ch3/image001.gif
book1/html/ch3/image002.gif
book1/html/ch3/image003.gif
book1/html/chapter1.xhtml
book1/html/chapter2.xhtml
book1/html/chapter3.xhtml
book1/mbp_toc.html
Ray:

I've opened your book and looked at the xhtml, in Sigil. I must be a spazz, because I don't know what you're talking about. In your Ch. 2, you call the images thusly:

Code:
<img alt="go diagram" src="ch2/image003.gif" />
which won't work in any event, because there is no "folder" INSIDE of Sigil called "ch2/image003.gif." There's simply Images/imagename.extension.

I'm not sure I understand what you're doing. Are you uploading html file after html file, as, let's say, different chapters, and inside each chapter, you have images that you've named the same thing (i.e., image001, image002, image003)? If that's the case, Sigil will, normally, rename them, but it won't rename them, to the best of my knowledge, with a chapter name prefix like yours. (n.b. - it might...Valloric will know better than I, obviously, but when I've uploaded an image with the same name, it adds 001, 002, 003, appended, not prepended.)

And the example, I think, is not explaining your issue--at least, it doesn't to me. What I see, in this, is simply that in Chapters 2 and 3, the image source pathname is wrong. I'd need to see the original html chapters that were uploaded, if the issue is that somehow, the IMAGES that were called in those chapters weren't uploaded? As it is now, all the images that are properly called with the correct path show...and the others don't, because the html is wrong.

Can you clarify, please, Ray?

Thx,

Hitch
Hitch is offline   Reply With Quote
Old 11-21-2010, 06:28 PM   #10
Ray Tayek
Enthusiast
Ray Tayek began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Nov 2010
Device: as many as possible
Quote:
Originally Posted by Hitch View Post
Ray:

... In your Ch. 2, you call the images thusly:

Code:
<img alt="go diagram" src="ch2/image003.gif" />
which won't work in any event, because there is no "folder" INSIDE of Sigil called "ch2/image003.gif." There's simply Images/imagename.extension.

...source pathname is wrong. I'd need to see the original html chapters that were uploaded, ...
Can you clarify, please, Ray?

Thx,

Hitch
the html/ directory contains the original html and images. the images do have the same name and they are stored in a different folder for each chapter.

i added each xhtml file to sigil and made the epub.

i'm a little spaced out, so am doing this again as i post.

this may have been an operator error.

he does transfer the first folder of images and leaves the rest and the links are not satisfied.

i added 5 of my real files and got similar results.

so either it's broken or i am really confused.

thanks

i believe it was working for most of my 50 files, but perhaps i am mistaken.
Ray Tayek is offline   Reply With Quote
Old 11-21-2010, 07:00 PM   #11
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Ray Tayek View Post
the html/ directory contains the original html and images. the images do have the same name and they are stored in a different folder for each chapter.

i added each xhtml file to sigil and made the epub.

i'm a little spaced out, so am doing this again as i post.

this may have been an operator error.

he does transfer the first folder of images and leaves the rest and the links are not satisfied.

i added 5 of my real files and got similar results.

so either it's broken or i am really confused.

thanks

i believe it was working for most of my 50 files, but perhaps i am mistaken.
You might add a ./ in front of those paths.
Code:
<img alt="go diagram" src="./ch2/image003.gif" />
That might keep Sigil from flattening the referenced file path
My guess is Sigil assumed everything was Base at the epub level and has no concept of folders inside "Images"
theducks is offline   Reply With Quote
Old 11-21-2010, 07:02 PM   #12
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
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:
Originally Posted by Ray Tayek View Post
the html/ directory contains the original html and images. the images do have the same name and they are stored in a different folder for each chapter.

i added each xhtml file to sigil and made the epub.

i'm a little spaced out, so am doing this again as i post.

this may have been an operator error.

he does transfer the first folder of images and leaves the rest and the links are not satisfied.

i added 5 of my real files and got similar results.

so either it's broken or i am really confused.

thanks

i believe it was working for most of my 50 files, but perhaps i am mistaken.
RAY:

WHAT are the paths to the images? I think you're not paying attention to WHERE the image tags are referencing.

Edited to add: Ray, I think you're making an assumption that when you upload an html file that references, as an example, "/ch2/image001," that the PATH uploads WITH the image inside of Sigil. IME, that has never been the case; simply the image uploads, so if your paths are set as img src="Ch2/imageoo1," that won't WORK. I'm sure if I'm wrong, Valloric will jump in and clarify. I hope.

Do I infer from your posts here and on DTP that you are charging for this work? This is for a client?

Hitch

Last edited by Hitch; 11-21-2010 at 08:19 PM. Reason: Light out of darkness, one hopes.
Hitch is offline   Reply With Quote
Old 11-22-2010, 03:05 PM   #13
Ray Tayek
Enthusiast
Ray Tayek began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Nov 2010
Device: as many as possible
Quote:
Originally Posted by theducks View Post
You might add a ./ in front of those paths.
Code:
<img alt="go diagram" src="./ch2/image003.gif" />
That might keep Sigil from flattening the referenced file path
My guess is Sigil assumed everything was Base at the epub level and has no concept of folders inside "Images"
i added a ./ in front of them all. no joy

thanks
Ray Tayek is offline   Reply With Quote
Old 11-22-2010, 03:23 PM   #14
Ray Tayek
Enthusiast
Ray Tayek began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Nov 2010
Device: as many as possible
> WHAT are the paths to the images? I think you're not paying attention > to WHERE the image tags are referencing.

mobi has no problem with this. a few days ago i changed the mobi settings to *not* copy the html. he still has no problems (i.e. all the images in the prc work).

Edited to add: Ray, I think you're making an assumption that when you upload an html file that references, as an example, "/ch2/image001," ...

no, it all get copied. the html files and the images get renamed and moved. sometimes that html files are split (by calibre).

> Do I infer from your posts here and on DTP that you are charging for this > work? This is for a client?

this is for a friend. i am an *old* programmer.

seems like there are a lot of problems with things like this and tocs and ncx's. i have been annoyed enough that i am writing a tool to eat html and make an epub. should'nt be too hard, but i may not make it by the turkey, so i may have to struggle with the existing tools.

any inputs you (or others) might have about an html2epub would be greatly appreciated. the initial goal would be to eat my validated xhtml 1.1 and make an epub that sqeaked by epubcheck.

you can reach me at rtayek at ca dot rr dot com.

thanks

thanks
Ray Tayek is offline   Reply With Quote
Old 11-22-2010, 03:32 PM   #15
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,970
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
In your ePub, you've messed things up big time. You do not have the directories for the images for chapter 2 & chapter 3. So the XML code is looking for the images where they do not exist. In fact, they aren't even in the ePub.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Epub and cover images, question about file storage JGB Calibre 10 10-11-2010 11:48 PM
Maisy May - Christianity and reality collide nomesque Self-Promotions by Authors and Publishers 14 08-05-2010 04:31 AM
PRS600 Issue with flashing/inverted images azazel7601 Sony Reader 9 12-27-2009 01:57 PM
Issue with images on Reader acj412 Sony Reader 2 04-15-2009 08:43 AM
File Incompatibility Images Request Colt Sony Reader 7 09-05-2007 11:44 AM


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


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