View Single Post
Old 04-08-2014, 05:25 PM   #30
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by JLius View Post
And what's the benefit of png/gif images? The titlepages are black&white, only one letter has a color. No images, only text.
Long story short,

JPG = Lossy format
GIF/PNG = Lossless format

JPG compression was designed for "natural" images (photographs). It does HORRIBLY on "artificial" images (charts, graphs, text).

Here is a tiny portion of a real-life book I just worked on. (This is an extremely good example to show off just how much better PNG is in these cases).

You can clearly see the JPG Haloing which occurs around the text/lines:

Click image for larger version

Name:	SampleBWJPGHaloing.png
Views:	469
Size:	15.6 KB
ID:	121434

Because of the JPG algorithm, instead of being Black + White, you get Black + White + various shades of gray speckles buffering the lines.

Here is the same image saved as PNG:

Click image for larger version

Name:	SampleBWPNG.png
Views:	478
Size:	1.4 KB
ID:	121435

As you can see, there is actually only Black + White, and NOTHING else. Zero loss/deterioration from the original.

Stats on the Original Image:

Resolution: 1292px x 541px
Grayscale JPG (90 quality): 89.5 KB
2-color PNG: 9.34 KB

In Total, this book had 4 B/W drawings, which I compressed down to 35.2 KBs.
The equivalent Grayscale JPGs saved at 90 quality would have been ~314 KBs.

If you wanted to squeeze the JPG filesize smaller, you would have to use a lower quality rating, which means that the haloing will get even worse.

Quote:
Originally Posted by RbnJrg View Post
For that reason, precisely In this forum was talked a lot about that issue; do a search and you'll find a lot of info. But you can start with:

https://www.mobileread.com/forums/sho...67&postcount=5

and:

https://www.mobileread.com/forums/sho...54&postcount=8
Thanks for the links back to my posts.... I had an inkling those posts linked back to me before I clicked on them! haha

One of my favorite posts to also link to showing off the advantages of PNG is this post (showing off a real-life chart):

https://www.mobileread.com/forums/sho...5&postcount=26

There was also some discussion of Title Pages + Front Matter in this topic:

https://www.mobileread.com/forums/sho...d.php?t=228927

I personally would recommend against a bitmap image as the Title Page, because it does not/will not scale well, and does not follow user preferences.

SVG is probably the best choice if you want the Title Page to be "forced" all on one page..... but keep in mind that SVG support will be a mixed bag:
  • You lose the possibility of scaling the font (if I recall in the examples I have seen)
  • If you are creating this for conversion to Kindle, you may/may not get some problems (KF8 supports SVG, but the older MOBI format does not).

Quote:
Originally Posted by Jellby View Post
You can still create SVG images. Convert the fonts into paths (inkscape can do that) and won't need to care about font embedding or licensing.
GrannyGrump posted a tutorial to show how to do this here:

https://www.mobileread.com/forums/sho...d.php?t=233131

Last edited by Tex2002ans; 04-08-2014 at 05:55 PM.
Tex2002ans is offline   Reply With Quote