Transparent png gets white background in epub
Learn / Forums / EPUB and eBook / Transparent png gets white background in epub
Tagged: transparent png epub
- This topic has 6 replies, 2 voices, and was last updated 5 years, 5 months ago by MARK SHEFFIELD.
-
AuthorPosts
-
-
November 12, 2018 at 5:02 am #111520MARK SHEFFIELDMember
When I export a reflowable epub from InDesign, the transparent png image has a white background in the epub.
In InDesign I placed a blue rectangle behind the png to confirm that the png is transparent. Then exported to reflowable epub, opened the epub in Kindle Viewer 3, and set the viewing color to sepia. The png appears with a white background and the blue rectangle does not appear.
What would make a transparent png render with a white background when exported to epub?
-
November 12, 2018 at 9:37 am #111524Aaron TroiaParticipant
Hey Mark,
That doesn’t surprise me from InDesign Export, I’m guessing that it’s probably flattening the PNG’s and replacing the transparency with white background when you export the file. Have you tried unzipping the ePub, replacing the PNG files and re-zipping it?
Aaron
-
November 12, 2018 at 5:16 pm #111528MARK SHEFFIELDMember
Great suggestion. I unzipped the ePub and discovered jpeg images instead of png. No wonder they’re not transparent.
What causes InDesign to convert images from png to jpeg when exporting to ePub?
-
November 12, 2018 at 6:29 pm #111530Aaron TroiaParticipant
Off the top of my head, I’m guessing it’s simply an easy way to keep the file size small. Now I’m wondering how it decides what PNGs to convert and which it doesn’t, I have some that export certain PNGs fine (not sure if the ones I’m thinking of have transparency though), so I’m wondering if there is a file size limit or something on export that determines which stay PNG and which are converted to JPG.
-
November 12, 2018 at 6:38 pm #111531MARK SHEFFIELDMember
I had incorrectly specified jpeg conversion on the epub & html section of the Object Properties. Changing to png results in png export as intended. Even when I unzip the epub, replace the png with a transparent one, and epubpack to reassemble to epub, the image displays in Kindle Previewer with a white background.
Any other ideas?
-
November 12, 2018 at 7:26 pm #111532Aaron TroiaParticipant
Oh good, I’m glad you figured out why it was converting your PNGs to JPGs. Some of those export options can drive you crazy when you can’t figure out why its exporting differently than what you’re expecting.
Now Amazon is a different story. The support for transparencies in KF8 has been one that is driving a lot of ebook developers crazy in the #eprdctn group on Twitter. It has been supported it in the past and then one day it seems like wasn’t and there was no real heads up or reasoning why from Amazon (that I’ve seen or heard of). Unfortunately there is no fix for it, again, that I’ve seen or heard of :(
-
November 13, 2018 at 5:10 am #111534MARK SHEFFIELDMember
OK. Thanks.
-
-
AuthorPosts
- You must be logged in to reply to this topic.