04-15-2016, 11:34 PM | #31 |
Enthusiast
Posts: 29
Karma: 10
Join Date: Oct 2015
Device: kobo
|
Thanks. I haven't yet worried about cleaning up and compressing the images, as that's an easy step that I can leave till last. Unfortunately, the images were originally in a colour PDF scan from archive.org (OpenLibrary section) so all I've done to them so far is run them through pixlr to get rid of the yellow background.
I'm not sure about the copyright on books from archive.org, but as it's only for personal use, I'm not too worried. There are a few public domain books I intend to work on, but I decided to learn on this book, as it has good examples of different layout problems I'll run into later on. As for tables, sidebars, and boxes, doesn't epub3 have the ability to render them from a few lines of code, rather than adding them in as pictures? and my main hate: Why does Calibre ALWAYS make the css so messy? Last edited by bentleymaniac; 04-15-2016 at 11:47 PM. |
04-15-2016, 11:41 PM | #32 |
Enthusiast
Posts: 29
Karma: 10
Join Date: Oct 2015
Device: kobo
|
yeah, I know this post is but why does EVERY forum have to create their own different commands for markup/formatting (i.e. bold, italic, code, etc)?
They should just stick to html or inline css. It would make <i>so</i> (sorry, [ITALIC]so[/ITALIC] - whoops, still wrong so) much more sense. |
04-16-2016, 12:12 AM | #33 | ||||
Wizard
Posts: 2,304
Karma: 12587727
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
https://www.mobileread.com/forums/faq...ing_guidelines Then the Archive.org link might give more detailed info on that specific copy of the book. Quote:
Here was the latest topic I remember specifically on HTML Tables (also, I went into some JPG/PNG examples as well.... I absolutely hate JPG in all of my use-cases. ): https://www.mobileread.com/forums/sho...d.php?t=223062 I also wrote extensively about digitizing books back here (Post #8 might be most relevant, although I think the entire thread is a good read): https://www.mobileread.com/forums/sho...d.php?t=234146 and here (this discussed SVG Tables alongside all the other Table discussion): https://www.mobileread.com/forums/sho...d.php?t=240980 Side Bars... I don't deal with those too often, although way back in 2013 I handled them along them with a "grey box" along these lines: https://www.mobileread.com/forums/sho...25&postcount=9 Having little floating boxes might work ok on a larger device (tablet or a sheet of paper), but on a smaller device like a cellphone, there is just not enough room for floats. Quote:
I typically strip everything down and use tools to start from the bare bones formatting (Text + Italics + Bold), and work my way up from there (adding in blockquotes, fixing footnote, [...]). Toxaris's "ePUB Tools" are a fantastic tool for doing that: https://www.mobileread.com/forums/sho...d.php?t=213372 Quote:
If you push the buttons a few times, I believe it is pretty easy to figure out different forum markup. Last edited by Tex2002ans; 04-16-2016 at 12:16 AM. |
||||
04-16-2016, 12:42 AM | #34 | |
Enthusiast
Posts: 29
Karma: 10
Join Date: Oct 2015
Device: kobo
|
Quote:
|
|
04-16-2016, 01:04 AM | #35 |
Enthusiast
Posts: 29
Karma: 10
Join Date: Oct 2015
Device: kobo
|
BTW, is there an easy way to convert to svg? I tried Inkscape, but the output files are actually bigger than the png's. AND look cheesy.
or do you recommend using pngs and adding inline svg? |
04-16-2016, 02:42 AM | #36 |
Fanatic
Posts: 556
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
|
SVG is XML. So it is hard "convert" a bitmap to a SVG.
|
04-16-2016, 02:55 AM | #37 |
Enthusiast
Posts: 29
Karma: 10
Join Date: Oct 2015
Device: kobo
|
It's just when I try to use inline svg, ADE displays the pictures in a peculiar, almost hatched/sketched, way.
But I might try that if I can't get the css to work. Does inline svg allow you to "pinch and zoom" on the images? The css method seems to prevent it. |
04-16-2016, 06:49 AM | #38 | |
mostly an observer
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
Quote:
|
|
04-16-2016, 07:01 AM | #39 | |||
Wizard
Posts: 2,304
Karma: 12587727
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
GrannyGrump wrote a Text to SVG tutorial here:
https://www.mobileread.com/forums/sho...d.php?t=238029 fbrzvnrnd is correct. It is very similar like going from lossy (JPG) -> lossless (PNG/GIF) images. Once you have crossed that threshold to a bitmap image... it is really hard/impossible to go back to a vector. Quote:
On Looking Cheesy: Years ago I got sick of running across these tiny ant-sized horrible JPGs of formulas in the books. I wrote a "Formulas to PNG" Tutorial: https://www.mobileread.com/forums/sho...d.php?t=223254 Here is the Before/After example posted: Before: https://www.mobileread.com/forums/att...8&d=1380001474 After: https://www.mobileread.com/forums/att...7&d=1380001474 The Before was zoomed in on a PDF scan, and the After was me recreating the formulas digitally. If you took Before image, and followed GrannyGrump's method (converting a bitmap to SVG paths)... the Before formula would still look like crap (and nowhere near as crisp as my After formula). Garbage In, Garbage Out... Bitmaps to Paths: I was looking through the older topics (because this topic has definitely been brought up many times before), and I came across this one. Psymon was trying to generate sheet music: https://www.mobileread.com/forums/sho...11#post2926711 You can see the difference between a "Traced" SVG created from a bitmap image: https://www.mobileread.com/forums/att...1&d=1411067938 and a purely digital vector solution: https://www.mobileread.com/forums/att...2&d=1411067938 On File Size: Depends on the image. SVGs are sometimes much larger than their equivalent (small resolution) bitmaps. The advantage of a vector image though is that it stays the same exact file size and perfectly crisp no matter what the output size is. For example, if you see this image: https://commons.wikimedia.org/wiki/F...map_VS_SVG.svg SVG: 3 KB 320x204 PNG: 22 KB 640x409 PNG: 49 KB 800x511 PNG: 59 KB 1024x654 PNG: 85 KB 1280x818 PNG: 100 KB No matter which resolution you output the SVG, it will always be 3 KB. What if you wanted to generate that image for a 4K monitor? 4096x2567 PNG: 446 KB while the SVG would always be 3 KB. If you took the 650x409 PNG and resized it to 4K, it would look horribly fuzzy/pixelated. In your case, just stick with the cleaned up PNG. Quote:
ADE displays SVGs fine. Quote:
A lot of the devices don't play nicely with SVGs (like changing font color, and to my knowledge none of them allow you to "pinch and zoom" the SVG). They do look nice and crisp at any size though. Last edited by Tex2002ans; 04-16-2016 at 07:28 AM. |
|||
04-16-2016, 08:29 AM | #40 |
Fanatic
Posts: 556
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
|
I suggest to use SVG when you need it. SVG is XML: you can draw rect, circle, path... everything using tags, like <rect>, <circle>, <path>. You can also create hypertext inside SVG. As TEX202ans said, the support has problems, so you have to test your SVG to know if it works fine. Btw, SVG have got a lot of things in its chest, like animations, viewBox, viewport and more... but most of this things do not work in ebook or are "deprecated" by IDPF.
|
04-16-2016, 09:13 AM | #41 | |
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Regarding the size of svg images, don't forget that svg images are "text" images, so when that images are compressed (when the epub is built, the svg will be compressed), generally are very tiny in size. |
|
04-16-2016, 12:20 PM | #42 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
I use SVG as much as possible for equations/formulas. While exporting to ePUB from Word with my tools you can choose between PNG (default) or SVG (preferred) for equations. It is also possible to export equations as MathML from Word for if you want to use equations in ePUB3.
|
Tags |
epub 3, help needed, sigil |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Images now showing in ePub after editing in Sigil or Calibre | postkast2929 | ePub | 44 | 04-21-2016 12:45 PM |
Can I use the code Sigil uses for Covers for other images? | rosshalde | Sigil | 4 | 12-23-2014 12:00 PM |
Copying Sigil Images Folder | EditorOne | Sigil | 5 | 06-08-2013 09:50 PM |
Images with Sigil | Gerlyn | ePub | 2 | 02-08-2012 02:05 PM |
Alreader not showing images after editing ePUB with Sigil | cerramadre | Sigil | 27 | 09-02-2011 11:24 PM |