{"id":3458,"date":"2017-12-29T18:35:28","date_gmt":"2017-12-29T18:35:28","guid":{"rendered":"https:\/\/davidgerard.co.uk\/blockchain\/?p=3458"},"modified":"2017-12-29T18:50:58","modified_gmt":"2017-12-29T18:50:58","slug":"print-versions-make-your-line-art-pngs-non-transparent","status":"publish","type":"post","link":"https:\/\/davidgerard.co.uk\/blockchain\/2017\/12\/29\/print-versions-make-your-line-art-pngs-non-transparent\/","title":{"rendered":"Self-published paperbacks: make your line art PNGs non-transparent!"},"content":{"rendered":"<p><em>(Writing up my self-publishing process \u2014 I won&#8217;t have had <\/em>new<em> problems, but nobody will have had my <\/em>precise<em> problems. I realised I should Just Write, then index it all later. So let&#8217;s start deep in the details.)<\/em><\/p>\n<hr \/>\n<p>To publish a paperback book through Amazon&#8217;s <a href=\"https:\/\/www.createspace.com\/\">CreateSpace<\/a> or <a href=\"https:\/\/kdp.amazon.com\/\">Kindle Direct Publishing<\/a> services, you can submit either a Microsoft Word document\u00a0\u2014 which the system will attempt to auto-format in some sensible manner\u00a0\u2014 or a print-ready PDF of the interior.<\/p>\n<p>(I used CreateSpace. KDP&#8217;s <a href=\"https:\/\/kdp.amazon.com\/en_US\/help\/topic\/G202059560\">print service<\/a> is very beta &#8230; I tried to use it, but <em>strongly<\/em> disrecommend it \u2014 it&#8217;s not good yet, and doesn&#8217;t do author proof copies.)<\/p>\n<p>A book is not just a slab of text, but a designed object\u00a0\u2014 you need to make it look nice. If you want something that looks professional, you&#8217;re going to do a PDF, with everything laid out just so.<\/p>\n<p>CreateSpace and Kindle have a previewer, to show how your file will be rendered by their systems. So I prepared a nice print layout in LibreOffice, made a PDF with &#8220;Export as PDF&#8221; \u2014 then concatenated three PDFs with <a href=\"https:\/\/warwick.ac.uk\/fac\/sci\/statistics\/staff\/academic-research\/firth\/software\/pdfjam\/\">pdfjam<\/a>, &#8216;cos I was being fussy and exacting \u2014 then uploaded it to CreateSpace, previewed it, and &#8230; well:<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/davidgerard.co.uk\/blockchain\/2017\/12\/29\/print-versions-make-your-line-art-pngs-non-transparent\/tulip-createspace-preview-screenshot\/\" rel=\"attachment wp-att-3459\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3459\" src=\"https:\/\/davidgerard.co.uk\/blockchain\/wp-content\/uploads\/2017\/12\/tulip-createspace-preview-screenshot.png\" alt=\"\" width=\"576\" height=\"552\" srcset=\"https:\/\/davidgerard.co.uk\/blockchain\/wp-content\/uploads\/2017\/12\/tulip-createspace-preview-screenshot.png 576w, https:\/\/davidgerard.co.uk\/blockchain\/wp-content\/uploads\/2017\/12\/tulip-createspace-preview-screenshot-300x288.png 300w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Here&#8217;s how the tulip looked in the original PDF (<a href=\"https:\/\/davidgerard.co.uk\/lj\/print%20edition%20july%202017%20146-147.pdf\">pages 146\u2013147<\/a>) and in Kindle&#8217;s previewer:<\/p>\n<p><a href=\"https:\/\/davidgerard.co.uk\/blockchain\/2017\/12\/29\/print-versions-make-your-line-art-pngs-non-transparent\/tulip-evince-kdp-preview-screenshot\/\" rel=\"attachment wp-att-3460\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3460\" src=\"https:\/\/davidgerard.co.uk\/blockchain\/wp-content\/uploads\/2017\/12\/tulip-evince-kdp-preview-screenshot.png\" alt=\"\" width=\"334\" height=\"212\" srcset=\"https:\/\/davidgerard.co.uk\/blockchain\/wp-content\/uploads\/2017\/12\/tulip-evince-kdp-preview-screenshot.png 334w, https:\/\/davidgerard.co.uk\/blockchain\/wp-content\/uploads\/2017\/12\/tulip-evince-kdp-preview-screenshot-300x190.png 300w\" sizes=\"auto, (max-width: 334px) 100vw, 334px\" \/><\/a><\/p>\n<p>This was somewhat disconcerting. Fortunately, the CreateSpace user forums are very helpful, with <a href=\"https:\/\/forums.createspace.com\/en\/community\/thread\/131415?tstart=0\">a post<\/a> from someone with similar apparent problems.<\/p>\n<p>The root cause: transparency in <a href=\"https:\/\/en.wikipedia.org\/wiki\/Portable_Network_Graphics\">PNG images<\/a>.<\/p>\n<p>PNGs are lossless \u2014 JPEGs are fine for photos, but you risk getting JPEG artifacts if you use them for line art. However, PNGs allow transparency.<\/p>\n<p>When you include images in your LibreOffice document, LO doesn&#8217;t mess with them\u00a0\u2014 it tries to include them as-is, unaltered. The PNGs had transparent bits \u2014 and the CreateSpace previewer didn&#8217;t handle it well.<\/p>\n<p>The images would almost certainly have printed cleanly! But problems should always be fixed as early in the production chain as possible \u2014 and you can&#8217;t be sure some other system won&#8217;t choke on it. The rule is: <strong>get the source file right<\/strong>. So:<\/p>\n<ol>\n<li>If you have black-and-white line art, make your PNGs 1 bit per pixel with no transparency, <em>before<\/em> you include them in your document.<\/li>\n<li>Make them 300dpi if you can\u00a0\u2014 more is a waste, and may get dithered or screened.<\/li>\n<li>When you &#8220;Export as PDF&#8221; from LibreOffice, <a href=\"https:\/\/help.libreoffice.org\/Common\/Export_as_PDF#General\">export as &#8220;PDF\/A&#8221;<\/a>.<\/li>\n<\/ol>\n<p>CreateSpace&#8217;s checker still found some transparency in the PDF, but the print version came out fine.<\/p>\n<br><br><div align=\"center\"><p><a href=\"https:\/\/www.patreon.com\/bePatron?u=8420236\"><img src=\"https:\/\/davidgerard.co.uk\/blockchain\/wp-content\/uploads\/2021\/10\/become_a_patron_button.svg\" alt=\"Become a Patron!\" title=\"Become a Patron!\" width=217 height=51><\/a><br><p style=\"align:center;\" class=\"patreon-badge\"><i>Your subscriptions keep this site going. <a href=\"https:\/\/www.patreon.com\/bePatron?u=8420236\">Sign up today!<\/a><\/i><\/p><\/div>","protected":false},"excerpt":{"rendered":"<p>Adventures in self-publishing \u2014 the little details that go into a professional-quality final product. Following the rule of &#8220;just write,&#8221; let&#8217;s start deep in the details &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[202,321,322,51],"class_list":["post-3458","post","type-post","status-publish","format-standard","hentry","category-uncategorised","tag-createspace","tag-kindle","tag-libreoffice","tag-self-publishing"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/davidgerard.co.uk\/blockchain\/wp-json\/wp\/v2\/posts\/3458","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davidgerard.co.uk\/blockchain\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davidgerard.co.uk\/blockchain\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davidgerard.co.uk\/blockchain\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davidgerard.co.uk\/blockchain\/wp-json\/wp\/v2\/comments?post=3458"}],"version-history":[{"count":25,"href":"https:\/\/davidgerard.co.uk\/blockchain\/wp-json\/wp\/v2\/posts\/3458\/revisions"}],"predecessor-version":[{"id":3485,"href":"https:\/\/davidgerard.co.uk\/blockchain\/wp-json\/wp\/v2\/posts\/3458\/revisions\/3485"}],"wp:attachment":[{"href":"https:\/\/davidgerard.co.uk\/blockchain\/wp-json\/wp\/v2\/media?parent=3458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davidgerard.co.uk\/blockchain\/wp-json\/wp\/v2\/categories?post=3458"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davidgerard.co.uk\/blockchain\/wp-json\/wp\/v2\/tags?post=3458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}