Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 03-24-2016, 11:58 AM   #1
postkast2929
Junior Member
postkast2929 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2016
Device: none
Images now showing in ePub after editing in Sigil or Calibre

I have encountered a problem of images not showing (X appears instead of an image) in ePub after resaving the file in Sigil or Calibre. If you view the unedited ePub that was exported from the latest version of InDesign, then all images are there.

Only several ePub readers appear not to show images (AlReader, Bazaar); most commonly used like ADE, iBooks show images after edits in Sigil.

It wouldn’t bother me if all ePubs (mine and from other publishers) behaved the same way on those viewers, but I found out that only my ePubs behave this way.

If I take an ePub produced by another publisher, images are shown fine, and when I resave their ePub - images are gone!

I think that all ePubs need further editing in editors after exporting and Sigil and Calibre are most widely used - so I don't understand how other publishers manage to edit ePub and retain all images?!

All ideas are appreciated!

postkast2929 is offline   Reply With Quote
Old 03-24-2016, 12:08 PM   #2
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
How could you possibly think that a reading subforum is appropriate for ePub editing? Moved to a forum where someone might be able to help.
DaleDe is offline   Reply With Quote
Advert
Old 03-24-2016, 12:22 PM   #3
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: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by postkast2929 View Post
I have encountered a problem of images not showing (X appears instead of an image) in ePub after resaving the file in Sigil or Calibre. If you view the unedited ePub that was exported from the latest version of InDesign, then all images are there.

Only several ePub readers appear not to show images (AlReader, Bazaar); most commonly used like ADE, iBooks show images after edits in Sigil.

It wouldn’t bother me if all ePubs (mine and from other publishers) behaved the same way on those viewers, but I found out that only my ePubs behave this way.

If I take an ePub produced by another publisher, images are shown fine, and when I resave their ePub - images are gone!

I think that all ePubs need further editing in editors after exporting and Sigil and Calibre are most widely used - so I don't understand how other publishers manage to edit ePub and retain all images?!

All ideas are appreciated!

I cannot say how those readers will actually show the ePUB or the images, but images in an ePUB are not exactly rocketscience and both the Sigil editor and Calibre editor have tools to help you more.

Now, since I am the most experienced in the Sigil editor, I will use that as example. What is important to know, is that Sigil enforces a certain internal folder structure. When you open an ePUB in Sigil, the files are moved to that folder structure. For images that folder will be '/Images'. Notice the capital I. In that folder the images are stored and organized. Images must be added to the ePUB! They are stored inside the ePUB.

A link to an image is structured like this:
Code:
<img src="../Image/example.jpg" alt="picture of an example" />
There is also a button that will insert an image you select at the location of the cursor with the correct coding.

This way images will/should show on all readers and reading programs.
Toxaris is offline   Reply With Quote
Old 03-24-2016, 12:39 PM   #4
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
I agree with Toxaris that the most likely explanation is that your images are in the wrong folder in the eBook structure.
HarryT is offline   Reply With Quote
Old 03-24-2016, 01:20 PM   #5
postkast2929
Junior Member
postkast2929 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2016
Device: none
Quote:
Originally Posted by Toxaris View Post
I cannot say how those readers will actually show the ePUB or the images, but images in an ePUB are not exactly rocketscience and both the Sigil editor and Calibre editor have tools to help you more.

Now, since I am the most experienced in the Sigil editor, I will use that as example. What is important to know, is that Sigil enforces a certain internal folder structure. When you open an ePUB in Sigil, the files are moved to that folder structure. For images that folder will be '/Images'. Notice the capital I. In that folder the images are stored and organized. Images must be added to the ePUB! They are stored inside the ePUB.

A link to an image is structured like this:
Code:
<img src="../Image/example.jpg" alt="picture of an example" />
There is also a button that will insert an image you select at the location of the cursor with the correct coding.

This way images will/should show on all readers and reading programs.


Thank you! Images are all in the correct places with correct paths.
It turned out that because Sigil modifies the structure, the Windows version of AlReader can't find them.

Last edited by postkast2929; 03-24-2016 at 01:22 PM. Reason: did't address correctly
postkast2929 is offline   Reply With Quote
Advert
Old 03-24-2016, 01:21 PM   #6
postkast2929
Junior Member
postkast2929 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2016
Device: none
Quote:
Originally Posted by HarryT View Post
I agree with Toxaris that the most likely explanation is that your images are in the wrong folder in the eBook structure.
Thank you! Images are all in the correct places with correct paths.
It turned out that because Sigil modifies the structure, the Windows version of AlReader can't find them.
postkast2929 is offline   Reply With Quote
Old 03-24-2016, 05:16 PM   #7
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: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by postkast2929 View Post
Thank you! Images are all in the correct places with correct paths.
It turned out that because Sigil modifies the structure, the Windows version of AlReader can't find them.
Then I recommend complaining at the creators of AlReader, since their product if faulty! It does not matter where the images are located, as long as the links are correct.
Toxaris is offline   Reply With Quote
Old 03-24-2016, 05:38 PM   #8
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,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
The low usage of AlReader & Bazaar makes them rather irrelevant.
JSWolf is offline   Reply With Quote
Old 03-24-2016, 06:53 PM   #9
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by postkast2929 View Post
Thank you! Images are all in the correct places with correct paths.
It turned out that because Sigil modifies the structure, the Windows version of AlReader can't find them.
You should file a bug with AlReader. There is only one file in an ePub that has a fixed location. (From our wiki on ePub) The container.xml is a required file with a required name. It must be in the META-INF folder. All other folders are optional and can be any name the user chooses. The container.xml file shows the filename and location of the OPF file.

So long as the rules about palthnames are met all files will be found and used properly. The root of the ePub file is / in a pathname. Otherwise you can use relative paths to find other files.

Dale
DaleDe is offline   Reply With Quote
Old 03-25-2016, 05:27 AM   #10
fbrzvnrnd
Fanatic
fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.
 
Posts: 554
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
Quote:
Originally Posted by postkast2929 View Post
I think that all ePubs need further editing in editors after exporting and Sigil and Calibre are most widely used - so I don't understand how other publishers manage to edit ePub and retain all images?!

All ideas are appreciated!

is the ePub validated after the Sigil open/save?
fbrzvnrnd is offline   Reply With Quote
Old 03-25-2016, 05:50 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,804
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Sigil and Calibre are both forgiving of some minor errors

RMSDK is mostly the opposite. Any CSS error and the whole CSS can get tossed

Validate your CSS as well
theducks is offline   Reply With Quote
Old 03-26-2016, 01:28 AM   #12
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by theducks View Post
RMSDK is mostly the opposite. Any CSS error and the whole CSS can get tossed
Forget errors, ADE/RMSDK will toss the whole CSS file just for including things that rely on a complete implementation of the CSS parsing specification even if they're syntactically correct and just beyond ADE's comprehension....
dgatwood is offline   Reply With Quote
Old 03-26-2016, 05:25 AM   #13
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,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by dgatwood View Post
Forget errors, ADE/RMSDK will toss the whole CSS file just for including things that rely on a complete implementation of the CSS parsing specification even if they're syntactically correct and just beyond ADE's comprehension....
I kind of like that ADE tosses the CSS because of an error. That way you know you do have an error and can then go and track it down to fix it.
JSWolf is offline   Reply With Quote
Old 03-26-2016, 10:48 AM   #14
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,095
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
Fortunately, that is not the standard. A standards compliant renderer would gracefully degrade and simply ignore the offending css...not the whole flipping file!

It is easy enough to check your css file without using the "throw the baby out with the bathwater" technique.
Turtle91 is offline   Reply With Quote
Old 03-26-2016, 07:09 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,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Turtle91 View Post
Fortunately, that is not the standard. A standards compliant renderer would gracefully degrade and simply ignore the offending css...not the whole flipping file!

It is easy enough to check your css file without using the "throw the baby out with the bathwater" technique.
I will say this once more. ADE is THE STANDARD for rendering ePub.

Now, if you have an error in your CSS, ignoring the entire CSS is a lot easier to know you have an error. I know right away and can then go and fix it.
JSWolf is offline   Reply With Quote
Reply

Tags
alreader, calibre, epub, image, sigil


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Images not showing in ePub books jstabe ePub 4 01-01-2014 04:17 PM
Unable to open epub book after editing with Sigil danshand84 Sigil 8 11-03-2013 06:40 PM
Gif images not showing in epub Amalthia Conversion 9 06-07-2012 03:43 PM
Alreader not showing images after editing ePUB with Sigil cerramadre Sigil 27 09-02-2011 10:24 PM
Editing an epub with Sigil Artha Calibre 7 07-01-2011 01:57 PM


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


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