Tip: The shortcut for the Eraser tool is E.
Often you will need to remove sections of an image or erase sections. Using the basic eraser tool this is simple. By selecting the Eraser tool and then drawing with it you can take sections of the image to transparency. If there is a background to the image you will erase back to the background.
If you are familiar with the Pencil and Brush Tools usage should be straightforward. You have three options available to you:
The Brush and Pencil options are the same as using these tools. The only difference is that when you draw you are removing pixels rather than adding them. Block is what it suggests - a block!
Once you have selected the brush type you have two further options:
Finally there is the Erase to History checkbox. If you have altered the image in any way you will be able to see the history of the alterations by going to Window > History. This will bring up a list of actions. It works much in the same way as the History Brush Tool. As you paint the pixels from the previous state will be revealed. If you don’t have any history this option will not be available to you.
Commonly I use the basic eraser tool to remove mistakes or blemishes made on layers. With a quick swipe of the eraser tool it is gone.
This tool knocks out the background from images. It works well where the background is distinct, but for me it is often a bit clumsy. It is useful for going to a transparent background. For cases where you want to smooth the background you may be better to use the Healing Brush Tool.
This works much like the Magic Wand Tool but instead of selecting sections of an image it removes them. Have a look at this photo by mipdesign on Flickr. On the left is the raw image. On the right I have selected the Magic Eraser tool. With one click the background is removed to transparency allowing me to replace it with something else.
Have an update or suggestion for this article? You can edit it here and send me a pull request.
Build your own Vim statusline
Statuslines in Vim are not hard to create. Making your own means one less dependency in your life.
Custom Vim Bindings in tmux 2.4
tmux 2.4 made a significant change to key bindings. Here is how to support custom keybindings for versions before and after tmux 2.4
Using template files in Vim
Vim templates or skeletons, allow you to specify a template to be used for new files with a certain extension.