Deviation Actions

slybug's avatar

Scale Layer to Image Size

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:

© 2012 - 2021 slybug
Join the community to add your comment. Already a deviant? Log In

Thanks I will try😁😍🤩

Will your plugins work in ver. 2.10.x?
fbronnie's avatar
Tsumerai-Kyon's avatar
Mine is in russian, what did I do wrong?
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
this is a really useful plugin, especially for resizing textures and colour layers in XCFs.
thank you so much for sharing it!
slybug's avatar
You're welcome!
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.
CaliforniaBabeWV's avatar
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
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!
AlonteSamuels's avatar
cool plug-in thanks
slybug's avatar
You are welcome!
al-dy's avatar
Tested on Linux, it works great. Good job!
slybug's avatar
Thanks for testing!
ShortcakeNova's avatar
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
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?
Join the community to add your comment. Already a deviant? Log In