slybug's avatar
Scale Layer to Image Size
By slybug   |   Watch
83 28 13K (4 Today)
Published: May 13, 2012
© 2012 - 2019 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:

anonymous's avatar
Join the community to add your comment. Already a deviant? Sign In
rosiecar's avatar
Will your plugins work in ver. 2.10.x?
fbronnie's avatar
fbronnieHobbyist Artisan Crafter
Thanks a lot!
Tsumerai-Kyon's avatar
Mine is in russian, what did I do wrong?
Plumplucker's avatar
I just installed in 2.9 pre-release and it seems to work fine. Great Plugin! Thank you
T1thinker's avatar
What do you mean by make sure the file is executable.
slybug's avatar
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's avatar
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's avatar
aysquared General Artist
this is a really useful plugin, especially for resizing textures and colour layers in XCFs.
thank you so much for sharing it!
CaliforniaBabeWV's avatar
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's avatar
Don't forget to remove the plugin from the lib/ folder.
slybug's avatar
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's avatar
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?
TheShock's avatar
TheShockProfessional Digital Artist
Excelent presentation. and well explained. I like to find this type of works. I am going to test for sure.
Jheric's avatar
Thanks!! Your plugins are great!
slybug's avatar
You are welcome!
al-dy's avatar
al-dyProfessional Digital Artist
Tested on Linux, it works great. Good job!
slybug's avatar
Thanks for testing!
ShortcakeNova's avatar
ShortcakeNovaHobbyist General Artist
Nevermind the first question but Does it work in Windows 7? i'd really would love something like this but sadly i dont have windows OS
slybug's avatar
The script works fine in Windows 7. (Windows OS - Windows Operating System) :)
ShortcakeNova's avatar
ShortcakeNovaHobbyist General Artist
Well i downloaded Gimp 2.8 and added your script and did as the directions said but i still doesn't appear in my Gimp....can you please help me?
slybug's avatar
Under Windows XP the path should look like this:
C:\Documents and Settings\<username>\.gimp-2.8\plug-ins
And under Windows 7:
anonymous's avatar
Join the community to add your comment. Already a deviant? Sign In
©2019 DeviantArt
All Rights reserved