Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 09-04-2023, 06:00 PM   #1
azimuth
Enthusiast
azimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with others
 
Posts: 33
Karma: 2538
Join Date: Aug 2023
Location: NW US
Device: none
Image gallery

Has anyone made an image gallery that works well in epub (that works well for the more popular eReaders)?

We tried refining a gallery for our epub needs, and our goal is to have dual side by side images in an epub with a pagebreak immediately after the two dual images.
Results link.
JS Fiddle

Tested on ADE, Pocketbook, Aldiko, Moon+, Kobo, (all on Android). ReadEra, and Eboox renders each image full size. Only Moon+ was a puzzle. No other platform (iOS, linux, etc) is tested.
The fallback for lesser eReaders is to: 1. either render a full page image, 2. or two images per page (one below the other). Some lower quality eReaders fail. I don't know how well it does on iOS eReaders or Linux eReaders.

I realize there are valid points as to why a gallery of this type may be of little use in an epub, but I see value to go a step beyond with epub creativity (i.e. CSS frameworks, color theme, etc) whenever possible.
azimuth is offline   Reply With Quote
Old 09-04-2023, 06:50 PM   #2
azimuth
Enthusiast
azimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with others
 
Posts: 33
Karma: 2538
Join Date: Aug 2023
Location: NW US
Device: none
Another type of image gallery I thought might be useful in an epub:
Codepen link
Though getting the code to work well in an epub is another challenge.
azimuth is offline   Reply With Quote
Advert
Old 09-09-2023, 01:07 PM   #3
azimuth
Enthusiast
azimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with others
 
Posts: 33
Karma: 2538
Join Date: Aug 2023
Location: NW US
Device: none
Quote:
Originally Posted by azimuth View Post
Another type of image gallery I thought might be useful in an epub:
Codepen link
Though getting the code to work well in an epub is another challenge.
Our goal was to add something like this to a modern outdoor sports related informational Epub, but until we can resolve the code factors that limit its use in ADE (etc) it will be on hold.
The refined 5-image gallery so far:
Refined JSFiddle
-Works only on: Aldiko (Android OS).
-Keeps design shape: ADE, Pocketbook (but non-functional).
-Fallback: Moon+, ReadEra (images are full screen).
azimuth is offline   Reply With Quote
Old 09-10-2023, 10:21 AM   #4
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,463
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 azimuth View Post
Our goal was to add something like this to a modern outdoor sports related informational Epub, but until we can resolve the code factors that limit its use in ADE (etc) it will be on hold.
The refined 5-image gallery so far:
Refined JSFiddle
-Works only on: Aldiko (Android OS).
-Keeps design shape: ADE, Pocketbook (but non-functional).
-Fallback: Moon+, ReadEra (images are full screen).
I think you'll find that the entire "getting it to work in all ePUB readers" is the huge stumbling block. Yup, works great on browsers and any other environment in which you have some modicum of control, but not so fantastic in those environs where one factor OR ANOTHER can be changed. IOW, in a browser, typically, people tend to zoom or change devices, right? The font and the layout change at the same time. in Ebooks, not so much--the primary altered factor is font size and despite the fact that that should not affect image sizes, it almost invariably does. NOPE, don't ask me why. It's frustrating.

When we have to do s-b-si images (side by side) we used tables, period. Yup, old-fashioned, but it works pretty much everywhere. The coding that you're using--nyet. Does not seem to work more than it doesn't and that's a deal-breaker for us. FWIW.

I would not, at this point, even try the two tabular columns (I mean, visually) with varied numbers of images of varying sizes. Not like that. looks great when it works, but that's so rarely that it's not worth doing.

Hitch
Hitch is offline   Reply With Quote
Old 09-18-2023, 11:15 PM   #5
azimuth
Enthusiast
azimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with othersazimuth plays well with others
 
Posts: 33
Karma: 2538
Join Date: Aug 2023
Location: NW US
Device: none
As suggested I tested an image gallery based on the 'old fashioned' <table> method. It works ok in the top main eReaders. It has challenges in ReadEra (on Android) that we could not solve. For some reason that particular eReader on Android places thin borders around the text and image (cellpadding won't remove it - no CSS would remove it), and it adds a non-removable list-style too. The ReadEra eReader software code is taking precedence over inserted CSS. The software also places an unusually wide gap around the images in a table (something that cannot be overridden). We successfully wrapped the table in a DIV to center it on the page screen plus a breakpoint. This test gallery only works on Epub3 format.

Our <table> images test that works (with limitations on ReadEra via Android):
JSFiddle 1

Our DIV images test which works on a broad number of eReaders (all without hiccups so far [ADE, Pocketbook, Aldiko, Kobo, ReadEra, Moon+]) as either dual images or a single large screen image (there are 4 test examples, each a slightly different arrangement):
JSFiddle 2

Last edited by azimuth; 09-18-2023 at 11:19 PM.
azimuth is offline   Reply With Quote
Advert
Reply

Tags
epub 3


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
getting pics into the gallery goldy319 enTourage Archive 8 03-08-2011 07:28 PM
Gallery VS Library pdgmtf enTourage Archive 10 03-06-2011 05:03 PM
Gallery Settings mickh Android Devices 0 01-12-2011 08:55 AM
Mobile laptop computing in 2015 - an image gallery of guesses Bob Russell Alternative Devices 36 05-09-2008 11:19 AM


All times are GMT -4. The time now is 06:33 PM.


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