Transparency cropper

Transparency crop script by J R Hunt, updated by Darrell Enns to work with Gimp 2.6.
Automatically crops out transparent edges. This is particularly useful after performing a rotate or perspective correction on a photo. It can also perform optimizations to find the crop that removes the transparent edges while mainting as much of the original image as possible.

AttachmentSize
transp-cropper.py13.13 KB

Comments

Missing something

Hello,

I am running Ubuntu 10.4. I have the file transp-cropper.py (no .txt extension) in my /home/username/.gimp-2.6/plug-ins folder. My package manager shows scipy and numpy both installed. Running "import scipy" at a Python prompt does not generate an error. However, I still am unable to find the plugin in any of the GIMP menus. Other .py plugins in the same folder seem to run OK. Am I still missing something for this one? This will be a very useful plugin for me if I can get it running.

Thank You!

Never mind; restarted a

Never mind; restarted a couple more times, and somehow it's there now. Works great. Thanks for this!

Needs other Python packages

Great tool - thanks! The script says it needs scipy (http://www.scipy.org/), which in turn apparently needs numpy (http://www.numpy.org/). And it goes without saying you first need Python (http://www.python.org). After installing those you get menu items Python-Fu > Selection > Transparency Crop

It's a very useful plug-in

It's a very useful plug-in when blending images with Hugin! Thank you very much for it!

Just what I need

Thanks for writing this! I often correct the rotation in digital photos, manually crop the transparency, and never know if I've cropped more than absoluately necessary. I expect to get a lot of use out of Transparency Crop.

question

Hi thats great. Men - who can I find the plugin in Gimp? Avarra

The menu paths are given in

The menu paths are given in the register() call in the script, in this case

<Image>/Python-Fu/Selection/Transparency Crop

 

Syndicate content