07-15-2015, 05:05 AM | #1 |
Member
Posts: 86
Karma: 12586
Join Date: Nov 2012
Device: Ipad and Kindle Fire
|
IMAGES INSIDE POP-UP WINDOWS
I would like to make images in an Epub 3 clickable, so they open up in window containing a larger copy of the image, when viewed in iBooks. I have experimented with the coding for pop up footnotes, using the aside tag.
ie: in the main body of the text: <span><a epub:type="noteref" id="footnote-3091-9-backlink" class="_idFootnoteLink" href="#footnote-3091-9"> <div class="fifty"> <img src="image/family.jpg" alt="" /> </div></a></span> and in the place of the footnote: <div class="_idFootnotes"> <aside epub:type="footnote" id="footnote-3091-9" class="_idFootnote"> <p class="footnote"><a class="_idFootnoteAnchor" href="#footnote-3091-9-backlink"></a><div class="hundred"> <img src="image/family.jpg" alt="" /> </div></p> </aside> </div> This works in producing copy of the image within pop-up window, but the image and window are the same size as the original in the text. The window also has scroll bars. My question is how do you adjust the size of the pop-up window and get rid of the scroll bars? Or is there a better way of doing this? |
07-15-2015, 02:39 PM | #2 |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
This is something best left to the reading programs themselves, and NOT trying to come up with some incredibly hackish code that will most likely break in a future update (and if the book was read in anything OTHER than that specific version of iBooks you are coding for).
Many of the reading devices/programs nowadays allow you to click on an image and get a full-sized version of it already. |
07-16-2015, 05:25 AM | #3 |
Member
Posts: 86
Karma: 12586
Join Date: Nov 2012
Device: Ipad and Kindle Fire
|
This is not what I was referring to. Instead of the image opening up full screen if tapped, as is normal, the desired effect is for the pop-up window to appear as a smaller window within the existing one, like a bubble. You can get this effect with pop-up footnotes in EPUB-3 (using a variation of above coding as recommended by Apple) when using iBooks reader.
|
06-06-2016, 10:55 AM | #4 |
Junior Member
Posts: 1
Karma: 10
Join Date: Jun 2016
Device: ipad
|
Solution?
Hi verydeepwater,
Did you find a way to the image pop-up for the epub? I am also interested in doing it for the kindle format. Any help would be greatly appreciated. Thanks JC |
06-06-2016, 10:06 PM | #5 | |
Connoisseur
Posts: 89
Karma: 185923
Join Date: May 2015
Device: iPad 1/2/Air, K3/PW2/Fire1, Kobo Touch, Samsung Tab, Nook Color/Touch
|
Quote:
Not possible AFAIK, sorry. |
|
06-07-2016, 11:28 AM | #6 |
A Hairy Wizard
Posts: 3,094
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
|
I haven't tried it, but can you embed an image in an SVG wrapper in the popover?
With the correct settings the SVG wrapper would auto shrink/expand the embedded image to fill the container. |
06-10-2016, 01:34 PM | #7 |
Member
Posts: 86
Karma: 12586
Join Date: Nov 2012
Device: Ipad and Kindle Fire
|
pop-ups
The pop-up code using the aside tag works for iBooks, and Gitden on Android. It does not work on kindle. I have also used this code to pop-up an image in its own window (not full screen). For example, in fixed layout epubs you can make an enlarged version of part of the background pop up.
|
06-11-2016, 10:12 AM | #8 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
That's right; on the Kindle, a pop-up footnote gets any images it contains stripped out. You do of course see the image if you tap the link on the footnote to display it full-page.
|
06-12-2016, 09:13 AM | #9 |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Regardless of the window size, a popover image is always going to block a large portion of the original page (even on a 10" tablet) anyway. As such, I see absolutely no advantage in creating an image popover less than full screen size--which most renderers already do inherently (including pan/zoom control).
|
06-12-2016, 10:35 AM | #10 |
A Hairy Wizard
Posts: 3,094
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
|
While I tend to agree, Diap, I can think of a couple reasons why you'd want an image like that. e.g. a large map in the main screen with a list of locations below. A tap on the location would display a pop-up with an image of that location zoomed in - rather than just enlarging the original image.
Also, the OP's question was: "... how do you adjust the size of the pop-up window and get rid of the scroll bars?" So adjusting the window size and having an image fill the smaller window could be useful, depending on what the OP wanted to do with it. Now that Marvin 3 supports ePub3, I'll have to start playing around with some of these functions to see what I like! Last edited by Turtle91; 06-12-2016 at 10:39 AM. |
06-12-2016, 01:44 PM | #11 | |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
But hey ... as long as I don't end up buying books that have hackish code that only works on certain devices/apps (and breaks my reader of choice's inherent image-zooming ability), I'm all for experimentation. Last edited by DiapDealer; 06-12-2016 at 01:49 PM. |
|
Tags |
epub3, pop-up images, pop-up windows |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can you OCR the images inside of .pdf files? | klmmc13 | Workshop | 39 | 10-30-2014 08:07 PM |
A problem with images inside tables | RbnJrg | ePub | 2 | 10-28-2013 09:09 PM |
EPUB with images. Tweaking inside to make it lighter. | roger64 | ePub | 14 | 08-19-2012 07:53 PM |
Cover & inside images in epub on different readers | JoanneM | ePub | 21 | 07-03-2012 08:39 PM |
pop up windows | pedz | ePub | 7 | 03-31-2010 12:47 PM |