05-04-2017, 11:50 AM | #16 |
Guru
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
If you're making eBooks that need to be portable between various EPUB and Kindle devices, you need to develop a throughly non-anal mindset! You can be fairly confident the words will come out in the right order. Your paragraphs may be indented, they may be separated by white space, but they will be recognisible. Headings will be distinguishable from body text. But that's about it - and I'm not joking! There are so many variables, and so many ways the customer can mess things up with settings and preferences.
You can choose a picture format that you think guarantees the caption will be on the same page. But then a customer will decide to always hold his device in landscape format... The sure way to make a caption stick with its picture is to incorporate it in the graphic. But then the text size will be unpredictable, which can be quite annoying. I recently moved across to the dark side and designed a book for print. It was quite a wrench to adjust to being in charge of everything - typeface, line ends, spacing, headers, page numbers - and they would show the same for all readers! :-) |
05-04-2017, 02:21 PM | #17 | |
A Hairy Wizard
Posts: 3,093
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
Setting the width of the image to 100% and the max-width to the pixel size of the image simply means that it will scale (completely fill) to the size of the parent element (the <div> in this case) but it won't get any larger than the actual image...ie. it won't get over stretched to the point it looks blurry/ugly. this is not a concern if you have super hi-res images (larger than current displays), but it can be an issue if you are working with small originals. |
|
Advert | |
|
05-04-2017, 02:29 PM | #18 | |
Groupie
Posts: 165
Karma: 51147
Join Date: Dec 2016
Device: android tablet
|
Quote:
EDIT: Found this (third post down) which explains (what you already know)... that when KindleGen creates a mobi from an epub it actually creates two books, one in Mobi7 for older Kindles, and one in KF8 for newer, both zipped into the single resulting mobi. So I guess the files are generated automatically by Amazon. [edit out ISBN question as it looks like all Kindle formats can use the same ISBN from what I read] Last edited by Trane; 05-04-2017 at 03:51 PM. |
|
05-04-2017, 02:32 PM | #19 | |
Groupie
Posts: 165
Karma: 51147
Join Date: Dec 2016
Device: android tablet
|
Quote:
|
|
05-04-2017, 02:43 PM | #20 | |
Groupie
Posts: 165
Karma: 51147
Join Date: Dec 2016
Device: android tablet
|
Quote:
|
|
Advert | |
|
05-04-2017, 05:38 PM | #21 | ||||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
https://opendyslexic.org/ Someone like that may have a very hard time reading your captions if they were in the JPG. Just because YOU have no problems with the "Black Arial 12pt", doesn't mean others would have zero problems. Ebooks are great because of the user preferences... and they can set it the way that perfectly works for them! Our job as the ebook makers is to create the clean text, and then step out of the way and let them read how they want. That's what they all say... until next month you want to change the caption. (That actually happened after I strongly advised against it.) :P They wanted it redone, I said "I told you so", and they paid me a second time to do the new captions (new caption images had "Figure #:" changed to bold)... then about a year later, guess what? They wanted the captions in HTML. Luckily I left the proper HTML solution as an HTML comment... so I just swapped in the original uncaptioned images + a Search/Replace that took about a second. So I got paid 3 times as much for something that should have been done the first time! :P Quote:
Most of the time you will probably just have a single caption, so you could go with something very simplified like this: Spoiler:
That initial example was out of one of the "harder" books. :P Quote:
Guess what the Publisher would do... they would want to style captions just like all their other books, and then they will pull their hair out and charge you MUCH MUCH more for submitting hardcoded captions! And they would look like complete crap because Print is much higher DPI (300+ DPI) than Web (~72 DPI). :P Quote:
Yeah, designing a book for print opened my eyes to a massive amount of little niggles that I never noticed before. Makes you see where ebook renderers still need a ton of advancements (like in Justification/Hyphenation/Microtypography). |
||||
05-04-2017, 09:10 PM | #22 | ||||
Groupie
Posts: 165
Karma: 51147
Join Date: Dec 2016
Device: android tablet
|
Quote:
Quote:
Quote:
Quote:
Last edited by Trane; 05-05-2017 at 03:52 PM. |
||||
05-05-2017, 03:11 AM | #23 |
Obsessively Dedicated...
Posts: 3,200
Karma: 34977896
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
I just had to chime in with one subversive thought ---- where is it graven in stone that captions MUST be centered? I have seen many print books, and used myself in epubs, captions that were left-aligned, right-aligned, and right-aligned with a left-hand margin of 50%.
Don't feel like you have to hold your output to a single option. |
05-05-2017, 03:36 PM | #24 |
Groupie
Posts: 165
Karma: 51147
Join Date: Dec 2016
Device: android tablet
|
Thanks Granny. As it happens it sounds like it's a crapshoot where the text will land no matter what you do, but for the moment Turtle's code has it all working as far as I can tell.
I'm now wrestling with the next issue with images... sizing. One nightmare after the next. I can't tell from the myriad of opinions and advice which pixel width is best. And Amazon says to go by height instead, making them 1200-something px high. Others say make them 600 or 800px wide. Then some say PPI/DPI doesn't matter, and Amazon says make them 300DPI. And clearly no matter which one chooses, they will not display well in some devices. Of course choosing gigantic hi-res images is safest, but also costs a bundle in downloading against the royalty when it's a 74k book with 100 images, like mine. I have defaulted to redoing all (have the originals as PSDs) as 300 PPI and 600px wide. I got through half of them last night then thought I'd better stop in case I found out today another size was better. Like maybe 800px. Input? Last edited by Trane; 05-05-2017 at 03:55 PM. |
05-05-2017, 10:23 PM | #25 | |||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
A lot of this then depends on your specific images... which is why I didn't post any sort of image-specific code in my examples. Quote:
If they are Text-based (Formulas or image of a Table), Charts/Graphs, line-drawings, [...] those would be much better served as PNG over JPG. PNGs can then be heavily compressed with zero loss. For example, I posted a vector chart I worked on that was >130KB JPG, but 99.8KB PNG -> 44.5KB PNG (Indexed): https://www.mobileread.com/forums/sh...45#post2499645 Does this book also have photographic images? What resolution is the source photos? Quote:
I thought it looked pretty cool, and seemed like a good way to design the page to create a shorter/wider book. Last edited by Tex2002ans; 05-05-2017 at 10:25 PM. |
|||
05-06-2017, 12:25 AM | #26 |
Groupie
Posts: 165
Karma: 51147
Join Date: Dec 2016
Device: android tablet
|
Thank you for all of those excellent tips! There was also a lot of good information in your other post you linked to. Very helpful.
About half the images are photos (jpgs) from a variety of sources, so there is no one resolution, but I purposely sought out the highest quality images I could find for the subject needed. Using PS to change PPI to 300... most were 240PPI so not a big jump. Also making them a uniform 600px wide. And again, most were close to that. Then Save for Web to compress/strip metadata. The other half include transparency (just about all created in PS), so made those pngs. There is a nice little (free) plugin for Photoshop called SuperPNG. It does a great job of compressing/removing metadata. Having tried a few compression/meta-stripping programs prior, I found the two methods above to give the best results, in my case, for my images. BTW, Amazon says not to compress the cover. Mine is the Amazon-recommended 1600x2560 300PPI (EDIT: I saw they actually say 72DPI is fine, and slight compression too). Last edited by Trane; 05-06-2017 at 07:00 PM. |
05-06-2017, 07:57 PM | #27 |
Groupie
Posts: 165
Karma: 51147
Join Date: Dec 2016
Device: android tablet
|
Just read in KDP guide that Amazon only supports GIF and JPG, and all PNGs are converted to JPG in the upload process... which means those images will lose their transparent background, and it will become WHITE. So the only way to preserve transparency is to use GIF.... so all the time spent converting the PSDs over again into PNG was wasted (originally made GIFs then read PNGs are superior), and now have to create all new GIFs again and then replace them in Sigil... Again... (Yes, I saved the original GIFs but as I made the PNGs I added effects in PSD to each image that I want in the GIFs, so...)
If they are only going to support one format that includes transparency, why the old, outdated, one? The PNGs created from the PSDs were superior to the GIFs and also compressed to be slightly smaller, still looking better. Meanwhile, GIF will continue to include transparency once uploaded to Amzn, right? I mean, internal images in eBooks can include transparency, correct? EDIT: OK, it seems Amazon changed things up at the end of 2015 and since then all images are converted to JPEG XR, including GIFs. When they started doing this GIFs lost their transparency too, even though this newer JPEG XR format supports transparency (unlike normal JPEG). Then apparently Amazon claimed they were going to fix that. (source) So does anyone know if they have? Are currently uploaded GIFs converted to JPEG XR with transparency intact? Last edited by Trane; 05-06-2017 at 10:04 PM. |
05-06-2017, 10:33 PM | #28 | ||||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Quote:
https://kindlegen.s3.amazonaws.com/A...Guidelines.pdf The KDP section of the site you mentioned is more for non-technical Word users. It also has a lot of wrong/misleading/dumbed-down information in it. There USED TO BE a very old Kindlegen bug that converted PNG Transparency -> black background. Then also used to be a problem where it was converting Transparent PNG -> JPG. Those two bugs were fixed years ago though. There was also another PNG Transparency bug in KindleGen a few years ago: https://www.mobileread.com/forums/sh...85#post2635085 but I haven't retested that in a very long time. It only happened with only a very specific method of compression and turned the entire image black. Personally, I would export the PNGs with transparency, then run ImageMagick to mass convert those -> white background. Non-Transparent PNGs allow you to get much smaller filesize (if this filesize is such a concern). And doing it that way allows you to easily drag/drop the Transparent PNGs in the future. Quote:
https://www.mobileread.com/forums/sh...54#post2632254 and I also wrote another post why PNG is superior to JPG when dealing with "artificial" images: https://www.mobileread.com/forums/sh...10#post3029910 Quote:
https://css-ig.net/pingo Others use OptiPNG or TruePNG or whatever other tools. I believe there was another topic where everyone discussed their favorite compression methods (I swear it was one posted by GrannyGrump, but I couldn't find it in a quick search). Pingo is just easy drag/drop and typically gets you the highest compression without needing to tweak any variables. Last edited by Tex2002ans; 05-06-2017 at 10:53 PM. |
||||
05-07-2017, 12:36 PM | #29 |
Groupie
Posts: 165
Karma: 51147
Join Date: Dec 2016
Device: android tablet
|
Thanks for the updated PDF guidelines. I will read the PDF to see if it addresses retaining transparency.
My issue isn't with compressing, JPG or PNG. I already did that and they came out wonderful. My issue is I want to retain transparency. A white bg is not acceptable. |
05-08-2017, 05:11 AM | #30 | |
Obsessively Dedicated...
Posts: 3,200
Karma: 34977896
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
Quote:
Tex, I think the topic you are remembering is this one: https://www.mobileread.com/forums/sh...d.php?t=225518 I tripped over it recently, after it had completely fallen out of my memory I have been re-reading it and starting to use some forgotten tips from that thread, even if it is from 4 years back. I still always use Jellby's tip to down-size in several steps --- it works wonderfully to reduce the jaggies! |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Centering Text in Middle of Display Screen | oiver55 | Sigil | 16 | 04-23-2015 12:34 PM |
centering text | andreadavison | Conversion | 1 | 12-29-2013 02:02 PM |
Conversion limitation: Centering image [docx to mobi] | zonoiko | Calibre | 1 | 09-25-2013 12:40 AM |
Image overlayed over text (but text visible if image disabled)? | Kaylee Skylyn | ePub | 5 | 08-01-2012 05:27 PM |
Centering text epub for NOOK Color | photoluminations | Conversion | 3 | 12-15-2011 12:01 PM |