This chapter is a collection of tips and tricks. It is based on working every day on real-life design projects with Inkscape. These are tricks that did not fit into any of the projects we have presented but are crucial if you want to become an Inkscape power user. These methods can help you become more effective and resilient and hopefully answer questions that you still have after reading this book.
Also, these methods are mentioned as alternatives in other parts of this book, so if you are here looking for those tricks, please read on!
In this chapter, we’re going to cover the following main topics:
It is almost a cliché to state this, but the old saying is true: practice makes perfect. This is the first pro tip for you as a fellow Inkscape user.
You first have to understand the basic tools of Inkscape and use them regularly before getting into clones, extensions, filters, and other tricks. You can only utilize these properly if you know your tools. Practice with the Inkscape tools and learn the fundamentals of vector graphics. Learn the basics before overwhelming yourself with the rest.
So, what are those basic tools and methods that are worth knowing and practicing?
Here is a very short list of what you should know when using Inkscape:
These were the basics, and after that, you can move on to more complex tools and methods. If there is something you are not familiar with from the preceding list, take your time, get to know that part, and practice. As you know, this book is about specific projects and not introducing each tool to the user one by one.
We started with simple projects and worked our way toward the more complex ones. The goal is not to regulate the way you learn. The goal is to help you better understand vector graphics.
Until now, all the previous chapters shared examples of real-life projects. These projects were all about building the basic tools of Inkscape into a logical workflow to create a logo, an icon set, or a website design.
Knowing the basics is important, but you still need to look further. Be open to learning new tricks and looking into new solutions to problems. Only this will make your work of higher quality and more efficient.
In this chapter, there will be no step-by-step projects to follow, just tips and very short examples of using some of the less commonly used tools in Inkscape and using Inkscape in uncommon ways.
After practicing the basics, you will work faster and will be able to create original work in Inkscape. But a lot of times you need to be faster, or the work is more complex, and you start to look for semi-automatic solutions. One of the best tools that can help you in these situations is Live Path Effects (LPEs).
LPEs are effects that you can apply to any selected path. Whenever the original path is modified, the effects change with the path in real time – hence the name.
LPEs can make your work faster and easier, and they are a lot of fun to use. My suggestion is to play and experiment with LPEs and find the ones that work for you. You will find different effects to be useful for different projects.
To bend a shape in Inkscape manually, you need to change the path node by node with the Node tool. It is not an easy task; you have to select and move the nodes around and have a good idea about what your end goal is.
This is where the Bend effect can come into the picture, helping you to stretch and bend shapes with ease. It is a great path effect to try first since it is very easy to use and understand.
Let’s give it a try now:
Figure 8.1 – The Path Effects tab
This effect can make vector graphics even more versatile. Draw a character and easily bend its leg, distort many leaves of a tree to seem more unique, or create your own crazy text effects.
The most important thing is: LPEs are non-destructive. Using them for editing does not modify the path permanently. You can remove them with the minus icon as easily as you added them to the path. The original path will always be intact.
Take the clouds in Figure 8.2 for example; remove the path effect, and all of the paths will pop back to the original shape.
Figure 8.2 – The original cloud path and more versions of it with the Bend effect
However, if you want to make your changes permanent without applying LPE, you can do that too.
Just select the shape and turn it into a path by selecting Path | Object to Path, or pressing Shift + Ctrl + C. What this does is apply the changes you created to the shape and turn it into a new path. The original path will be lost, but the new one will be there without an active path effect.
What do you gain by using this method? A simple path might use fewer resources without active path effects applied, thus making Inkscape more stable when working with your file. Also, the changes will be there even if the file is opened in another vector editor, and they will look the same as intended.
An important tip about LPEs
Path effects are great, but when applied to complex shapes with hundreds of nodes (or groups with several objects) they can use a lot of resources. Save often to avoid losing your work if Inkscape crashes. If that happens, check out the section in this chapter titled What to do if Inkscape crashes.
Although LPEs are path effects, you can apply them to groups of objects as well! This means you can bend, distort, or modify a group of objects as one with a path effect, even if the elements in the group are not all paths! You can try this now with the Bend effect, or with the Perspective effect next.
LPEs are very effective and can really help your work. Our second example, the Perspective path effect, can also spare a lot of headaches. It is much easier to draw something in frontal view and then modify it into perspective than drawing it straight on without a reference.
This path effect is simply great for drawing houses and cityscape backgrounds or applying illustrations to surfaces that are not perfectly facing the view.
Since LPEs work on groups, too, let’s try the Perspective path effect on a group first. You might create a group of a few objects to try now or use anything you have created with this book so far: an icon, the logo, or any illustration.
Note
If you are through Chapter 4, Create Detailed Illustrations with Inkscape, and looking for an alternative solution to fit the image on the laptop screen, here it is!
If you want to try it on something real, try it with the complex illustration from Chapter 4, Create Detailed Illustrations with Inkscape! This is the example we will use now.
Figure 8.3 – The Perspective path effect applied to the group to create a screen
That’s it, it is easy! Apply the Perspective path effect and set the corners. If you need to be very precise in a future project, you might set the X and Y coordinates of the four handles that define the Perspective effect.
The Bend effect and the Perspective/Envelope effect are just two of the useful path effects that you might utilize in Inkscape. There are more LPEs that we will not mention now since this book is not about trying all the tools. You have to do that yourself; use them and experiment with all the different effects.
There are many more, but here are a few I use regularly:
In summary, LPEs are fun and useful. Check them out and try using them in your Inkscape projects. Find your favorites and use those in your daily workflow.
My list of favorites is always changing according to the project I am currently working on. My favorite LPE is always the one that can help me be creative in the fastest and most simple way possible.
In this section, you learned about a few useful LPEs and how to use them. In the next section, we will focus on the XML-based tricks you can use to work even faster in Inkscape.
This book is all about design projects and creating vector graphics in Inkscape, but sometimes you can do a bit more and use the SVG format to your advantage! SVG is an open standard format, which means you can look into it and, with a bit of work, understand it.
It uses the XML format to describe vector graphics, so you can modify SVG files even with a simple text editor. Don’t be alarmed; the goal is not to build SVG graphics from scratch via XML! That would be counterproductive; that is still the job of Inkscape.
In this part of the chapter, I simply want to share a few tricks where the XML editing capabilities of Inkscape can be at your service.
Imagine working with a file with hundreds of different objects and shapes, such as small leaves on a tree illustration or multiple buttons and icons in a complex UI design. And then, you need to change the color of every other object in the file. Not all of them, but enough of them that selecting them by hand would be a real pain.
This is where the simple Find/Replace tab comes to the rescue! It may sound trivial, but this is an overlooked part of Inkscape with great potential.
Let’s give it a try now. The icons you created during Chapter 3, Modular Icon Set Design with the Power of Vector, will be great test subjects. Although there are only nine of them, you will be able to use the same method later for more objects.
For the sake of practice, let’s say that you need to change the turquoise color of the icons to orange. You could select all the turquoise parts manually one by one, then enter the groups they are part of and recolor them.
Some of them are strokes, so they need to be colored differently. But instead of this, you can be smart and use the Find/Replace method:
Figure 8.4 – The elements selected using the Find/Replace tab
This simple trick can save a lot of time and work on recoloring multiple elements. The Find/Replace tab adds a great deal to the versatility of vector graphics with Inkscape.
As mentioned previously, SVG files are built with XML, which means that they are readable for both programs and humans. There is no complex encoding but an easy-to-follow structure of nodes, IDs, and attributes.
You can also use this open structure to your advantage to organize your documents better.
Get any object, path, or group in Inkscape. Right-click the object and select Object Properties. Or press Shift + Ctrl + O and then select the object.
This will open the Object Properties tab, where you can set the ID for the selected object. Every object has to have a unique ID in the document; by default, Inkscape assigns one to them.
Just write the ID to your object or group, that is, icon001, btn002, character1_head, and so on. Finally, click Set, and the object is properly identified. Check out Figure 8.5 for example settings.
Figure 8.5 – Setting the ID of a single path in the Object Properties tab
So, how can this help you? Do you need to do this for every single object? Of course not, but changing the automatic IDs set by the program makes finding named objects easier. If you want to use the Find/Replace tab, you can also check the box next to the ID field, so Inkscape will then select all the icons or anything with a specific ID match.
If you are creating game art or working on a complex UI design or illustrations, naming parts of your vector graphic is a useful habit to pick up.
Giving unique IDs to your groups is also helpful when you need to select Batch export multiple images as well. This is not a new feature; even the older versions of Inkscape can export multiple selected objects at once (there is a Batch export checkbox in the Export dialogue in those older versions). There are a few methods for this, and there is a big difference between Inkscape 1.2 and the versions before and one thing in common.
Let’s check them out.
Figure 8.6 – Batch export multiple objects before Inkscape 1.2
Figure 8.7 – Batch export multiple files in Inkscape 1.2
For example, when you are exporting 50 icons at once, these generated names can be a real drawback since you have to check every single icon yourself and name them according to their content so they can be used later.
But if you did set the IDs in Inkscape for each of the objects or groups to be exported, then Inkscape will save those PNG files with the filenames specified as IDs before. To come back to the icon example, if you give your icons an ID as you go (setting each group a unique ID in the Object Properties tab) then Inkscape will assign those IDs as filenames. This will help identify and sort your images and files, later on, sparing you a lot of time in your workflow!
Even if you are not comfortable thinking about the code behind your graphics, please consider using Inkscape as an accessible editor for your SVG file.
Searching for values in the SVG script is very easy in Inkscape and can save a lot of time and effort. Setting IDs can also be an easy and useful method for you, shortening the time of finding, organizing, and exporting your graphical elements.
In this section, we learned about using IDs for searching and exporting vector elements in Inkscape. Both humans and machines can recognize and read your IDs and other properties in an SVG file. They are used by laser cutters, printing setups, or, as shown in the next section, by Inkscape extensions. Indeed, IDs and specific extensions can be one of the solutions for exporting your images in CMYK!
CMYK has been mentioned before in this book, and users tend to talk about it online as well, but what is the issue here? Inkscape is working with SVG, and SVG is created for the web. It means it is natively running in the RGB color space used by screens and not in the CMYK color space for printing.
Although this issue is less and less important since most printers can do the converting for you if you provide the graphics in RGB, CMYK is still needed if you want to have absolute control over the printed colors. Some printers only accept CMYK formats, and specific files such as PDFs.
In Chapter 7, Combine Inkscape and Other (Free) Programs in the Design Workflow, we learned about Scribus, which is open source publishing software. In the Scribus section, we mentioned one solution for the CMYK challenge: save the vector graphics as an SVG in Inkscape and import the SVG graphics into Scribus.
Then, set the color space and color settings there and export your document into any CMYK color mode and format you want. This way, you can easily generate proper vector graphic files ready to be printed.
You could also use another program mentioned in Chapter 7, Combine Inkscape and Other (Free) Programs in the Design Workflow: Krita. You can import the SVG as you did in that chapter and export it as a TIFF in CMYK format. A TIFF is a bitmap image, not a vector, but it uses lossless compression. That makes it perfect for printing.
The previous solutions work very well, but for some, it might be too much effort to use a third-party app every single time they need a CMYK vector document for printing.
This is where Inkporter comes into the picture. Inkporter is an Inkscape extension that can export parts of your SVG document into several formats! This extension came out before Inkscape 1.2, but it still has some advantages compared to that version.
The new multipage support and the Extension tab that was introduced in Inkscape 1.2 are great. But additionally, Inkporter can export multipage PDF documents and JPG and PDF files in CMYK format too!
I mentioned earlier that the IDs would be important later in this chapter. The extension method of Inkporter is ID based. It exports the files and the pages in the PDF booklets based on their IDs with a unique pattern. Let’s give it a try:
Figure 8.8 – The simple settings of Inkporter
ID patterns are only needed now because we are looking for an effective (lazy) solution by exporting all the icons at once. You could set unique IDs without any repeating pattern for each icon, but then you would have to set them manually for each export.
If you want to export PDF booklets, patterns are even more important since the groups with the patterned IDs will be stitched together into one PDF document.
As you can see, the CMYK issue is still present but is solved by third-party apps such as Krita and Scribus and by the smart Inkporter extension. I really hope that a native CMYK solution will be added to Inkscape in future updates, but until then, these are some working methods to jump over the CMYK color barrier.
The next section is a simple way to make your vector life easier: you will learn how to use and create templates for your Inkscape workflow.
If you use Inkscape regularly, after a while, repeating the same tasks over and over again is inevitable. You might create one business card after the other or draw icons of the same size every day. This is why, when you create a new document, Inkscape offers to create it from a template to ease your work. There are a number of default templates, including standard paper sizes, the mentioned business card size, and even templates to create seamless pattern designs.
And apart from these, you can create your own custom templates for tasks that you work with regularly. If you know that one task is repeated frequently, and you know you will keep on repeating it in the future, it might be worth creating a template for it. A template will save you time and energy, and it will become an important part of your workflow in no time.
A template file is very simple to design. It is nothing else, just an Inkscape SVG file that is placed in the Inkscape Template folder. You might create a general template file; for example, if you create the same size horizontal banners for all websites, create a blank SVG with the page size needed. Or you can create a more specific template for a task you create for a particular client over and over again.
Figure 8.9 – The New From Template popup
To practice, you will create a very specific template: you will design an Instagram post template to use for our practice brand, CloudUsers. Instagram is built around images, but brands and influencers like to post text and quotes in an image format to capture the attention of users.
These posts are all the same size, with a background color, some sample text, and minimal branding. If you have used Canva for Instagram posts, Inkscape might be a more creative and unique solution.
Here is how you can create your own Instagram-ready vector templates:
Figure 8.10 – A simple Instagram post template design
Templates are all about reusing and shaping vector elements. Forget recreating the same things again and again. Build your own template library and make custom templates part of your workflow! In this section, you learned to use templates to start your work faster. In the next section, you will learn about dealing with Inkscape crashes like a pro.
This part of the chapter could be written about any graphic design program, or about any program really. Nothing is perfect, accidents happen, and programs crash. And sometimes, you just lose the results of hours of hard work.
Inkscape is an open source program, with different versions able to run on various operating systems. People use Inkscape on Windows, macOS, and GNU/Linux, working on computers with very different capabilities.
Inkscape is constantly developed, and new features mean new design possibilities, but they might also cause bugs. And sometimes things are too much to handle, and Inkscape crashes. In the following sections, you will learn what to do on these rare occasions.
Your first defense against accidental crashes is to prevent them. Here are a few tips to remember every time you work with Inkscape. Most are useful tips for other design programs as well.
The first thing you should always do right after you draw the first shape is to save your work as an Inkscape SVG file in the project directory. And after that, save your work every time you make a major change. Make this a habit; simply press Ctrl + S to quickly save your file. It seems trivial, but I’ve seen too much work being lost because someone was so deep into their design work that they forgot to save it.
If you tend to forget to save, set up Autosave! Go to Edit | Preferences, and from the Input/Output drop-down menu, pick Autosave. Here, you can set up how often you wish your work to be saved. You will not notice this feature running, only when you lose your work and find out that Inkscape indeed saved it a few minutes ago. Such a relief!
Figure 8.11 – Enabling Autosave in Preferences
You cannot overload Inkscape, actually, but you can cause it to collapse when you force it to handle too much, and that can overload your computer’s memory. When too many objects, too many effects, or too many imported bitmap images are starting to slow down your computer, then it is time to save, stop and clean up your document a bit.
Delete the parts and objects that are not needed anymore, link images instead of embedding them whenever possible, and save new versions of your documents after cleaning them up.
This last tip also helps organize your work, since it is easier to handle multiple smaller files than one huge one for each project. This book itself provides a good example of this method: when designing a whole visual identity, including a logo, an icon set, a website, and illustrations for one company.
It is natural that you copy and reuse elements between the different parts of the project. If you kept these elements in one file, it would be huge, slow, and complicated to find your way around, let alone work with it. This is a good reason to keep your content organized in separate files!
Using the aforementioned preventive tips will reduce the risk of crashing and losing your work. Plus, with every new version, Inkscape is getting more and more stable. But it can still happen that you get an error message and the software simply crashes. And in this case, you need to know how you can recover your graphics in Inkscape.
Whenever the program crashes, Inkscape tries to create an emergency file in the same project folder as your original file or in the User folder on your computer. It will add a timestamp to the name of the file to easily identify it and distinguish it from the original. Look for the file and check whether it has the correct vector data in it. If it works and has all the graphics you just thought to be lost, rename it to remove the timestamp – just to make things convenient later – and continue your work.
If you have the Autosave feature enabled, as shown earlier in the Prevention section, then Inkscape creates backup versions of your document automatically. To find these backups, head to Preferences again, and in the Autosave settings check the path to the autosave directory, as shown in Figure 8.11.
Copy the directory location and navigate there, as this is where your backup files are located. Most of the time, they do not have a .svg extension, but you can still open them with Inkscape and save them as normal Inkscape vector files.
Sometimes files are saved, but they simply cannot be opened. This might happen without a crash with any program; files just get corrupted.
If you cannot open an Inkscape SVG file, you might try opening it with another program to check whether it really is corrupted. You can try other vector graphical applications such as Illustrator, but if you have none of them installed, modern browsers can even open and display SVG files. Try opening your file in Chrome and see whether it shows the file is empty or damaged.
If the file displays properly, create a manual save with another filename, and try to open it in Inkscape again. You might lose some Inkscape-specific settings this way (such as losing guides), but you might save the bulk of your design and that is what matters.
When you try to open an Inkscape file that worked before, do so with a different version of Inkscape. Most of the time, installing the newest version of the program solves this issue. If not, try a downgrade, or look for an older version – most versions are still available from the official website.
And if a corrupted file cannot be opened with either method, try to look for autosaves and recover a previous version if possible.
Most importantly, remember to save often, enable Autosave, and organize your files because prevention is the best way to keep your work safe!
This chapter was built differently than the previous ones. In this chapter, you received various tips and tricks that are based on a decade of daily Inkscape usage. First, there was a short reminder about the basic tools and methods and how important it is to know them before digging deeper. Then we learned about LPEs and through a few examples, saw how effective they really are. LPEs provide some of the best automation for vector graphics.
Then we moved even deeper, checking behind the curtain of SVG files and learning about the benefits of using just a bit of XML. The Find/Replace function is invaluable when you are working with multiple objects, and object IDs can be used in more than one way too!
CMYK support was always a question for XML, but thanks to the Inkporter extension and other apps, now you know more than one way to solve this problem.
Next, you learned about custom SVG templates and how easy it is to create them in Inkscape. And finally, you prepared yourself and now know what to do when Inkscape crashes and when SVG files get corrupted. Remember: make saving a habit!
The next chapter is the last one of this book, where we will take a look at all you have learned about Inkscape.