Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 07-15-2015, 05:05 AM   #1
verydeepwater
Member
verydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
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?
verydeepwater is offline   Reply With Quote
Old 07-15-2015, 02:39 PM   #2
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by verydeepwater View Post
Or is there a better way of doing this?
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.
Tex2002ans is offline   Reply With Quote
Old 07-16-2015, 05:25 AM   #3
verydeepwater
Member
verydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
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.
verydeepwater is offline   Reply With Quote
Old 06-06-2016, 10:55 AM   #4
carlosanima3d
Junior Member
carlosanima3d began at the beginning.
 
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
carlosanima3d is offline   Reply With Quote
Old 06-06-2016, 10:06 PM   #5
mattmc
Connoisseur
mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.
 
Posts: 89
Karma: 185923
Join Date: May 2015
Device: iPad 1/2/Air, K3/PW2/Fire1, Kobo Touch, Samsung Tab, Nook Color/Touch
Quote:
Originally Posted by verydeepwater View Post
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.
So, you want the popover (it's called a popover) to contain a larger, or smaller version of the image? A popover will contain a smaller version. If you want a larger version, the person double-taps the image in the text, and it goes fullscreen. There's no way to change the size of the popover.

Quote:
Originally Posted by carlosanima3d View Post
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
Not possible AFAIK, sorry.
mattmc is offline   Reply With Quote
Old 06-07-2016, 11:28 AM   #6
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,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.
Turtle91 is offline   Reply With Quote
Old 06-10-2016, 01:34 PM   #7
verydeepwater
Member
verydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
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.

Quote:
Originally Posted by carlosanima3d View Post
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
verydeepwater is offline   Reply With Quote
Old 06-11-2016, 10:12 AM   #8
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
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.
HarryT is offline   Reply With Quote
Old 06-12-2016, 09:13 AM   #9
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
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).
DiapDealer is offline   Reply With Quote
Old 06-12-2016, 10:35 AM   #10
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,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.
Turtle91 is offline   Reply With Quote
Old 06-12-2016, 01:44 PM   #11
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Turtle91 View Post
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.
In that case, wouldn't the "already zoomed in" part be the sole feature? Whether it was full-screen or not wouldn't really be relevant in my opinion. I still see no reason/advantage for a popover image that is a little bigger than the original, but still not full-screen. What would that in-between-size gain anyone? The background is still unusable whether you can see portions of it behind the popover or not.

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.
DiapDealer is offline   Reply With Quote
Reply

Tags
epub3, pop-up images, pop-up windows


Forum Jump

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


All times are GMT -4. The time now is 12:59 PM.


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