Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 12-31-2012, 06:41 AM   #1
Iznogood
Guru
Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.
 
Iznogood's Avatar
 
Posts: 929
Karma: 15752887
Join Date: Mar 2011
Location: Norway
Device: Ipad, kindle paperwhite
Transparent images

I'm currently working on a book that shall have a picture on the front page together with some text. The front page shall be an svg image, with a background color that fills the entire "page", and text and an image on top of the background.

Some parts of the image shall have the same color as the background, and I would like to make these areas transparent in the image. iBooks honours the transparent part of the image and handles this correctly, while bluefire displays the transparent areas as white.

Is this another bug on ADEs part, or is transparency not supported by the epub specifications? I can of course take the easy route and set the background color directly into the png image, but I don't like that solution. After all, this is what transparency is for!
Iznogood is offline   Reply With Quote
Old 12-31-2012, 09:39 AM   #2
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
Posts: 248
Karma: 556004
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
This sounds like what would happen if the programmer incorrectly set the opaque flag on the UIImageView and failed to set its background color to that of the page. Oops.

The EPUB spec requires you to support the image formats, and it does not explicitly exclude transparency, so I would say supporting image transparency is a required part of the spec. Out of curiosity, though, why don't you just fill those areas in the image with the right color?

Also, does this fail with ADE on the desktop, or just Bluefire? I don't think any of the ADE-compatible readers in iOS actually use the ADE rendering code; they all render content differently from one another, and the rendering barely resembles ADE on other platforms.

Last edited by dgatwood; 12-31-2012 at 09:56 AM.
dgatwood is offline   Reply With Quote
Old 12-31-2012, 10:29 AM   #3
Iznogood
Guru
Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.
 
Iznogood's Avatar
 
Posts: 929
Karma: 15752887
Join Date: Mar 2011
Location: Norway
Device: Ipad, kindle paperwhite
Quote:
Originally Posted by dgatwood View Post
This sounds like what would happen if the programmer incorrectly set the opaque flag on the UIImageView and failed to set its background color to that of the page. Oops.
"The programmer" as in the one who makes the rendering machine or the reader app? Or "the programmer" as in me making an error when removing the background from the image?

Quote:
Originally Posted by dgatwood View Post
Out of curiosity, though, why don't you just fill those areas in the image with the right color?
If tomorrow I change my mind and want to make the background green instead of blue, or tweak the nuance of the color or (heaven forbid!) even make a gradient as background, it's good to have the background of the image transparent instead of solid color. Changing and tweaking is easier. The only reliable way I have found to achieve this is to vectorize the image too and embed it in the svg file.

Quote:
Originally Posted by dgatwood View Post
Also, does this fail with ADE on the desktop, or just Bluefire?
This happens with the ADE 2.0 desktop utility too, and with bluefire. It works in iBooks. I have not yet tried Marvin since my ipad has iOS 4.2 and Marvin requires iOS 5
Iznogood is offline   Reply With Quote
Old 12-31-2012, 08:38 PM   #4
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
Posts: 248
Karma: 556004
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by Iznogood View Post
"The programmer" as in the one who makes the rendering machine or the reader app? Or "the programmer" as in me making an error when removing the background from the image?
As in the person/people who wrote the reader app.



Quote:
Originally Posted by Iznogood View Post
This happens with the ADE 2.0 desktop utility too, and with bluefire. It works in iBooks. I have not yet tried Marvin since my ipad has iOS 4.2 and Marvin requires iOS 5
Sounds like it's an ADE bug, then.
dgatwood is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Replace all jpg with png with transparent background? Claghorn Recipes 0 08-16-2012 12:14 PM
Kindle iOS app and transparent image 1611mac Apple Devices 1 12-12-2011 11:28 AM
Transparent Lovers Scott Nicholson Self-Promotions by Authors and Publishers 0 08-08-2011 06:14 PM
*Transparent* E-Paper at Purdue University NatCh News 25 07-06-2007 02:44 PM


All times are GMT -4. The time now is 03:39 PM.


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