Book Image

Inkscape 0.48 Illustrator's Cookbook

Book Image

Inkscape 0.48 Illustrator's Cookbook

Overview of this book

Inkscape is an open source vector graphics editor with an intuitive user interface that has enough depth to make quality graphic designs with an attractive layout comparable to what you would make using Illustrator or CorelDraw. But choosing the right tool and the best approach to creating the desired effect can be challenging. Inkscape 0.48 Illustrator's Cookbook makes it super-easy for you to make your own vector-based graphics with the powerful Inkscape editor. Inkscape 0.48 Illustrator's Cookbook provides you with the latest recipes to quickly create scalable vector graphics. Recipes in this book teach you about some of the most useful time-saving features in Inkscape accompanied by a list of keyboard shortcuts that you can easily memorize. In addition to covering use of Inkscape tools and their advanced features, examples from the recipes uncover solutions to common graphics problems. The book starts off with familiarizing you with the tools and techniques in Inkscape that you can use to draw 2D shapes, calligraphic shapes, and 3D boxes easily. It then guides you through the most common color-changing steps performed in Inkscape along with some convenient procedures that can save your time when dealing with colors. It explains drawing using linear and radial gradients, which are irreplaceable, usage of clones to create interesting effects in illustrations, and live-path effects that can help you speed up constructing a shape and make the process more natural. You will learn how to make those tweaks on some of the ready-made filters, and in the final recipe we will create a filter from scratch. This practical book also contains recipes showing how to use Inkscape as a raster editor and how to achieve photo-realistic effects in Inkscape. For each important technique and skill, you'll see some simple recipes, then some more advanced recipes followed by an explanation of how Inkscape works to produce the desired effects in your illustrations. By the end of this book you will be confident enough to create your own vector-based graphics with Inkscape.
Table of Contents (18 chapters)
Inkscape 0.48 Illustrator's Cookbook
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface

Preface

Inkscape is frequently mentioned, and lauded, as one of the best examples of open-source software available today. It is a mature, feature-full and flexible product, thanks to a very dedicated developer community. The latest version, 0.48, adds new tools, such as the Airbrush (which many have longed for), and advanced path editing, among many other additions and improvements.

Vector graphics are becoming increasingly important at the turn of this decade, now that the World Wide Web has begun its transition towards HTML5 technologies. All the major Web browsers are striving to conform to the SVG specification, as the attractiveness of scalable, high definition, three-dimensional, and Flash-free Web sites and games is irresistible. The future is bright, but the true outcome will ultimately depend on one decisive factor: user and developer adoption.

This is why a non-proprietary authoring tool such as Inkscape is important: it is a professional package for creating quality vector graphics which is freely available for everybody to use. Whether you wish to create Web site mockups, wallpapers to share with an Internet community, high-quality advertisements for the newspaper industry, digital art for a gallery exposition, or simply a Happy Birthday for your grandmother, Inkscape is available now and without limitations, to help you achieve your goal.

What this book covers

Chapter 1, Creating and Editing Objects - Familiarize yourself with the user-interface and start drawing simple vector shapes.

Chapter 2, Editing Colors - Learn the basics of coloring and use gradients to their full effect, by replicating an iconic image of a famous movie.

Chapter 3, Speeding Up Your Workflow - Streamline and accelerate development with a set of commonly used techniques, tips and tricks.

Chapter 4, Creating and Editing Clones - Use shape cloning to rapidly create interesting complexity in your drawing.

Chapter 5, Live Path Effects - Create, assemble, and replicate objects programmatically in a variety of scenarios.

Chapter 6, Extensions - Take full advantage of the many extensions available in Inkscape, to inspire and enhance your work.

Chapter 7, SVG Filters - Experiment with SVG filter effects, taking vector graphics to a new level of sophistication, and create your own!

Chapter 8, Putting it All Together - Use your knowledge, skills, and intuition to solve graphical problems in a variety of scenarios.

Chapter 9, Raster and Almost Raster - Befriend bitmaps and use them in your vector drawings, by importing, converting (tracing), and exporting.

Chapter 10, Web Graphics Preparation - Learn to design and prepare graphics for the modern web, from small but detailed widgets to the complete layout of webpage mockup.

Chapter 11, SVG in Websites - Use vector graphics in your websites, games, and presentations, with the help of new extensions available in version 0.48.

Chapter 12, Draw Freely - Complete your knowledge on SVG and Inkscape, by learning about document metadata, compiling the software from source, and programming your own extensions using Python!

What you need for this book

You will, of course, need a working installation of Inkscape 0.48, or a more recent version if available. You can download an installer for your operating system from the official website:

http://inkscape.org/download

You will also need a programmers text-editor, perhaps a little more advanced than a vanilla notepad. Consider using TextEdit (Mac), GEdit (GNOME), KWrite (KDE), or Notepad++ (Windows). This last editor can be downloaded for free at:

http://notepad-plus-plus.org

Finally, if you are interested in developing extensions for Inkscape, you will need to install the Python programming library and tools in order to complete the relative recipes in this book. You can download the necessary software from the official Python web portal:

http://www.python.org

Who this book is for

The first chapters of this book are aimed at the beginner with no previous experience of vector graphics design software packages. We will provide the fundamental concepts, an overview of the user interface, and start drawing straight away. No artistic talent is needed, just a bit of curiosity. The intermediate user will find these initial recipes useful in improving his or her competence in the use of the basic tools and workflows. The goal is to bring the reader to a level of expertise adequate for tackling the rest of the material in the book.

The more expert users will appreciate the later chapters, where we will illustrate advanced topics and demonstrate techniques for producing professional quality art, for use in web design, game development, and many other realms.

Whether you are a beginner or a battle-hardened veteran, a casual doodler or an academic artist, we hope you will enjoy the recipes in this book and find inspiration for your future works of art.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: " License information is also inserted under svg:metadata element."

A block of code is set as follows:

r=int(round(max(r*FACTOR,0)))
g=int(round(max(g*FACTOR,0)))
b=int(round(max(b*FACTOR,0)))
return '%02x%02x%02x' % (r,g,b)

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

r=int(round(max(r*FACTOR,0)))
g=int(round(max(g*FACTOR,0)))
b=int(round(max(b*FACTOR,0)))
return '%02x%02x%02x' % (r,g,b)

Any command-line input or output is written as follows:

$ inkscape --usage
Usage: inkscape [-VzgDCjtTXYWHSx?] [-V|--version] [-z|--without-gui]
[-g|--with-gui] [-f|--file=FILENAME] [-p|--print=FILENAME]
[-e|--export-png=FILENAME] [-d|--export-dpi=DPI]

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: " The information we entered into the Document Metadata dialog is inserted into SVG code."

Note

Warnings or important notes appear in a box like this.

Note

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book — what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to , and mention the book title via the subject of your message.

If there is a book that you need and would like to see us publish, please send us a note in the SUGGEST A TITLE form on www.packtpub.com or e-mail .

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books — maybe a mistake in the text or the code — we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/support, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.