Deviant Login Shop  Join deviantART for FREE Take the Tour
×



Details

Submitted on
May 13, 2012
File Size
473 KB
Link
Thumb
Embed

Stats

Views
7,454 (2 today)
Favourites
53 (who?)
Comments
24
Downloads
2,747
×
Scale Layer to Image Size by slybug Scale Layer to Image Size by slybug
GIMP 2.8 Python Plugin.
This plugin scales the contents of the layer (or layer group) to image size.
I hope this plugin will be useful for someone else.

Installation Instructions:
1. Extract "scale-layer-to-image-size.py" from .zip archive to the ".../.gimp-2.x/plug-ins/" directory.
2. Make sure that the extracted file is executable.
3. If you are already running GIMP, close and reopen it.

This plugin requires Python!
If you have the "Filters > Python-Fu > Console" menu item you are all set. If not, install Python support for GIMP.

Version History:
v1.3 (01.06.2012)
- Added support for working with layer groups.
- To the two types of scaling added three more.
- Added "Align to image center" option.
- Fixed bug in "Crop to Image Size" which leads to cropping of the whole image, and not the selected layer.
v1.2 (19.05.2012)
- Added "Crop to Image Size" option.
- The value "Addition" is now measured as a percentage (%).
- Some code improvements.
v1.0 (13.05.2012)
- Initial release.

My other plugins:
Create Layer Mask from...
Duplicate to another Image
Layer via Copy/Cut
Place Layer into Selection


The latest versions of the plugins
you also can download from:

some-gimp-plugins.com

Add a Comment:
 
:icont1thinker:
T1thinker Featured By Owner Apr 16, 2014
What do you mean by make sure the file is executable.
Reply
:iconslybug:
slybug Featured By Owner Apr 17, 2014
In Nautilus (the file browser), find plugin file, and right-click on it. Click Properties.
Click the Permissions tab, and check the box labeled Allow executing file as program. Then click Close.
> Screenshot
Reply
:iconsesame1990:
sesame1990 Featured By Owner Oct 13, 2013  Student
Hi there
Thanks for your sharing.I like it very much.My previous image SDK can only scale image.Here is the site:www.rasteredge.com/how-to/csha…
But I want to scale layer to image size.So your sharing really help me a lot.I'd like to have a try.
Reply
:iconaysquared:
aysquared Featured By Owner Dec 10, 2012  Hobbyist General Artist
this is a really useful plugin, especially for resizing textures and colour layers in XCFs.
thank you so much for sharing it!
Reply
:iconslybug:
slybug Featured By Owner Dec 11, 2012
You're welcome!
Reply
:iconcaliforniababewv:
CaliforniaBabeWV Featured By Owner Sep 22, 2012
Ignore that other comment, I found it in the lib folder. Another question though, I have python-fu installed but when I try to add your scale layer to image script to the plug in folder it says I can't because libgimp-2.0-0.dll is missing. Help?
Reply
:iconslybug:
slybug Featured By Owner Sep 23, 2012
Don't forget to remove the plugin from the lib/ folder.
Reply
:iconcaliforniababewv:
CaliforniaBabeWV Featured By Owner Sep 23, 2012
Okay, thank you!!
Reply
:iconslybug:
slybug Featured By Owner Sep 23, 2012
Under Windows XP the path should look like this:
\Documents and Settings\<username>\.gimp-2.8\plug-ins
Windows 7:
\Users\<username>\.gimp-2.8\plug-ins
On Unix, the plug-in directory is usually located at:
$HOME/.gimp-2.8/plug-ins
Reply
:iconcaliforniababewv:
CaliforniaBabeWV Featured By Owner Sep 22, 2012
I can't find my plug ins folder... I go to the correct folder but I don't see a plugins folder. I see a scripts folder but not one for plugins. Could you help?
Reply
Add a Comment: