Auto crop image with transparent background to inner element

adobe-photoshopgimp

I often have images like the one below, where a small image is positioned on a transparent background. The background can't be seen here, but it's definitely there – just download the image and see.

Transparent image

Is it possible to use any tool (Gimp or Photoshop) to automatically crop the transparent background to the borders of the inner element? For example, the size of this image is 320×200 and after cropping its size would be the size of the pink circle.

Best Answer

If you open up gimp, you can do one of two things to get your image. The first is to just use the autocrop image tool. This will crop to the box around the circle.

You can also select all the transparent area with the magic wand tool, and then go to Select->invert selection. Now you are selecting your image, and can cut/copy/paste/crop to selection.