01-18-2023, 07:41 AM | #136 | |
Bookmaker & Cat Slave
Posts: 11,468
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
You'll also note that automatic conversion, by KDP, is done without your consent or even notification for anything like images of text, etc. (to GIF) and all that. Hitch |
|
01-18-2023, 09:53 AM | #137 |
Grand Sorcerer
Posts: 6,621
Karma: 85000001
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Most customers will receive your book from Amazon in KFX format. And so far Amazon's generation of KFX converts SVG images into rasterized JPEG, sometimes poorly.
|
Advert | |
|
01-18-2023, 10:39 AM | #138 | |
Member
Posts: 12
Karma: 10
Join Date: Oct 2022
Device: kindle 10th gen
|
Quote:
|
|
01-18-2023, 10:40 AM | #139 |
Bookmaker & Cat Slave
Posts: 11,468
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
|
01-18-2023, 11:49 AM | #140 |
the rook, bossing Never.
Posts: 11,987
Karma: 88000007
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
GIFs simply as fixed palette alternative to png, no transparency or animation, though no idea why png without transparency not used too. Predates first kindle by 10 years. Perhaps a decision made by Mobipocket.
It's an electronic version of a printed book. Printed book files don't usually allow transparency or animation and white is regarded as transparent on paper books. Thus if the file is printed on cream paper, the white areas are cream. Last edited by Quoth; 01-18-2023 at 11:57 AM. |
Advert | |
|
01-18-2023, 07:10 PM | #141 |
Sigil Developer
Posts: 7,878
Karma: 5449552
Join Date: Nov 2009
Device: many
|
I thought kf8.p/azw3 books did support svg (without any rasterization needed). Kindlegen will properly create and store them and Kindleunpack will certainly unpack the svg from a .azw3 and the result will work in the resulting epub.
Last edited by KevinH; 01-18-2023 at 07:16 PM. |
01-18-2023, 07:44 PM | #142 |
Grand Sorcerer
Posts: 5,375
Karma: 99197566
Join Date: Apr 2011
Device: pb360
|
Right, amazon has and uses tools to do the right thing, yet they go out of their way to convert and otherwise degrade images, as discussed the past few weeks in this thread.
|
01-18-2023, 07:53 PM | #143 |
Sigil Developer
Posts: 7,878
Karma: 5449552
Join Date: Nov 2009
Device: many
|
But how do you degrade an svg? It is a vector format and not rasterized.
|
01-18-2023, 08:40 PM | #144 | |
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
KF8 supports SVG graphics. These pass through conversion unaltered, as far as I can tell. KF7 files though I think SVG are just omitted. Look at the code in some commercial books and they use media queries to provide alternates like "* * *" as an ornamental divider for KF7, and an SVG graphic for KF8. SVG go through. PNG are converted to sometimes GIF, sometimes JPEG. Usually larger and lower quality. So I always convert PNG to those formats myself and optimise them, as GIF and JPEG are unchanged (except perhaps huge files might be downsampled). BW diagrams I reduce the colourspace to 4 colours, get a file much smaller than a similar looking JPEG. Last edited by AlanHK; 01-18-2023 at 08:54 PM. |
|
01-18-2023, 09:01 PM | #145 | ||
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
Quote:
|
||
01-18-2023, 09:21 PM | #146 | |
Grand Sorcerer
Posts: 6,621
Karma: 85000001
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
I see it as saying that there are some cases when using SVG is the best choice for an image. But you should put the SVG image in a separate file and reference it from your HTML using an img element as opposed to placing it inline within the HTML document. But I can see how it could be interpreted in different ways. I miss the days when there were actual standards. |
|
01-18-2023, 10:37 PM | #147 | |
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
Anyway, if it works without error converted by Kindlegen and then loaded on a Kindle, I assume it will work when Amazon converts it. |
|
01-19-2023, 02:29 AM | #148 | |
Bookmaker & Cat Slave
Posts: 11,468
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
No offense, but I would never assume that. I always check the for-sale book, once it's online, if we used SVG or anything remotely unusual; the PW-- Processing or Publishing workflow, I can't remember the actual term--I have a medical issue that is temporarily affecting my recall--by which they mean their own internal conversion stage can do some weird-ass things. Hitch |
|
01-19-2023, 03:49 AM | #149 | |
the rook, bossing Never.
Posts: 11,987
Karma: 88000007
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
height: auto; width: 90%; /* or whatever you want */ or if a portrait image width: auto; height: 90%; /* or whatever you want */ We have that inside a p or div with class something like this, which allows for a centred caption { display: block; font-family: "Droid Sans", sans-serif; font-weight: bold; margin-bottom: 3pt; margin-left: 0; margin-right: 0; margin-top: 0; padding-bottom: 0; padding-left: 0; padding-right: 0; padding-top: 0; text-align: center; text-indent: 0 } We'd never use SVG on something also going to Amazon. |
|
01-19-2023, 04:28 AM | #150 | |
Bookmaker & Cat Slave
Posts: 11,468
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
And I try to stay away from SVG, for all the obvious reasons. When it's fully supported, which may be ten years out yet, great (with any damn luck, I'll have sold the biz and be retired by then), but before then, the chances for disaster are just too high. We do a lot of things that other companies don't--we give our customers not one but two epubs, one optimized for Amazon with media queries and all that, and one for "everybody else," but SVG is just a bridge too far, for us, with all the potential for problems, post PW. (I'm 99% sure, now, that it's Publishing Workflow, sorry for the brainfart earlier.) Hitch |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PNG in AZW? | AlanHK | Kindle Formats | 9 | 08-07-2017 10:51 AM |
Content KF8 only or combined KF8/Mobi | JSWolf | Amazon Kindle | 9 | 06-03-2012 09:11 PM |
ERROR: ... .png | saytionne | ePub | 17 | 10-04-2010 07:13 PM |
hotlinking png image | bobcdy | Sigil | 21 | 09-21-2010 04:56 AM |
where to get autorun.xml, icon.png, key.png, lut.bin for PRS-505 | obender | Sony Reader Dev Corner | 2 | 01-25-2009 03:20 PM |