Code Monkey home page Code Monkey logo

gimp-plugins's Introduction

A collection of GIMP scripts and plug-ins by Akkana Peck.

These are all licensed under the GPL v2 or (at your option) any later GPL.
There's further discussion of some of them on my software page:
http://www.shallowsky.com/software/#gimp

I'm working on translating these plug-ins to the new API in Gimp 2.99/3.0.
That API isn't stable yet, but you'll find the plug-ins that have been
translated so far under the "gimp3" directory.

===============
SAVE/EXPORT PLUG-INS (PYTHON):

More info: http://www.shallowsky.com/software/gimp-save/

saver.py
  Meant to be the One True Save/Export plug-in, on ctrl-S and ctrl-Shift-S.
  It saves whether the type is XCF or other, it can automatically save
  a copy in a different format, and it can even scale that copy and
  remember the scaling.

save-export-clean.py
  Save or export, marking the current image clean.
  This was an initial quick hack for people who dislike the Save vs. Export
  split introduced in GIMP 2.8; it's mostly obsoleted now by Saver.

===============
OTHER PYTHON PLUG-INS:

arclayer.py
  Bend a layer (e.g. a text layer) in a circular arc.
  Also a good demo of how to use pixel regions in Python.

arrowdesigner.py
  Interactively draw an arrow in a new layer, using a rectangular
  selection as a guide.

blobi.py
  Text effect similar to bevel and drop shadow, but different.

changefont.py
  Change font face and size for all text layers in the current image.

export-scaled.py
  Export a scaled version of the current image, remembering name & scale
  for the next export.

export-all.py
  Show a dialog offering to export all open images.
  Currently this is just a skeleton for other people to build on.

life.py
  Conway's Game of Life (more or less, with colors added).
  No, there's no practical use for it. It's just a silly demo.

migrate-gimp-presets.py
  Migrate 2.6 tool presets to 2.8 (which doesn't happen automatically).

pyui.py
  Demonstrate all possible UI options for pygimp registration dialogs.

wallpaper.py
  Make wallpaper from the selection, based on aspect ratio.
  Has a few screen size presets (e.g. 1366x768, 1680x1050) and
  saves to a known place, e.g. ~/Backgrounds/1366/.
  It's recommended that you set rect select presets for aspect ratios
  like 16:8, 4:3, 1366:768 etc. in order to use this.

===============
SCRIPT-FU:

arclayer.scm
  Bend a layer (e.g. a text layer) in a circular arc.
  Much much slower than the Python version, due to lack of pixel regions.
  Nore info: http://www.shallowsky.com/software/arclayer/

fibonacci.scm
  Draw a Fibonacci (golden ratio) spiral around Fibonacci number boxes.

gimplabels/
  Create label/businesscard templates, and pages of them, based on
  Avery and similar templates imported from glabels.
  Fiddly to use since you have to figure out your printer's "slop factor".
  More info: http://www.shallowsky.com/software/gimplabels/

pandora-combine.scm
  Stitch a series of images (loaded as layers in one image) into a panorama.
  Doesn't do any smart matching based on the image contents; it just gives
  you initial fixed spacing and layer masks; then you can drag the images
  around to choose final placement, and edit the layer masks as needed.
  More info: http://www.shallowsky.com/software/pandora/

stack.scm
  Make an averaged image stack:
  combine all the layers with opacity 1/num_images.

sf-helloworld.scm
  A simple script-fu demonstration (used in GIMP scripting talks).

gimp-plugins's People

Contributors

akkana avatar zoffixznet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gimp-plugins's Issues

save-export-clean should flatten

Several people have commented that save-export-clean saves only the current layer. If there are multiple layers and we're saving to a format other than XCF, we should flatten. Preferably without pestering the user with dialogs, because if we're saving to jpg, of course we want to flatten, duh!

cutout doesn't work for selections touching three sides of an image

Hello. Many thanks for your cutout plugin. I wish it were built-in.

Anyhow, I'm using it with GIMP 2.8.22 on Kubuntu Bionic LTS.

I find that if I make a selection touching three sides of an image, and try to run the operation on it, the plugin gives an error:

Plug-In 'Cut out selected band' left image undo in inconsistent state, closing open undo groups.

Then a separate message:

Calling error for procedure 'gimp-edit-paste':
Procedure 'gimp-edit-paste' has been called with an invalid ID for argument 'drawable'. Most likely a plug-in is trying to work on a layer that doesn't exist any longer.

After this, the Undo History shows as if I tried to do a full image select and then tried to apply the filter.

Granted, the plugin isn't really needed for removing that kind of a selection and we can just do invert + crop, but it really isn't that elementarily different from making a slice selection in the process of removing unwanted parts of an image, and it shouldn't throw a weird error anyhow.

Hope this can be fixed.

(BTW you have a comment that says it's ridiculously difficult to make a selection to exactly the height or width of an image. But it's not really difficult. You just have to zoom out and you can select from outside the image bounds and it will result in full-width/height selection. Just mentioning in passing.)

First Try with Export Scaled

It seemed to work well if I filled in a percentage.

It should allow the percentage to be a float value. I tried tweaking the percentage to get the exact width I wanted.

It got really confused if I tried to change the width or height directly. Clicking on width or height and hitting delete to remove the last character inserted a 0, and set the percentage to 0 and the width to 0. If I deleted that 0, then it went back to showing 100% width.

This is Gimp 2.8.2 Python 2.7.3 on Fedora 17.

changefont.py

Hi,

does changefont.py still work with Gimp 2.8.22?

I installed the plugin. If I click Filters->generic->Change Font in all Text layers a window opens where I can fill in a new font size/a new font.
But after clicking OK none of the text layers in my image changed size/font.
It would be great to get this amazing plugin to work.

Error with export-scaled

 line 228, in python_export_scaled
    pdb.gimp_image_merge_visible_layers(copyimg, CLIP_TO_IMAGE)
NameError: global name 'copyimg' is not defined

Saved an image other than .xcf.

Also no text was being displayed in the SpinButton boxes when the dialog was shown.

I had to add second argument to SpinButton constructor to have the text shown.

percent_e = gtk.SpinButton(adj, 0)
width_e = gtk.SpinButton(adj, 0)
height_e = gtk.SpinButton(adj, 0)

Problems with arrowdesigner on MacOS

I am running GIMP 2.99.16-2 (downloaded from the GIMP site) on a Mac Studio, with MacOs Sonoma 14.3.1. I downloaded your script; mkdir'ed a new directory in GIMP/2.99/plug-ins/ named arrowdesigner; copied the arrowdesigner.py file there; chmod a+x the file; and started GIMP. Actually, "Arrow Designer" shows itself in Files > Render.

I loaded a JPG file, and tried to run arrowdesigner both with and without a rectangular selection; nothing happens.

Then I opened the python console, and tried to run arrowdesigner interactively; I got the following output:

GIMP 2.99.16 Python Console
Python 3.10.12 (main, Jun 14 2023, 16:51:03) [Clang 14.0.3 (clang-1403.0.22.14.1)]
>>> Gimp.get_pdb().run_procedure('python-fu-arrow-designer', [ Gimp.RunMode.INTERACTIVE, image, num_drawables, drawables, angle, size, direction])
Traceback (most recent call last):
  File "<input>", line 1, in <module>
NameError: name 'image' is not defined
>>>

Any suggestion?

export-scaled: Update for latest GIMP needed?

I just came across this - a real time saver. Unfortunately, I'm having problems getting it to work. When I 'Export Scaled...' via the menu, I choose a path and filename, but no files are created. Instead, I see a new 'Untitled' image in the Images list, and I can open a new view and then save it. But that's almost as much effort as before!

I'm using GIMP 2.8.14 (portable, if that makes any difference). Just wondering if perhaps something has changed on the GIMP side that would stop it working...

export-scaled.py fails if not saved yet

open a new image, don't save, just click file→export scaled

Traceback (most recent call last):
  File "/usr/lib/gimp/2.0/python/gimpfu.py", line 807, in _run
    res = apply(func, params[1:])
  File "/home/username/gimp-2.8/plug-ins/export-scaled.py", line 106, in python_export_scaled
     chooser.set_current_name(os.path.basename(init_filename))
  File "/usr/lib/python2.7/posixpath.py", line 112, in basename
    i = p.rfind('/') + 1
 AttributeError: 'NoneType' object has no attribute 'rfind'

add support for GIMP 2.10

When starting the Saver plugin in GIMP 2.10.8 (Ubuntu) I get:

Querying plug-in: '/home/wanted/.config/GIMP/2.10/plug-ins/saver.py'
gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error
Terminating plug-in: '/home/wanted/.config/GIMP/2.10/plug-ins/saver.py'

and the plugin is not working.

changefont.py NameError: name 'image' is not defined

Sorry for this newbie question.
I open the picture with text layer (xcf). Then I open Python-Fu in Filter. In the console, I enter pdb.python_fu_change_font("apartment_maps.xcf-1.0", 11, "Sans"). But it shows NameError: name 'apartment_maps' is not defined Why?

Thanks for save-export-clean.py

Thanks thanks thanks for save-export-clean.py plug-in!

I think that this change in Gimp was a veeery bad idea.

Thanks again.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.