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

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 08-18-2011, 11:52 PM   #1
cerramadre
Member
cerramadre began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Aug 2011
Device: none
Alreader not showing images after editing ePUB with Sigil

Has anyone had this problem?

Whenever I edit an ePUB with any version of Sigil, AlReader2 does not recognize the images in the file. Doesn't matter what type - jpg or png - are not recognized at all.


I suspect this is an issue with Sigil since the images will show in AlReader2 when the original unedited ePUB is loaded.

Any input would be appreciated.

Thanks.
cerramadre is offline   Reply With Quote
Old 08-19-2011, 07:17 AM   #2
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,969
Karma: 3427611
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
I haven't used AlReader2, so I can't speculate how that program handles things.

However, I haven't had the problem you mention. Then again, you do not mention your actions.

So, in order for us to help you, please provide more information.
1. What do you change exactly in the ePUB
2. What are the references to the images in CodeView
3. What does the validation say
Toxaris is offline   Reply With Quote
 
Enthusiast
Old 08-19-2011, 11:41 AM   #3
theducks
Grand Sorcerer
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: 14,700
Karma: 5643643
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by cerramadre View Post
Has anyone had this problem?

Whenever I edit an ePUB with any version of Sigil, AlReader2 does not recognize the images in the file. Doesn't matter what type - jpg or png - are not recognized at all.


I suspect this is an issue with Sigil since the images will show in AlReader2 when the original unedited ePUB is loaded.

Any input would be appreciated.

Thanks.
Did your book pass the Flightcrew check?
Many readers are not fully compliant and require work arounds.
Your image may be too large (file size) for your device.
Your image may use a variant encoding that your device can't handle. (Just because a image is a JPG does not make it work)
theducks is online now   Reply With Quote
Old 08-19-2011, 01:17 PM   #4
cerramadre
Member
cerramadre began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Aug 2011
Device: none
Sigil affecting images in AlReader2

Quote:
Originally Posted by Toxaris View Post
I haven't used AlReader2, so I can't speculate how that program handles things.

However, I haven't had the problem you mention. Then again, you do not mention your actions.

So, in order for us to help you, please provide more information.
1. What do you change exactly in the ePUB
2. What are the references to the images in CodeView
3. What does the validation say
Answers
1. Simply inserted <br />s in chapter header

eg. <h1 class="chapter" id="heading_id_2"><a id="page132"></a>CHAPTER TEN</h1>

becomes

<h1 class="chapter" id="heading_id_2"><a id="page132"></a><br />
<br />
CHAPTER TEN</h1>

Even if throughout the entire file I insert only one <br /> enclosed in either a paragraph, division or header container, the images do not show in AlReader2.


2. Cover image
<body style="margin-top: 0px; margin-left: 0px; margin-right: 0px; margin-bottom: 0px; text-align: center; background-color: rgb(0, 0, 0);">
<div class="cover"><img alt="cover" height="100%" src="../Images/Outside_Front_Cover.jpg" /></div>
</body>
</html>

logo

<p class="colophon"><img alt="logo" height="75" src="../Images/logo.jpg" width="111" /></p>

3. Validation says embedded fonts and one alternative image not used - if present. Doesn't matter since when remove fonts and this image, images still not showing in AlReader2.

Seems that any changes will mess up the images.

Note: The file was unDRM'd and the images showed up fine in AlReader2 after. It is only when I put it through Sigil that the problem happens.

Thanks.

Last edited by cerramadre; 08-19-2011 at 01:20 PM.
cerramadre is offline   Reply With Quote
Old 08-19-2011, 01:23 PM   #5
cerramadre
Member
cerramadre began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Aug 2011
Device: none
Quote:
Originally Posted by theducks View Post
Did your book pass the Flightcrew check?
Many readers are not fully compliant and require work arounds.
Your image may be too large (file size) for your device.
Your image may use a variant encoding that your device can't handle. (Just because a image is a JPG does not make it work)
Thanks for the suggestion.

I have used the exact same jpg images in an html file as a trial and AlReader2 will recognize them just fine so I don't think it is size or variant encoding unfortunately.
cerramadre is offline   Reply With Quote
Old 08-19-2011, 01:39 PM   #6
theducks
Grand Sorcerer
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: 14,700
Karma: 5643643
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Good to know that your reader likes the image.

Re doubling of <br />
I have never seen that, BUT, I always have visible text on both sides of the Break

Inserting any <br />, anywhere, causes images to fail?
theducks is online now   Reply With Quote
Old 08-19-2011, 02:42 PM   #7
cerramadre
Member
cerramadre began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Aug 2011
Device: none
Quote:
Originally Posted by theducks View Post
Good to know that your reader likes the image.

Re doubling of <br />
I have never seen that, BUT, I always have visible text on both sides of the Break

Inserting any <br />, anywhere, causes images to fail?
Yeah, multiple <br />s are especially used a lot on eg titlepages in header or paragraph containers either at the beginning or end of a block of text.

I know it's really weird. If I simply open a decrypted ePUB that shows all the images in AlReader2 and simply insert one <br /> anywhere, then none of the images will show in that altered file with AlReader2.

But I don't think it's the code itself that's the problem - I was simply using <br /> as an example modification. Any modification to the file seems to cause the problem.

Another example is if I simply delete/replace one word in the file eg on the title page. Then the same thing happens!




More trials.

If I edit the ePUB by means other than Sigil eg. with tweak_epub, or by extracting the zip (ePUB) using 7-zip, modifying the html files in an editor and then dragging files back into the zip (ePUB) then the problem does not occur and the images show.

Consequently, I'm tending to think that the problem lies with Sigil and not with AlReader2.


Thanks again.

Last edited by cerramadre; 08-19-2011 at 02:56 PM.
cerramadre is offline   Reply With Quote
Old 08-19-2011, 02:56 PM   #8
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,969
Karma: 3427611
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Try opening the file in ADE. I suspect it will be visible there. If it is, it will be the AlReader2 program.
Toxaris is offline   Reply With Quote
Old 08-19-2011, 03:30 PM   #9
theducks
Grand Sorcerer
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: 14,700
Karma: 5643643
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by cerramadre View Post
Answers
1. Simply inserted <br />s in chapter header

eg. <h1 class="chapter" id="heading_id_2"><a id="page132"></a>CHAPTER TEN</h1>

becomes

<h1 class="chapter" id="heading_id_2"><a id="page132"></a><br />
<br />
CHAPTER TEN</h1>

Even if throughout the entire file I insert only one <br /> enclosed in either a paragraph, division or header container, the images do not show in AlReader2.


2. Cover image
<body style="margin-top: 0px; margin-left: 0px; margin-right: 0px; margin-bottom: 0px; text-align: center; background-color: rgb(0, 0, 0);">
<div class="cover"><img alt="cover" height="100%" src="../Images/Outside_Front_Cover.jpg" /></div>
</body>
</html>

logo

<p class="colophon"><img alt="logo" height="75" src="../Images/logo.jpg" width="111" /></p>

3. Validation says embedded fonts and one alternative image not used - if present. Doesn't matter since when remove fonts and this image, images still not showing in AlReader2.

Seems that any changes will mess up the images.

Note: The file was unDRM'd and the images showed up fine in AlReader2 after. It is only when I put it through Sigil that the problem happens.

Thanks.
I poorly worded my answer.
Yes I have seen double BR used before. But never with a non printing line on the beginning side of the cluster. I use Padding to manage space in those cases. I reserve BR to split printed lines <h3 class="chapno">Chapter 0 <br /><span class="chsubtitle">Nothing come from Nothing</span></h3>

Now the Sigil TOC has both pieces and the chapter heading looks
theducks is online now   Reply With Quote
Old 08-19-2011, 04:05 PM   #10
cerramadre
Member
cerramadre began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Aug 2011
Device: none
Quote:
Originally Posted by Toxaris View Post
Try opening the file in ADE. I suspect it will be visible there. If it is, it will be the AlReader2 program.
Yeah, must be some incompatibility between AlReader2 and Sigil.

The file opens and shows images in ADE, Sony, Nook, FBReader, Firefox etc. Just not AlReader2.

Also if I change the file extension from .epub to .zip, then AlReader2 will show the images because it is reading just html files and not an epub file. Must be in part some issue with how AlReader2 reads/renders? the epub extension itself and how Sigil repacks the epub after editing.

If I edit the ePUB with eg tweak_epub the images will show in AlReader2, also if I extract with eg 7-zip, edit the htmls then drag back into 7-zip - not repack starting from mimetype.zip - then AlReader2 will show the images still. Sigil is definitely much easier to use than these methods.

Thanks for helping me work through this everyone.

Last edited by cerramadre; 08-19-2011 at 04:09 PM.
cerramadre is offline   Reply With Quote
Old 08-19-2011, 04:12 PM   #11
cerramadre
Member
cerramadre began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Aug 2011
Device: none
Quote:
Originally Posted by theducks View Post
I poorly worded my answer.
Yes I have seen double BR used before. But never with a non printing line on the beginning side of the cluster. I use Padding to manage space in those cases. I reserve BR to split printed lines <h3 class="chapno">Chapter 0 <br /><span class="chsubtitle">Nothing come from Nothing</span></h3>

Now the Sigil TOC has both pieces and the chapter heading looks
I basically wanted to modify the layout of the epub files prior to conversion to lit and mobi with Calibre and didn't want to do too much work on them.

I get what you're saying.

Thanks again.
cerramadre is offline   Reply With Quote
Old 08-19-2011, 04:27 PM   #12
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: 37,279
Karma: 18149666
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Forget the <br />. It's not needed.

Code:
<h1 class="chapter" id="heading_id_2"><a id="page132"></a>CHAPTER TEN</h1>
Just go to the CSS and add to the top margin for .chapter. Maybe AllReader2 doesn't like <br />.
JSWolf is offline   Reply With Quote
Old 08-19-2011, 04:39 PM   #13
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,450
Karma: 963229
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
My guess is AllReader2 is unable to deal with the attribute order for items in the opf. When repackaging Sigil writes the attributes in alphabetical order. This is correct per the spec but not all readers like this. This is why covers don't work on the Nook.
user_none is offline   Reply With Quote
Old 08-19-2011, 10:39 PM   #14
cerramadre
Member
cerramadre began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Aug 2011
Device: none
Quote:
Originally Posted by JSWolf View Post
Forget the <br />. It's not needed.

Code:
<h1 class="chapter" id="heading_id_2"><a id="page132"></a>CHAPTER TEN</h1>
Just go to the CSS and add to the top margin for .chapter. Maybe AllReader2 doesn't like <br />.
Actually AlReader2 like ICEReader Pro ignores most of the CSS but one thing it does recognize is the <br />. You can interactively adjust the spacing between sections, lines etc if <br /> or <br>s are present since the reader will detect how many <br />s there are and combine this with a user selected % empty line preference to determine the height of empty spacing. Two <br />s within a container basically corresponds to a single empty line. That's why I wanted to use the <br />. Basically, em, pt, px, % spacing is ignored.

Thanks for the input.
cerramadre is offline   Reply With Quote
Old 08-19-2011, 10:42 PM   #15
cerramadre
Member
cerramadre began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Aug 2011
Device: none
Quote:
Originally Posted by user_none View Post
My guess is AllReader2 is unable to deal with the attribute order for items in the opf. When repackaging Sigil writes the attributes in alphabetical order. This is correct per the spec but not all readers like this. This is why covers don't work on the Nook.
Thanks for this suggestion. I will do some investigating on it. I love the Sigil interface and would love to continue using it.
cerramadre 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
Gif images not showing in epub Amalthia Conversion 9 06-07-2012 03:43 PM
Editing an epub with Sigil Artha Calibre 7 07-01-2011 01:57 PM
Editing Feedbooks with Sigil castel15 Sigil 5 03-25-2011 09:00 PM
Typographic quotes broken after editing in Sigil MacEachaidh Sigil 7 08-27-2010 09:33 AM
Sigil editing Issues -- must be addressed arvinder Sigil 4 08-06-2009 07:36 AM


All times are GMT -4. The time now is 10:49 AM.


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