| 
 | |||||||
|  | 
|  | Thread Tools | Search this Thread | 
|  11-16-2010, 03:13 AM | #1 | 
| Enthusiast  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 | 
|   |   | 
|  11-16-2010, 04:40 AM | #2 | 
| Created Sigil, FlightCrew            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.
		 | 
|   |   | 
|  11-16-2010, 05:11 PM | #3 | 
| Enthusiast  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
			 | 
|   |   | 
|  11-17-2010, 05:34 AM | #4 | |
| Created Sigil, FlightCrew            Posts: 1,982 Karma: 350515 Join Date: Feb 2008 Device: Kobo Clara HD | Quote: 
 | |
|   |   | 
|  11-18-2010, 01:43 AM | #5 | 
| Enthusiast  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 | 
|   |   | 
|  11-20-2010, 04:48 PM | #6 | 
| Bookmaker & Cat Slave            Posts: 11,503 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 | 
|   |   | 
|  11-21-2010, 07:31 AM | #7 | 
| Enthusiast  Posts: 25 Karma: 10 Join Date: Nov 2010 Device: as many as possible | |
|   |   | 
|  11-21-2010, 08:26 AM | #8 | 
| Enthusiast  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 | 
|   |   | 
|  11-21-2010, 04:06 PM | #9 | |
| Bookmaker & Cat Slave            Posts: 11,503 Karma: 158448243 Join Date: Apr 2010 Location: Phoenix, AZ Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2 | Quote: 
 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" /> 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 | |
|   |   | 
|  11-21-2010, 06:28 PM | #10 | |
| Enthusiast  Posts: 25 Karma: 10 Join Date: Nov 2010 Device: as many as possible | Quote: 
 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. | |
|   |   | 
|  11-21-2010, 07:00 PM | #11 | |
| Well trained by Cats            Posts: 31,241 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | Quote: 
 Code: <img alt="go diagram" src="./ch2/image003.gif" /> My guess is Sigil assumed everything was Base at the epub level and has no concept of folders inside "Images" | |
|   |   | 
|  11-21-2010, 07:02 PM | #12 | |
| Bookmaker & Cat Slave            Posts: 11,503 Karma: 158448243 Join Date: Apr 2010 Location: Phoenix, AZ Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2 | Quote: 
 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. | |
|   |   | 
|  11-22-2010, 03:05 PM | #13 | |
| Enthusiast  Posts: 25 Karma: 10 Join Date: Nov 2010 Device: as many as possible | Quote: 
 thanks | |
|   |   | 
|  11-22-2010, 03:23 PM | #14 | 
| Enthusiast  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 | 
|   |   | 
|  11-22-2010, 03:32 PM | #15 | 
| Resident Curmudgeon            Posts: 80,677 Karma: 150249619 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.
		 | 
|   |   | 
|  | 
| Thread Tools | Search this Thread | 
| 
 | 
|  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 |