Quantcast
Channel: GIMP Plugin Registry - Script-Fu
Viewing all 59 articles
Browse latest View live

Rotation Animation

$
0
0

This script helps create simple rotating animations.

It asks for the desired number of animation frames (between 4 and 24 frames in increments of 4), and generates the corresponding number of layers each containing a rotated version of the image's background layer.
A choice of animation motion (circular and pendulum) is provided.

It has been tested in Gimp 2.6.11 on GNU/Linux and 2.8 on Windows XP.

Released v1.11 on 2012-07-02.

* Added pendulum motion
* fixed issue from lingering test code

Known Issue: Some layers appear slightly off center when rotated. This is a side effect of the gimp rotation function. Currently working on a metthod to minimize this unwanted effect.

AttachmentSize
animation-rotation.scm5.03 KB
Code License: 
Scripting Engine: 
GIMP Version: 

Embroidery Stitcher

$
0
0

Hi this is my second Script-Fu and it seems a few people liked it so i thought i would post it here at the registry.
It's a SCM script so it will go in your scripts folder.

Just open a image and select the layer you want to work on and go to Filters>Artistic>Embroidery Stitcher.
The script is non interactive, that is to say it just runs with no adjustments (for now), and should work on any layer or image.I may add a stitch width adjustment later.

Download and more information can be found here.
http://www.gimpchat.com/viewtopic.php?f=9&t=4860#p60457

Thanks!

Scripting Engine: 
Code License: 
GIMP Version: 

Move, Scale, and Rotate using paths as reference

$
0
0

This is a collection of four scripts which help with aligning layers for HDR and mask workflow, as well as simply scaling, moving, or rotating layers.

Ortho by Path: Often the horizon on a photo is not level, or a building is not straight up. The gimp corrective rotate function works for this, but it is not that easy to use. Ortho by Path works by marking two points on the image that should be orthogonal (vertical or horizontal). The script will automagically rotate the image and will infer the direction by the angle of the path because most images require only a little straightening. An optional third point on the stroke will mark the centre of rotation. If only two points are marked, the layer will rotate about the centre.

Scale by Path: A two-point path is drawn marking two points on the reference layer as a reference length. The same two points on the active layer are marked using a second stroke (shift-click to start a new stroke in the same path). The script will scale the active layer by the ratio of the two stroke lengths.

Move by Path: A two-point path with the first point being the spot on the active layer which is to be moved, and the second being the spot on the reference layer where the first spot must align directly over.
After the move, a new path is created, ready for the next operation in the workflow, rotation.

Rotate by Path: A three-point path is created, the first being the point on the active layer that must be rotated, the second being the pivot point or centre of rotation, and the third being the reference point on the reference layer the image is to be rotated to. If Move by Path was used previously, the path is already created for you, the top point must be moved to the active layer's spot to be rotated, the right-most point must be moved to the reference point on the reference layer, and the pivot point is the same as the point we moved earlier.

Look for the menu items under "Layer/Transform/With Path..."

I hope you find these useful!

M

Scripting Engine: 
GIMP Version: 

Frequency and/or Color Separation

$
0
0

One of the secrets of great image manipulation is to separate images into components. Frequency separation is often mentioned, breaking the image into so-called high-pass and low-pass layers. The high-pass layer separates out the sudden changes in an image and fiddling with this layer can enhance sharpening or even out blemishes. The low-pass layer can be used for smoothing out color transitions. Portrait photographers use this extensively for smoothing skin and removing spots. There is no native Frequency separation tool or filter built into gimp. Doing it requires several time-consuming steps and it is easy to get the steps in the wrong order, turning the image into a hopeless mess.

Another separation technique separates color from luminosity. The human eye is far more sensitive to relative luminosity than color, which is why Andy Warhol images still make sense to us. Playing with the color without affecting the luminosity can produce beautiful artistic effects and are the technique is particularly well-suited to landscape photography. And again, there is no native way to perform the separation.

This script puts two new filters in Filters/Generic/Split... Which will do the separation for you. It requires layer-groups so will only work in gimp 2.8 and newer.

Have fun!
M

Scripting Engine: 
GIMP Version: 

Batch crop images... but keep centered

$
0
0

This is a small script for batch crop images and keep centered.

This is the script:
============

; 2012 Ivan Lantes Perez
; Script to crop images and keep centered

(define (batch-crop-center pattern
width
height)
(let* ((filelist (cadr (file-glob pattern 1))))
(while (not (null? filelist))
(let* ((filename (car filelist))
(image (car (gimp-file-load RUN-NONINTERACTIVE filename filename )))
(drawable (car (gimp-image-get-active-layer image))))
(let* ((original-width (car (gimp-image-width image)))
(original-height (car (gimp-image-height image)))
)
(if (<= (/ original-width original-height) (/ width height))
(gimp-image-crop image original-width (* original-width (/ height width)) 0 (/ (- original-height (* original-width (/ height width))) 2) )
(gimp-image-crop image (* original-height (/ width height)) original-height (/ (- original-width (* original-height (/ width height))) 2) 0)
)
)

(set! drawable (car (gimp-image-get-active-layer image)))
(gimp-file-save RUN-NONINTERACTIVE image drawable filename filename)
(gimp-image-delete image))

(set! filelist (cdr filelist))
)
)
)

Simple usage (under Windows):
=======================
"C:\Program files\Gimp-2.0\bin\gimp-2.6.exe" -i --verbose -b "(batch-crop-center \"C:\\images\\*.jpg\" 800 600)" -b "(gimp-quit 0)"

This is a sample, so if yout gimp-2.6.exe executable file is stored in other folder or partition of your hard disk change the path.
It's the same for the path of the images.
In this sample the final image width is 800 and the height is 600

Hope this script is useful for you guys.

AttachmentSize
batch-crop-center.scm1.3 KB
Code License: 
Scripting Engine: 
GIMP Version: 

Quick sketch RGB

Black & White variations to layers

$
0
0

This script creates predefined black and white variations and saves them as layers. Users can choose which variations should be created.

For more sophisticated possibilities use the channel mixer or other tools. This script just uses typical black and white variations, to provide a quick overview - just switch the layers visibility afterwards.

Install to .gimp-2.6/scripts in your homedir as bwvariations.scm, then start GIMP or click Script-Fu->Script refresh, you'll find it then under Script-Fu->Misc->bwvariations

AttachmentSize
bwvariations.txt9.44 KB
Code License: 
Scripting Engine: 
GIMP Version: 

Dodge & Burn layer


Create water ripple

BgMask: extract still background from video frames / mask frames against background

$
0
0

December 25, 2012: BgMask 0.2 is released!

This script adds several tools under Script-Fu - BgMask: "Extract background...", "Mask against background...", "Average linked layers...", and in BgMask 0.2 there are also "Extract background manually" and "Mask adjustments...". It can be used to mask moving objects/characters from animations with still background.

Also check out my other script AnimStack which is much more useful.

Extract background...

This tool is used to extract background from video frames. The background must be completely still! This is probably only useful with animations, I haven't tried with real life videos, but I imagine the results will be terrible!

The video frames must be loaded as GIMP layers. They should be the same size. There should be nothing else in the image. The script creates a new image, using the following algorithm: for each pixel, the layers are compared to each other. The color that is closest to the greatest number of layers is chosen (within the threshold). Of course I don't actually do this pixel by pixel, it's done using complex math involving layer modes. It's actually quite slow if you have a lot of layers. This really should've been a plugin, but programming in C is no fun, so there we go.

The new image created by the script will contain all original layers and a new background layer at the bottom. Don't miss it! There will probably be some artifacts if something stays in one place for too long. They are usually easy to spot.

Mask against background...

This one assumes that the bottom layer of the image is the background and above it are layers that need to be masked against it. Think chroma keying but with any background instead of green screen. The parameters are threshold and buffer. Any pixels with difference less than threshold will be 100% transparent. Any pixels with difference more than threshold+buffer will be 100% visible. Others will be in between. There is no preview, so you basically have to try several times until the mask is acceptable... You might be able to further improve the quality of the masks with "Mask adjustments" tool.

Average linked layers...

This script averages pixel values for the selected (linked) layers. Select layers by clicking on the column next to the visibility column (eye icon). Linked layers will have chain icon next to them. There are options to delete the original layers and to remove transparency from result. This tool is just for fun! There's no useful purpose whatsoever. I had to code this procedure anyway due to the way "Extract background" works.

The following tools are new in BgMask 0.2:

Extract background manually

You might have noticed that "Extract background" algorithm won't really work if the object you want to mask isn't moving across the screen. Even then, "Mask against background" can still be used to mask this object, if you somehow extract the background yourself. It's kind of annoying to do it in plain GIMP though. This is where this tool comes in. First, make sure you assign a keyboard shortcut to it (say, F4). Make sure nothing is selected and press it. You will notice a new layer group at the top, containing two layers: "Background alpha" and "Background buffer".

Every time you make a selection and press the key, the selected part of the topmost visible frame (not selected frame, this way you copy what you see!) is added to Background buffer ("from below", so older selections normally never get overwritten). Simultaneously, "Background alpha" is updated to show you which areas are already added to background. The color of Background alpha is initially your current background color, but you can recolor that layer at any time. Keep adding selections to the background buffer until you don't see anything to add. At this point, it might still have a hole/holes in it, which means that this part of the background is not visible in any frame. The quickest way to fill these holes with some color is to do "Remove Alpha Channel", which will fill them with background color. Make sure this color doesn't have anything in common with the foreground object you're trying to extract.

In order to use "Mask against background" with this background, put "Background buffer" at the bottom of your layer stack, and remove "BgMask: select background" layer group.

You can also fix the background produced by the automated "Extract background" tool. Remove the parts that aren't actually in the background (so they're transparent), and put it in place of "Background buffer" layer. Then fill these holes with actual background.

Mask adjustments

So, you did "Mask against background" and the results aren't very good, no matter what settings you try. Don't worry, there's still some hope left. Mask adjustments allow you to make these masks more presentable. There are several options, which are executed in order.

  • Transfer alpha channel to masks - since this tool works only on masks, it won't work if you already applied the masks... that is, unless you check this option. It simply adds a "transfer alpha channel" mask to every partially-transparent layer. Fully non-transparent layers are not affected.
  • Denoise - choose a value from 0 to 10. Removes "noisy" pixels using a special algorithm. 0 does nothing, 1 removes black pixels completely surrounded by white pixels and vice versa. 10 is strongest. This may help to get rid of holes and stray pixels.
  • Blur - simply uses gaussian blur on each mask. Effectively allows to "blend in" the edges.
  • Grow/shrink - the amount can be positive (to grow) or negative (to shrink). Grow can be used to fill the holes. Shrink can be used to tighten the edges (but if there are any holes, they will get way more noticeable!).
  • Apply masks - simply applies every top-level mask. This is reversible with "Transfer alpha channel to masks".

GIMP remembers the last values you chose, and it might be annoying with this tool. Note that "Reset" button will restore the safe default values.

AttachmentSize
Download bgmask.scm18.67 KB
Code License: 
Scripting Engine: 
GIMP Version: 

GIMP Extensions Pack for Windows

$
0
0

A Windows installer with a collection of extensions for GIMP

Features

  • 32-bit and 64-bit support
  • Components selection page
  • Uninstaller (via Control Panel)

Project hosted at:

INCLUDED IN THE INSTALLER

Gimp Paint Studio

  • Brushes
  • Dynamics
  • Gradients
  • Palettes
  • Patterns
  • Splashes
  • tool-presets

Plug-ins

  • AUMASK (Advanced Unsharp Mask)
  • BIMP. Batch Image Manipulation Plugin
  • btn4ws
  • CloneLayer Tool
  • Cartoonizer
  • Contact Sheet
  • Direct Draw Surface (DDS)
  • Dynamic Range Transformer
  • EZ Perspective
  • Fix-CA
  • Focus Blur
  • GIMP Mask
  • G'MIC : GREYC's Magic Image Converter
  • IGLO - Images Grid LayOut
  • Image Registration
  • Layer Effects
  • Liquid Rescale
  • MathMap
  • Normalmap
  • PAL & VHS
  • Resynthesizer
  • Retro Computing
  • Save for Web
  • Separate+
  • ShellOut
  • Wavelet decompose
  • Wavelet denoise
  • Wavelet sharpen
  • WebP Import/Export

Scripts

  • Auto rotate with a vector
  • Backup Working
  • Black-and-White Film
  • diana-holga2
  • Egger Scripts
  • El Samuko
  • Fake HDR Effect
  • FIL
  • GIMP FX Foundry
  • gimphelp.org
  • Midnight Sepia
  • Shadows&Highlight
  • Traditional Orton
  • Warming and Cooling Filters

Get latest version (2.8.20121208)

GIMP Extensions is not the author or maintainer of any of the extensions included in this package, they are mainly from SourceForge and GIMP Plugin Registry.

Scripting Engine: 
Code License: 
GIMP Version: 

Color Decompose (For B&W Conversions)

$
0
0

As part of writing the next part of my tutorials on B&W conversion, I needed to quickly decompose an RGB image into different grayscale channels based on useful channels from all the color modes (RGB, CMY(K), LAB, HSV, HSL, YCbCr).

It was tedious doing it by hand, so I wrote up this small script to automatically decompose an RGB image layer (active) into each of the color decomposition modes, and to keep the most useful to me for B&W conversions.

In an image, with an RGB layer selected, the script will decompose it to layers:

  • RGB
  • CMY
  • (CMY)K
  • (HS)V
  • (HS)L
  • L(AB)
  • Y(CbCr)

Once installed, it can be found at: Colors --> Color Decompose...

AttachmentSize
patdavid.net Color Decompose v14.89 KB
Code License: 
Scripting Engine: 
GIMP Version: 

Anaglyph to Stereo Pair (cross-eye)

$
0
0

There were a few anaglyph 3D images that I wanted to view as cross-eyed stereo pairs (I don't have glasses handy). I started doing the manipulations by hand to convert them from anaglyphs, then got tired of doing it manually.

So, I wrote a quick script-fu to do it for me. This will take a 3D Anaglyph image (red/cyan), and create a stereo pair (monochrome) for you...

Just load up an image, and run:

Filters > Generic > Anaglyph to Stereo...

Code License: 
Scripting Engine: 
GIMP Version: 

New Guide Center

Animation Unstrip

$
0
0

The purpose of this script is to convert animation strips or sheets back into collections of layers. These can be saved as an animated GIF image or used for any other purpose.

This script will create a new filter under Filters -> Animation -> Unstrip. The script will take number of rows and columns in animation sheet. For strip, simply keep number of rows as 1. Upon activation, this script will create a new image with rows * columns layers corresponding to each animation frame. The order of layers is such that when saved as animated GIF it will play left to right, then top to bottom.

AttachmentSize
animation-unstrip.scm1.42 KB
Code License: 
Scripting Engine: 
GIMP Version: 

Move Layer To

Subtle Vignette

$
0
0

This script places a subtle reduction in brightness at the periphery of an image using a radial gradient. The method is non-destructive and customizable in that it creates a new layer that can be deleted or modified to suit personal preference. The intent is to save a few button clicks on a frequently repeated processing task.

The method:
(1) duplicate the active layer
(2) set the new layer's mode to "multiply"
(3) add a layer mask to the new layer
(4) draw a radial gradient on the mask from the center (using an offset value of 40)
(5) set the new layer's opacity to 60

Adjust the layer opacity in the layers dialog to suit your personal preference (or change the default opacity value in the script).

After copying this file to ~/.gimp-2.x/scripts/, restart GIMP and look for Filters->Light and Shadow->Subtle Vignette.

References:
GIMP Guru: "Simple Vignetting Using the GIMP"
http://gimpguru.org/tutorials/vignetting/
Luminous Landscape: "Digitally Simulating a Center ND Filter"
http://www.luminous-landscape.com/tutorials/panorami.shtml

Glenn Wadsworth
gwads71@gmail.com
http://www.flickr.com/photos/glennwadsworth
Jan. 2013

AttachmentSize
subtle-vignette.scm5.11 KB
Code License: 
Tags: 
Scripting Engine: 
GIMP Version: 

B&W border v2

$
0
0

This is 2nd version of very simple script. It creates image's borders.

To install this script:
1. Download "BW-border-ENG-v2.scm" file.
2. Copy this file into "C:\Program Files\GIMP 2\share\gimp\2.0\scripts" directory.
3. Script is in the "Script-Fu->B&W Border... v2" menu.

Sample effects:

Script screen:

AttachmentSize
BW-border-ENG-v2.scm2.97 KB
Code License: 
Scripting Engine: 
GIMP Version: 

Create iOS App Icons from an Image

$
0
0

This Script-Fu script automatically generates all the required app icons with the proper names and resolutions for the various iOS devices from a single source image.

For each app icon: the source image* is duplicated, then the duplicated image is scaled, then the scaled duplicate image is exported to a .png file, and finally the scaled duplicate image is deleted. The resulting .png files have the proper names and resolutions for iOS app icons for iPad and iPhone/iPod touch for both normal and retina displays.

*The recommended resolution of the source image is 1024 x 1024

This script is also located at: https://github.com/m2orris/GIMP-scripts

This script contains two functions.

  • Function Name:export-ios-icons-of-image-for-device
    Menu:File --> Export iOS Icon of Image --> Icons for Device(s) ...
    Exports multiple iOS app icons to a user specified directory for a user specified iOS device. The following are the possible iOS app icon filenames (and resolutions):

    iTunesArtwork@2x (1024 x 1024)
    iTunesArtwork (512 x 512)
    Icon-72@2x.png (144 x 144)
    Icon@2x.png (114 x 114)
    Icon-72.png (72 x 72)
    Icon.png (57 x 57)
    Icon-Small-50@2x.png (100 x 100)
    Icon-Small-50.png (50 x 50)
    Icon-Small@2x.png (58 x 58)
    Icon-Small.png (29 x 29)

  • Function Name:export-ios-icon-of-image
    Menu:File --> Export iOS Icon of Image --> Single Icon ...
    Exports a single iOS app icon to a user specified directory with a user specified filename and a user specified width in pixels.
AttachmentSize
export_iOS_icons_of_image.scm4.68 KB
Scripting Engine: 
GIMP Version: 

Highlight from selection (German/English)

$
0
0

Sometimes you’re in the need to direct your viewers attention to a certain part of an image (or you just like to play around with that *g*). There are several ways to do so, this script provides another way: Highlighting.

The filter’s user interface (English Version)

English version of the user interface, there is a German version available, too. Dies ist die Englische Benutzeroberfläche. Eine Version mit Deutscher Benutzeroberfläche ist ebenfalls verfügbar (siehe Anhänge). Beide Versionen können parallel installiert werden.

Examples

When applied to a layer with a selection using the default parameters you get this result (left: before, right: after).

Original imageResult

Here’s another example with slightly tweaked values.

another example

Options

The options should be self-explanatory, but here’s a description of them.

Highlight Radius

When you select the parts of the layer that will be highlighted you don’t need to be 100 percent accurate. The highlight radius defines the amount of feathering added to the selection. When set to 0 there will be no feathering at all (good for exact highlights – but the effect doesn’t look so good)

Blur strength

By default non-highlighted parts of the layer are blurred. With this slider you define how much this parts will get blurred. Same as with radius: you can disable this completely by setting to 0.

Opacity of desaturation

The colors of the non-highlighted parts of the layer are a result of the desaturated part and a normal color part. The higher you set the opacity of desaturation the less color you have. When set to 100 its completely grayscale, when set to 0, no desaturation will be used (see next description).

Desaturate the not highlighted parts

This is a convenient option. If you don’t want desaturation, just click this checkbox, and the non-highlighted parts of the image won’t be desaturated at all, no matter what “Opacity of desaturation” is set to.

Code License: 
Scripting Engine: 
GIMP Version: 
Viewing all 59 articles
Browse latest View live