Freebsd Laptop Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Wednesday, 13 March 2013

Use Sigil to insert SVG images into an EPUB

Posted on 03:00 by Unknown
Category: Techwriter

You can actually use SVG images for your ebooks in EPUB format. They're great for covers and small illustrations all throughout your ebook. SVGs, which are based on vectors, are significantly smaller than JPEGs or PNGs. Since the EPUB format is nothing more than packaged XHTMLs, inserting SVGs aren't that difficult.

In this example, we'll insert a CorelDraw X3 vector layout as cover using Sigil for a fictional book entitled "Music and Linux" (an obvious reference to the 2007 Hugh Grant comedy Music and Lyrics).  The sample cover is composed of 100% vectors without any bitmaps (the logos for the Linux distributions are redrawn vectors). As outlined in the previous tutorial regarding CorelDraw and SVG, export the layout as SVG. You can, of course, use excellent applications like Adobe Illustrator or open source Inkscape to design your vector graphic.




Test the SVG by opening the file in an updated browser such as Mozilla Firefox or Google Chrome. Make sure that the illustration is complete and no parts are missing. On my first try at drawing this mock cover, the Linux Mint logo had missing parts in Google Chrome so I had to revise the vector drawing a bit. Although the sample cover in this tutorial is a bit busy and complex, it is recommended to keep the cover simple mostly because Sigil might crash when a complex SVG is inserted into a page. Once you're satisfied with your SVG cover and it displays properly on a browser you can now insert the code using Sigil.

To add SVG images to your EPUB using Sigil:

1. Run Sigil and follow the instructions in the Sigil Guide by in creating and tagging a cover.html for your book. This tutorial makes use of Sigil 0.5.3 though the current version is currently at 0.7.1.

2. Click View then Code View or press F11.

3. Open the SVG file using a text editor like Notepad++ or Bluefish. As an alternative, open the SVG file using the aforementioned browsers, right-click, and click View Page Source.

4. For this example, we'll copy the markup text just below the text for Creator: CorelDraw. Make sure that you select all the text included within the svg tag.

5. In the cover.html page in Sigil, paste the SVG markup text where you want the cover to appear. You can modify the position of the SVG image just like any web based object using CSS later. Click File then Save.




If your SVG drawing is extremely complex (like my "Music and Linux" cover), do not click View then Book View on the cover.html from here on as Sigil will crash. Use an EPUB viewer such as Adobe Digital Editions or the EPUB Viewer Extension for Mozilla Firefox to preview the cover. You can safely edit other pages and sections of your ebook using Sigil but avoid opening the cover.html in book view.




If it's small SVG image like the simple MP3 SVG technical drawing below, you can preview the ebook cover or page in Book View without any problems.




The resulting EPUB file for the "Music and Linux" and small MP3 illustration displayed successfully in the Mozila Firefox EPUB Reader plugin, Adobe Digital Editions, SONY PRS-600, and Apple iBooks for iPad and iPhone. However, the cross-platform Calibre was not able to display the "Music and Linux" cover completely (the complex Linux Mint logo and the book title were missing) but was able to display the simple MP3 technical drawing SVG without issues.




As mentioned previously, you can add SVG images as illustrations for your sci-fi short story or add attractive embellishments to your graphic novel.

Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Drawing a Rounded Triangle in CorelDraw
    Category: Tech Writer If you need to draw a safety icon such as those found in user manuals or any icon which requires a rounde...
  • Linux on Film: The Amazing Spider-Man (2012) Part 1
    Ok, for dedicated fans of the latest Spider-Man movie (me included), Sony made use of this brilliant flick to advertise their Sony ...
  • Tech Flashback: The Lethal Weapon series 1987 - 1998 Part 3
    Category: Tech Today Continued from Tech Flashback: The Lethal Weapon series 1987 - 1998 Part 2 In this series of articles, we continue our ...
  • CorelDRAW X5: Adding Barcodes and QR Codes to Business cards Part 2
    QR Codes and QR Code Services Due to the popularity of QR Apps that can be installed on smartphones and iOS devices, QR codes are also becom...
  • Linux on Film: Antitrust (2001)
    *All screencaps from Antitrust (2001 ) Long-time Linux users are familiar with Antitrust (2001), which was strongly adverti...
  • CorelDraw Basics: Exporting to SVG for HTML5 web pages
    Category: Techwriter There are advantages to using SVG over the more popular PNG or JPEG when working with technical ...
  • Sony RAW (.ARW) support on openSUSE KDE
    Category: Linux Some advanced digital cameras and ILCs supports the RAW format, which many serious photographers prefer over JP...
  • Knoppix LiveUSB Basics: Bluetooth and Blueman Part 1
    Although Bluetooth has never been as reliable as a wired or RF connection, adding Bluetooth to an old machine is a simple way ...
  • Linux on Film: The Amazing Spider-Man (2012) Part 2
    Piezoelectric technology and microcontroller From a plot perspective, Peter probably made use of existing equipment like th...
  • Microsoft Product Placement in Arrow Season One Part 1
    Note: Unsolicited But Offered normally features Linux on film but in celebration of the ongoing season 2 of Arrow (w...

Categories

  • Linux
  • Linux - Mandriva
  • Linux - openSUSE
  • Tech Today
  • Techwriter
  • Travel Logs

Blog Archive

  • ▼  2013 (229)
    • ►  November (19)
    • ►  October (21)
    • ►  September (20)
    • ►  August (23)
    • ►  July (23)
    • ►  June (21)
    • ►  May (24)
    • ►  April (22)
    • ▼  March (19)
      • QuickFix: Basic Troubleshooting Steps for Non-bran...
      • Digital Taipei Part 2
      • Digital Taipei Part 1
      • Using YaST2 Partitioner to fix USB Flash drives Pa...
      • Using YaST2 Partitioner to fix USB Flash drives Pa...
      • What is the openSUSE 12.3 Rescue CD?
      • Linux (Probably) on Film: Captain Power and the So...
      • Linux on Film: Skyfall
      • Toshiba NB520 HCL in openSUSE Wiki Updated
      • Review: Toshiba NB520 Netbook featuring openSUSE 1...
      • Flirtations with FreeBSD 9.1
      • A Brief Review of WD TV Live Streaming Media Playe...
      • Use Sigil to insert SVG images into an EPUB
      • Why I Bought a New Netbook
      • Ubuntu System Used as Online Gambling Station in a...
      • 5 Reasons Why You Should Archive Your CDs/DVDRs us...
      • QuickFix: Rip VCDs using K3b
      • Linux Overseas: Shanghai Pudong Airport and BSA Tw...
      • Asian Movies, Subtitles, and Linux
    • ►  February (16)
    • ►  January (21)
  • ►  2012 (261)
    • ►  December (28)
    • ►  November (22)
    • ►  October (28)
    • ►  September (20)
    • ►  August (28)
    • ►  July (23)
    • ►  June (21)
    • ►  May (15)
    • ►  April (26)
    • ►  March (9)
    • ►  February (11)
    • ►  January (30)
  • ►  2011 (10)
    • ►  December (10)
Powered by Blogger.

About Me

Unknown
View my complete profile