Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 320x200 and after cropping its size would be the size of the pink circle.

share|improve this question
    
It isn't clear if you just want to use this on one image at a time, or if you want to crop like 100 images all at once. –  Joel Aug 9 '11 at 16:10

2 Answers 2

up vote 2 down vote accepted

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.

share|improve this answer
    
autocrop does not work (maybe due to transparent bg), but Invert+Crop to selection works perfectly! Thanks! –  JoeM Aug 9 '11 at 16:24

In Gimp, under the Image menu, Autocrop Image.

share|improve this answer
1  
Funny but autocrop does not work although it was the first option I tried. –  JoeM Aug 9 '11 at 16:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.