You are here

CloneLayer Tool - GIMP 2.7.x - Updated!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Rate this item!

Hello all!

I'm web-developer. I use the Gimp for making a web2-widgets or for small parts of design.
Usually, my work requires frequent duplication of layers and their exact placement on the canvas. However, the Gimp does not have a tool to perform batch processing of images (layers). So, I decided to write a small plugin that solves this problem. And I did it! I hope it will useful for you....
But the way, it is my first C plugin for GIMP under GTK framework. So be tolerant to me :)

About plugin:
"CloneLayer Tool" is a C plugin for Gimp 2.7 to automatically duplicate layers and apply to them some transformation and visual effects like - rotate, scale, move, blur and others....
This plugin works like batch processor which helps to make a set of clone layers with transformation on each of them.
Plugin shows the all change in "live mode" - on the gimp canvas (just set needed values and click on the "Clone"). So you can preview results before apply any changes.

Some Examples:
http://2.bp.blogspot.com/-1AnSJjZIX2M/ThiBsy6X5SI/AAAAAAAADRE/8EoCkXjgq8...
http://2.bp.blogspot.com/-RGyp2eMZNt4/TheeO3O8qxI/AAAAAAAADQ8/4qLT62KJm4...
http://4.bp.blogspot.com/-TnBVMQAZZuw/ThiBrhwE9vI/AAAAAAAADRA/fAh16Tzn60...
http://1.bp.blogspot.com/-ckRdEYr-DJU/TheeL1OCkDI/AAAAAAAADQ0/Qyw0vpZBg1...
http://3.bp.blogspot.com/-yGNvPfQf7FI/TheeNuw_jdI/AAAAAAAADQ4/9x3Wk7vrIR...

Video Tutorials:
1. "The Gears" -
Part#1 - http://www.youtube.com/watch?v=HmpRUu3ygZA
Part#2 - http://www.youtube.com/watch?v=tTD-1z_tiBE
Part#3 - http://www.youtube.com/watch?v=ilruMAG4TVA

CloneLayer Tool can be used in following cases:
----------------------------------------------------------------
- to create an intricate pattern from simple geometric shapes. For example, you can create a star from simple curve, or a flower from an oval, or a snowflake from rectangle, etc. ...

- to create multiple copies of image (layer) and place them at a certain distance from each other.

- to create a composite image with a precise geometric arrangement of each of its parts. For example, a gear, a clock face, etc. ...

USAGE
------------
Once the plugin is installed successfully, the plugin can be found in The GIMP
using the menu "Layer->Clone-Layer Tool...".
It works for full image on the current layer. The selected region is ignored. (It will fixed in further)

The plugin dialog allows to adjust many parameters which sorted by groups:

The General Parameters:

Clone Times - how many clones must be created - from 1 to 1000;

Interpolation - uses for transformation (rotate, resize);

Add clone layers as -
- One layer - it will merge all clones to one layer;
- Grouping clone layers;
- Each clone to layer;

Autocroping layer -
if checked - remove empty borders from the layer;
else - resize layer to image size;

Orders -
- UP - add new clone above previous layer ;
- DOWN - add new clone under previous layer;

Resize (scale) group:
- provides some values to set a fixed and random step to increase/decrease width or height of layer.
Keep aspect - enabled a proportional scaling.
Resize Type - sets direction of resize - to Top/Left corner, etc....

Rotation group:
- provides parameters to set a fixed and random angle to rotate layer on each clone.
Coordinates -
Rotate Center X and Center Y - a rotate points
Get Coordinates - to set Center X and Center Y point by corners - Top/Right; Buttom/Left, ect ...

Move group:
- provides parameters to set a fixed and random step to increase/decrease distance between layers on each clone;
Move Layer From - selects corners between two layers to set a distance for them.

Effects group:
- has a few visual filters (effects) that could be added to layers. There are opacity and blur filters at the moment.
Opacity - you can set fixed or random step to increase/decrease transparency.
Blur - the same, but for the blur.
(new!) Colorize - you can change image hue by fixed or random step.
(new!) Noise Spread - the same like blur, but for the noise spread.
(new!) Drop Shadow - adding shadow under image.
(Note, the shadow area don't calculate on Move-steps!)

(new!) Animate group:
- this feature provide a simple way to manage the GIMP animate layers,
such as mode animation layer and speed layer.
On/Off - enable/disable animation setting.
Animation setting for First/Next and Last layer -
Mode layer - [combine|replace|none]
Speed - speed in ms/ from 0 to 10000.

...each setting will been added to end of layer name.
for ex.: layer_name-clt #1(300ms)(replace)

Note!
------------------
"CloneLayer Tool" is under development yet! And some features are incomplete!
Please, save your work before apply this plugin, or make duplicate image!
(The plugin doesn't provide undo step! So, for this reason a result of work will added at new layer and original layer will saved too. )

--------------------
P.S.:
Sorry for my English! But, I hope you understand what I wrote above ;)
If not - sorry again ((

INSTALL from source
=============
For Linux and Unix users
------------------------
For a system wide installation simply state:

$gimptool-2.0 --install clone-layer-tool.c

A restart of The GIMP is recommended.

For Window users
------------------------
C:\gimptool-2.0 --install-admin c:\pach_to_plugin_src\clone-layer-tool.c

!!! Note !!!
1. If your GIMP was installed to \Program Files\, you must reinstall it into
folder which non contains a blank space in the name!
i.e.: c:\gimp\ or d:\gimp_2.7\, ...

2. gimptool-2.0 required GTK+ libs and installed MiniGW!
Please install all needed soft and libs on your machine before compile plugin
using gimptool-2.0.

INSTALL from binary
=============
copy Linux binary or Windows executable file to system or user plug-in folder:
for *nux - ~/gimp-2.7/plug-ins
for win* - C:\Documents and Settings\user_name\.gimp-2.7\plug-ins

Archive name - type:
================
gimp-clt-v0.2b-src.tar - source files to compile using gimptool-2.0. All platforms!
gimp-clt-v0.2b-bin.tar - Linux binary file
gimp-clt-v0.2b-exe.zip - Windows executable file
gimp-clt-v0.2b-src+exe-64bits.zip - win64 executable file
(thanks to samj - http://www.aljacom.com/%7Egimp/ )

GIMP Version: 
Code License: 

Comments

hi lylejk, thanks for the suggestion!
I added shadow effect.
Try to download last version - CLT v0.2b!

I get this error; suspect it is because I'm using 64-bit 2.7 GIMP. Guess I might have to wait until samj is able to compile it for 64-bit GIMP. :)

Uploaded with ImageShack.us

I haven't got 64 bit machine to compile this plugin... and I would be very grateful if anybody can do it.

yes, I plan to add a drop shadow, colorize, spread and some other useful stuff, like mix background to layer, animation properties, etc...

Cool news Remy; too bad it does not work with GIMP 2.6x generation, but thanks to Partha, I have 2.7.3 64-bit installed my my Win7 PC. Will play more with this cool plugin soon as I see a possible implementation of it to share (other forums that I frequent). :)

great compile Samj! :)

I would like to add this link to my blog (http://remyawm.blogspot.com/2011/07/clonelayer-tool-gimp-plugin.html).
Please, let me know if you don't mind.

Bonjour,

@RemyAWM

Thank you for this plugin, it is very original :o)

You can add a link to your blog.
You can do whatever you want with the compiled plugin.
Do you want me to try to compile a version for 32bit Windows Gimp 2.7 ?
EDIT :
I compiled your plugin for users of Gimp 2.7 32-bit Windows.

Pages

Subscribe to Comments for "CloneLayer Tool - GIMP 2.7.x - Updated!"