![]() |
#16 |
Village idiot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
Thank you Jellby, I'll give it a try this evening.
@RbnJrg: what's the benefit of using a svg image is this case? I chose jpg, because I thought this was the most commonly used extension for images. The jpg is rather small, so for size I don't need svg. Is there any other advantage a svg has? Does it display better on a reading device? |
![]() |
![]() |
![]() |
#17 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Because in that case I would end up tracing an image to an SVG. That will lead to bigger pictures.
On the other hand, I do put the titlepage png in a SVG wrapper just like the cover to ensure the image fills the page with the correct aspect ratio. |
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Village idiot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
|
![]() |
![]() |
![]() |
#19 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,546
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
![]() |
![]() |
![]() |
#20 |
Village idiot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
![]() |
![]() |
![]() |
Advert | |
|
![]() |
#21 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,726
Karma: 8700123
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
EDIT: This is what I want to say. Open the epub below in ADE; you will see something like: Try to change the ADE font size; what happens? Nothing ![]() ![]() Of course, I'm working with a "viewBox" for the svg wrapper of 800x600; you can change that as you wish. But in that case, you'll have to set new values for the "x" and "y" variables to position the text. Last edited by RbnJrg; 04-08-2014 at 08:13 AM. |
|
![]() |
![]() |
![]() |
#22 |
Village idiot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
I see what the advantages are.
But when you use a different font for the titlepage, you'll have to embed this font in your epub. Also, when using a jpg you don't have to worry about font-copyright etc. |
![]() |
![]() |
![]() |
#23 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
If I use a basic font, I would use the SVG as you mention though. |
|
![]() |
![]() |
![]() |
#24 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,726
Karma: 8700123
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Ok, I see you have valid reasons to use .jpg images (but in this case, for a title page image, I think it would be better to use .png/.gif images)
|
![]() |
![]() |
![]() |
#25 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,726
Karma: 8700123
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
![]() ![]() |
|
![]() |
![]() |
![]() |
#26 | |
Village idiot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
Quote:
|
|
![]() |
![]() |
![]() |
#27 |
Village idiot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
And what's the benefit of png/gif images? The titlepages are black&white, only one letter has a color. No images, only text.
|
![]() |
![]() |
![]() |
#28 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,726
Karma: 8700123
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
![]() https://www.mobileread.com/forums/sho...67&postcount=5 and: https://www.mobileread.com/forums/sho...54&postcount=8 |
|
![]() |
![]() |
![]() |
#29 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,546
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
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.
|
![]() |
![]() |
![]() |
#30 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
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: 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: 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:
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:
Quote:
https://www.mobileread.com/forums/sho...d.php?t=233131 Last edited by Tex2002ans; 04-08-2014 at 05:55 PM. |
|||
![]() |
![]() |
![]() |
Tags |
css, epub, font-size, headings |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem changing font size using font size key | Waylander | Conversion | 0 | 10-02-2013 03:30 PM |
Determine font and font size on incoming epub? | peaceridge | Calibre | 4 | 01-30-2012 03:35 PM |
PRS-300 Med font size too big, but small font size too small | eli2k | Sony Reader | 4 | 05-28-2010 09:47 AM |
Different font for headings | bremler | ePub | 4 | 03-11-2010 06:03 AM |