Xaralx, now known as Xara Xtreme for Linux, is a free and open source image editing program for Linux. It is based on the commercial Xara imaging editing software for Windows, and is primarily used for vector image creation and editing. Over the next few weeks, I will provide some handy tips that you can use in Xara. The first is an easy way to slice an image into whatever shape you want. As with any vector image editing, the resulting shape will be an object that you can move, rotate, add to a larger image, and treat like a normal shape.
Install Xaralx
Xaralx is available through many Linux distribution repositories. For Ubuntu, simply install it through Synaptic or enter from the command line: You may also want to install extras:
Import an Image
- Start xaralx from the menu.
- Click “File” and “Import“.
- Find an image you want to use and click “Open“.
Feel free to resize the image or make other changes before your proceed.
Slice the Image
Click the rectangle tool, ellipse tool, or quickshape tool (for all other types of shapes — it requires some additional customization).
Click in the white space and drag to create your shape.
Click the select tool (the first one shaped like a mouse pointer).
Drag your shape over top of the image, positioning it however you want to slice it.
Click the transparency tool (the wine glass icon).
A new toolbar will appear. On the right, drag the transparency bar about halfway so that the shape is translucent. This way you can make sure you have it positioned over the image the way you want it.
With the shape still selected, hold Shift and click on the image underneath so that both are selected.
Right click on top of the shape, select “Combine Shapes” and click “Slice (cut) Shapes“.
The top shape should disappear leaving a cut-out of your image in that shape. Drag it away from the remaining shape and delete the leftover if you wish.
Export the Image
It is always a good idea to save the whole page for future use, but to save the image only, you need to export it.
- Select the newly sliced image.
- Click “File” and “Export…”
- Select the file type. (If you want the area surround your image to be transparent, select “.png”. PNG is also useful if you intend to manipulate the image further in Gimp).
- After you have selected the file format and destination folder, click “Save”.
Other Techniques
If you are interested in the reverse of what you just did, instead of clicking “Slice“, just click “Subtract Shapes“. Your shape will behave like a cookie cutter, removing that area from your image. If you click “Intersect Shapes“, it will automatically cut out the part that you want and discard the rest. Once you have sliced your image, you can use any of the other features available in Xara or export the image to another program. In the coming weeks, I will introduce you to some of the features Xara has. Many of its features are similar to Inkscape (a very popular vector graphics editor), while some are unique and welcomed additions to Linux. Although the Linux version is somewhat different from the Windows one, many of the techniques are the same. Experiment and see what you can produce.