![]() |
#1 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43
Karma: 100000
Join Date: Jun 2018
Device: none
|
About transparency
Hey there, until now I would have used PNG for icons with transparent backgrounds (with all those fancy color schemes, a white background looks awful).
But now I see a really poor rendering of PNGs on ADE, so I thought to use SVGs (but they aren't allowed by Amazon's lastest format). Ang GIFs really look awful, especially in curves. ![]() |
![]() |
![]() |
![]() |
#2 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
What sorts of images are you working with? I assume these are purely vector drawings since you mentioned SVG as well.
And are you trying to have this as little symbols inline scaling with text? Or are they completely separate large graphics? Back in 2013, inline SVGs were written about in "Apple symbol and other special characters in ePub". What's the rendering issues you're getting on ADE? I know their image scaling algorithm is garbage, but that's across the board. In Amazon's ecosystem, transparent PNGs aren't well supported. Last I recall, they're automatically converted into JPGs. (And back in 2013, KindleGen had other transparent PNG issues.) Quote:
Similar to equations, there are ways to finagle SVG (with PNG fallback) into the ebook with a lot of elbow grease... but it's usually not worth it. And that comes with its own quirks/bugs (potential duplicate images). Usually, you just go with the easiest + lowest common denominator, and make sure it works across a wide swathe of devices instead. If you want to put in the extra work, you'd most likely have to create completely separate books: - one for EPUB with SVGs and/or transparent PNGs - one for MOBI with non-transparent bitmap images And is this for personal use? Or are you trying to sell this ebook? If you're designing this for something like the MR Library, then no problems. Go with SVG and/or Transparent PNGs in your EPUB. I believe Calibre even converts transparent PNGs to Kindle formats fine. If going for sale though.... probably strongly recommend against it. Last edited by Tex2002ans; 05-27-2020 at 10:10 PM. |
|
![]() |
![]() |
![]() |
#3 | |||
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43
Karma: 100000
Join Date: Jun 2018
Device: none
|
Thanks for the detailed response, Tex.
These are books which are being digitalized for sale through the major distributors. I mentioned SVG because some of the books have simple, or not so simple, vector graphics. Most of those which present this issue, though, have bitmap images with transparencies, not vectors. Quote:
![]() Quote:
I could, realistically, call it a day and just leave it at centered jpg images with white background, no float, no transpanecy… but I like to do things the best they can be done with my current skills (or learn a thing o two and do them better), and the allotment of time for the task in question. Quote:
|
|||
![]() |
![]() |
![]() |
#4 | ||||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
(If there are bugs, there are complaints and books get returned/pulled. And on Amazon, if you get the dreaded KQN [Kindle Quality Notice], sales drop dramatically.) Quote:
(And if it's just scaling, just know that ADE's image scaling sucks, but from what I've seen on actual devices [Kobo, Nook, etc.], the scaling is better.) Quote:
PNG with white background (no Alpha/transparency). For actual "EPUB-only" EPUBs, I think you'd be fine using transparent PNGs, and finagling a little more with some SVGs. For "EPUB->Kindle" EPUBs, you might want to then use KF8/MOBI Media Queries (found in the Kindle Publishing Guidelines, Appendix D). The issue with media queries outside of that... they could potentially lead to the "duplicate image" bug. For example, there are a ton of non-standards compliant readers out there (like Moon+ Reader on Android, etc.). So they'll ignore the query, then you'll see BOTH images. [QUOTE=Land_Outcast;3993490]For the time being I've been using GIFs, the result is not hideous, but it is the lowest common denominator, with the usual drawbacks that implies. By the way, I belive they do work ok in most formats, but I'm something of a newcomer in this, so please correct me if I'm wrong in my belief. GIF is an antiquated format that needs to be stuck in the dustbin. :P PNG supersedes GIF in every way (besides animation, but animated GIFs aren't supported in ebooks). Quote:
|
||||
![]() |
![]() |
![]() |
#5 | ||
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43
Karma: 100000
Join Date: Jun 2018
Device: none
|
Quote:
And for some reason I can't replicate the issue now, but it was showing weird behaviour (stretching the images vertically, turning the alpha into a zebra pattern or into a sort of grey transparency). Quote:
Of course I'd rather use the PNG, but I was (am) worried about file support (I'll try to replicate the weird behaviour and share it here). I'm attaching some samples of where I need to use transparencies. |
||
![]() |
![]() |
![]() |
#6 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,641
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
However your issues will continue because .KFX doesn't accept transparent svgs (because Amazon cheats; the original svg is converted in .jpg). Below you can check the respective epub with the respective svg image used by me. Regards Rubén Last edited by RbnJrg; 05-29-2020 at 09:47 AM. |
|
![]() |
![]() |
![]() |
#7 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43
Karma: 100000
Join Date: Jun 2018
Device: none
|
Thanks, Rubén.
|
![]() |
![]() |
![]() |
#8 | ||||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
https://www.mobileread.com/forums/at...7&d=1381013845 https://www.mobileread.com/forums/at...8&d=1381013878 That's my images from a topic in 2013: "Sony Reader for PC -- not rendering 16-color png" Are you saving your PNGs in a strange way? Are you saving as Indexed? (Or the very obscure: "Indexed with Alpha"?) What image editor are you using? Quote:
"Indexed PNGs" cover that entire use-case (256 colors). Normal PNGs (Color + Color/Alpha) then take on the entire RGB color range. On top of that, PNGs compress so much better, because it uses more modern algorithms. Quote:
Only has potential to get strange when you start going into the edge cases (like 4-bit Indexed PNG). Note: Another thing you have to look out for is that lots of image editors sometimes embed tons of crap/metadata inside PNGs too. But that can easily be stripped. Quote:
Not ideal, yes. Potentially hideous on color backgrounds? Yes. Fully compatible? Yes! :P And then you just save the transparent source for some future date (or a MobileRead-specific version where you don't have to care about sales). Last edited by Tex2002ans; 05-30-2020 at 02:48 PM. |
||||
![]() |
![]() |
![]() |
#9 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,123
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
if you are doing this for n eBook to sell at Amazon, you have to deal with Mobi and what you want to do won't work with Mobi.
|
![]() |
![]() |
![]() |
#10 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
|
![]() |
![]() |
![]() |
#11 | |||||
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43
Karma: 100000
Join Date: Jun 2018
Device: none
|
Quote:
Quote:
Actually, I can't replicate the issue even using the original PNGs which were horridly rendered. I did uninstall and re-install ADE (same version), perhaps it was a software problem. Quote:
I went for the GIFs because they rendered better than PNGs in ADE at the time (???). Quote:
And thanks! Quote:
|
|||||
![]() |
![]() |
![]() |
#12 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
I'd be interested in seeing the images if you can ever reproduce.
I must admit, I haven't really messed with PNG w/ Alpha ever since my formulas thread. Quote:
![]() Quote:
![]() |
||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Transparency | DrewBoyd | Kindle Formats | 8 | 05-24-2016 07:33 AM |