Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 12-16-2021, 12:05 PM   #1
jtweeks
Junior Member
jtweeks began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2021
Location: South Carolina
Device: ipad
Question Images don't show after the 49th image

I'm a new user to this forum and I have recently encountered an issue when creating an epub file with Sigil 1.8.0 on a Windows 11 desktop.
I have been using Sigil for several years, mainly to edit and correct existing epub files.
Currently, I am creating a new epub file that will contain about 60 different images. The first 49 images display in the document without issue. However, subsequent images, even re-displays of previously displayed images, do not display.
I am using the following code to display images - <p class="aligncenter"> <img src="../image.jpg"/> </p>
With the following in my main CSS file - .aligncenter { text-align: center;}
Any help would be greatly appreciated.
jtweeks is offline   Reply With Quote
Old 12-16-2021, 12:27 PM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,636
Karma: 5433388
Join Date: Nov 2009
Device: many
Probably incorrect links? Hard to tell without more info. Does it only not display properly in Sigil? Does it pass epubCheck? Can you see the images in another reader?

I would run the epubcheck plugin and report its errors here. That should tell us.
KevinH is offline   Reply With Quote
Old 12-16-2021, 01:10 PM   #3
jtweeks
Junior Member
jtweeks began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2021
Location: South Carolina
Device: ipad
Thank you KevinH for your quick reply. I did download the epub file to my phone which has Lithium installed. The epub showed fine except the same images did not show. I have also run the epubCheck as you suggested which got the following results which I do not understand. Can you help to interpret?

Status: failed

Traceback (most recent call last):
File "C:\Program Files\Sigil\plugin_launchers\python\launcher.py", line 142, in launch
self.exitcode = target_script.run(container)
File "C:\Users\jtwee\AppData\Local\sigil-ebook\sigil\plugins\EpubCheck\plugin.py", line 250, in run
arch = get_arch(java_path)
File "C:\Users\jtwee\AppData\Local\sigil-ebook\sigil\plugins\EpubCheck\plugin.py", line 36, in get_arch
_, stderr = jar_wrapper(*args)
File "C:\Users\jtwee\AppData\Local\sigil-ebook\sigil\plugins\EpubCheck\plugin.py", line 56, in jar_wrapper
process = Popen(args, stdout=PIPE, stderr=PIPE, shell=False)
File "subprocess.py", line 854, in __init__
File "subprocess.py", line 1307, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
Error: [WinError 2] The system cannot find the file specified
jtweeks is offline   Reply With Quote
Old 12-16-2021, 01:45 PM   #4
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,307
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by jtweeks View Post
Thank you KevinH for your quick reply. I did download the epub file to my phone which has Lithium installed. The epub showed fine except the same images did not show. I have also run the epubCheck as you suggested which got the following results which I do not understand. Can you help to interpret?

Status: failed
Spoiler:

Traceback (most recent call last):
File "C:\Program Files\Sigil\plugin_launchers\python\launcher.py", line 142, in launch
self.exitcode = target_script.run(container)
File "C:\Users\jtwee\AppData\Local\sigil-ebook\sigil\plugins\EpubCheck\plugin.py", line 250, in run
arch = get_arch(java_path)
File "C:\Users\jtwee\AppData\Local\sigil-ebook\sigil\plugins\EpubCheck\plugin.py", line 36, in get_arch
_, stderr = jar_wrapper(*args)
File "C:\Users\jtwee\AppData\Local\sigil-ebook\sigil\plugins\EpubCheck\plugin.py", line 56, in jar_wrapper
process = Popen(args, stdout=PIPE, stderr=PIPE, shell=False)
File "subprocess.py", line 854, in __init__
File "subprocess.py", line 1307, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
Error: [WinError 2] The system cannot find the file specified

Do you have Java installed?

If you open a command prompt and enter java -version, what is the response?

Here's what I see on Windows 11:

Code:
java -version
java version "1.8.0_311"
Java(TM) SE Runtime Environment (build 1.8.0_311-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.311-b11, mixed mode)
If that works, you might want to check the troubleshooting information in the epubcheck plugin for Sigil thread.

Last edited by DNSB; 12-16-2021 at 01:55 PM.
DNSB is offline   Reply With Quote
Old 12-16-2021, 02:24 PM   #5
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,636
Karma: 5433388
Join Date: Nov 2009
Device: many
Yes. The plugin needs you to install java to get it to work. Once working, it will report any actual errors in the epub.

Also another common problem is using mixed case. If an img tag the src attribute is case sensitive. That means ../Images is not the same as ../images

This holds for filenames as well.

Try deleting the one of the img tag links that does not work. Then use Sigil's Insert Media toolbar icon, to select and recreate the proper image link.
KevinH is offline   Reply With Quote
Old 12-16-2021, 02:39 PM   #6
jtweeks
Junior Member
jtweeks began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2021
Location: South Carolina
Device: ipad
Yes java is installed:

C:\Users\jtwee>java -version
java version "1.8.0_311"
Java(TM) SE Runtime Environment (build 1.8.0_311-b11)
Java HotSpot(TM) Client VM (build 25.311-b11, mixed mode)

I don't think it is a mixed case issue, as I can view the images earlier in the text, just not later in the document. Like you suggest I can copy the code from an area that shows the image to later in the document, and the image does not show.
jtweeks is offline   Reply With Quote
Old 12-16-2021, 02:44 PM   #7
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,307
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Looking at your output, that appears to be from a 32 bit version of Java. You may want to install the 64 bit version of Java.

You may also want to check message #412 in the epubcheck plugin thread about forcing the path to the java executable. The disadvantage to this is that you will need to update the path any time that Java is updated.

For the 64 bit version of Java 1.8.0_311, the path would be something like:

"java_path": "C:/Program Files/Java/jre1.8.0_311/bin/java.exe",

Last edited by DNSB; 12-16-2021 at 02:49 PM.
DNSB is offline   Reply With Quote
Old 12-16-2021, 02:46 PM   #8
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,636
Karma: 5433388
Join Date: Nov 2009
Device: many
That can easily happen if the later xhtml files are not in the same directory as the earlier xhtml files meaning the url must be different to find the image file.

Go into Sigil Preferences and enable showing full book paths in BookBrowser and then post a screen cap of the resulting BookBrowser window so we can see the actual paths used for the xhtml file and the image file for one instance it does not work.

Using Sigil insert media tool can be helpful as it will always properly create the proper url for wherever you put the files inside the epub.

Last edited by KevinH; 12-16-2021 at 02:53 PM.
KevinH is offline   Reply With Quote
Old 12-16-2021, 02:50 PM   #9
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,636
Karma: 5433388
Join Date: Nov 2009
Device: many
And DNSB's advice to set the java path for epubcheck is a very good one. Please try that as epubcheck will check for many many common epub issues.
KevinH is offline   Reply With Quote
Old 12-16-2021, 02:51 PM   #10
jtweeks
Junior Member
jtweeks began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2021
Location: South Carolina
Device: ipad
Never mind - I found my issue.. It was all user error!!!
jtweeks is offline   Reply With Quote
Old 12-16-2021, 02:53 PM   #11
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,636
Karma: 5433388
Join Date: Nov 2009
Device: many
Care to share, in case others run into something similar?
KevinH is offline   Reply With Quote
Reply

Tags
image


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Show info about the image in popup window of image viewer when reading an ebook codychan Calibre 2 06-04-2021 05:04 PM
html to epub images don't show moviejunkie Conversion 1 05-23-2012 08:22 PM
Touch How's The KT doing south of the 49th remcdonald Kobo Reader 7 06-24-2011 10:58 AM
images don't show on Bebook One bobcdy ePub 2 11-24-2010 11:37 PM
Images don't show up after build angbrown Kindle Formats 3 09-25-2009 09:06 AM


All times are GMT -4. The time now is 04:26 PM.


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