Shop Mobile More Submit  Join Login


Submitted on
May 13, 2012
File Size
473 KB


7,782 (1 today)
55 (who?)
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 "" 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:

Add a Comment:
T1thinker Featured By Owner Apr 16, 2014
What do you mean by make sure the file is executable.
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
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…
But I want to scale layer to image size.So your sharing really help me a lot.I'd like to have a try.
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!
slybug Featured By Owner Dec 11, 2012
You're welcome!
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?
slybug Featured By Owner Sep 23, 2012
Don't forget to remove the plugin from the lib/ folder.
CaliforniaBabeWV Featured By Owner Sep 23, 2012
Okay, thank you!!
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:
On Unix, the plug-in directory is usually located at:
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?
Add a Comment: