View Single Post
Old 02-03-2021, 08:37 PM   #2132
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by jackie_w View Post
I don't think JPG supports transparency, does it, or is that something from yesteryear? Wouldn't you need a PNG instead?
Good point. Looking at the code in calibre, it checks if the image has an alpha channel. If it does, it creates a canvas of the supplied colour (default is #FFFFFFF) and overlays the image on that.
Quote:
Anyway, I tried using a PNG with transparent background as a random screensaver in the .kobo/screensaver directory. It works OK. The background just looks the same as if it was white.
That's a good test. I'm sure the random screensaver is handled in the same way as the cover images. The only difference is if the cover generation is handling any transparency. I am pretty sure the epub cover generation would as it is renders the first page of the book. The kepub might not.
davidfor is offline