![]() |
#1 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#2 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 33
Karma: 2538
Join Date: Aug 2023
Location: NW US
Device: none
|
Quote:
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). |
|
![]() |
![]() |
![]() |
#4 | |
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:
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 |
|
![]() |
![]() |
![]() |
#5 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
Advert | |
|
![]() |
Tags |
epub 3 |
|
![]() |
||||
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 |