Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,947
» Latest member: drexinaz
» Forum threads: 7,707
» Forum posts: 41,906

Full Statistics

Latest Threads
Ubuntu - Right way to cra...
Forum: Linux and other Unixen
Last Post: ExplodingCabbage
3 hours ago
» Replies: 2
» Views: 121
Gimp 3.0.6 Python plug-in...
Forum: Scripting questions
Last Post: Volker
8 hours ago
» Replies: 0
» Views: 74
What exactly tutorials ar...
Forum: General questions
Last Post: SleipnirTheHorse
8 hours ago
» Replies: 5
» Views: 340
Random Clone
Forum: General questions
Last Post: mrkid
9 hours ago
» Replies: 3
» Views: 242
Problem with Gimp 3 Pytho...
Forum: Scripting questions
Last Post: Volker
Today, 11:03 AM
» Replies: 7
» Views: 424
Issue with Gradient Flare...
Forum: General questions
Last Post: rich2005
Today, 09:56 AM
» Replies: 4
» Views: 177
ExifToolGUI and ExifTool ...
Forum: Other graphics software
Last Post: denzjos
Today, 09:47 AM
» Replies: 10
» Views: 9,864
Beginner question on Laye...
Forum: General questions
Last Post: denzjos
Today, 07:05 AM
» Replies: 1
» Views: 112
New to Gimp
Forum: General questions
Last Post: denzjos
Yesterday, 08:20 AM
» Replies: 4
» Views: 339
Autopano Giga 4.4.2 now f...
Forum: Other graphics software
Last Post: denzjos
Yesterday, 08:17 AM
» Replies: 1
» Views: 144

 
  Heal transparency (resynthesizer plug-in) Error
Posted by: V@le93 - 03-19-2021, 11:03 AM - Forum: Extending the GIMP - Replies (5)

Hello everyone,

I need help with the resynthesizer plug-in and in particular Heal transparency code. It works perfectly fine with all my images except for a new batch that i received recently. The error and messages are:
GIMP Message:

  1. Plug-in 'Heal selection' left image undo in inconsistent state, closing open undo groups.
  2. Plug-in crashed: "resynthesizer" (/home/ariotta/.config/GIMP/2.10/plug-ins/resynthesizer) The dying plug-in may have messed up GIMP's internal state. You may want to save your images and restart GIMP to be on the safe side.
  3. Calling error for procedure 'plug-in-resynthesizer': Procedure 'plug-in-resynthesizer' returned no return values
An error occurred running python_fu_heal_transparency:
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 740, in response dialog.res = run_script(params) File "/usr/lib/gimp/2.0/python/gimpfu.py", line 361, in run_script return apply(function, params) File "/home/ariotta/.config/GIMP/2.10/plug-ins/plugin-heal-transparency.py", line 59, in heal_transparency pdb.python_fu_heal_selection(timg, tdrawable, samplingRadiusParam, 0, orderParam, run_mode=RUN_NONINTERACTIVE) RuntimeError: execution error

Someone know what could be?
Thank you in advance!

Valeria

Print this item

  Troubleshooting Python plugin to load an XCF file
Posted by: TimorousMe - 03-19-2021, 03:06 AM - Forum: Scripting questions - Replies (4)

In connection with troubleshooting my bigger project (thread here: https://www.gimp-forum.net/Thread-Gimp-P...d-question) I'm trying to create a really simple plugin to open an XCF file in the GUI. Eventually I will make this non-interactive and make it a wrapper to launch my other function, but for now I just want it to open the GUI and use pdb.gimp_xcf_load to open my XCF. 

I know definitions are not completely needed, but having them seems to make it easier to call a function from the command line, so I have a definition for now. 

The command line opens the Gimp UI, but doesn't open my XCF, and throws some errors. Any idea what I'm doing wrong here in this very simple plugin?

Command line argument:

Code:
gimp --batch-interpreter python-fu-eval -b '(python_fu_open_xcf "/Users/TimB/Desktop/template.xcf")'



Plugin:
Code:
#!/usr/bin/env python
#
# Script to open .XCF file

from gimpfu import *

def open_xcf(file):
   
   try:
       # Open XCF file
       image = pdb.gimp_xcf_load(file, file)
       layer = pdb.gimp_image_get_active_layer(image)

   except Exception as err:
       gimp.message("Unexpected error: " + str(err))

register(
   "python_fu_open_xcf",
   "Add image to layer",
   "Add image to layer and flatten.",
   "TCB",
   "TCB",
   "2021",
   "<Image>/Filters/Tim/Open XCF",
   "*",
   [
       (PF_FILE, "file", "XCF file to open", ""),
   ],
   [],
   open_xcf)

main()

Terminal output:
Code:
GIMP is started as MacOS application
2021-03-18 23:02:16.722 gimp[9241:136602] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead.
Cannot spawn a message bus without a machine-id: Unable to load /var/lib/dbus/machine-id or /etc/machine-id: Failed to open file “/var/lib/dbus/machine-id”: No such file or directory
/Applications/GIMP-2.10.app/Contents/MacOS/gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error
gimp_check_updates_callback: loading of https://www.gimp.org/gimp_versions.json failed: Operation not supported
Traceback (most recent call last):
 File "/Applications/GIMP-2.10.app/Contents/Resources/lib/gimp/2.0/python/gimpfu.py", line 827, in _run
   return apply(func, params[1:])
 File "/Applications/GIMP-2.10.app/Contents/Resources/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
   exec code in globals()
 File "<string>", line 1
   (python_fu_open_xcf "/Users/TimB/Desktop/template.xcf")
                                                        ^
SyntaxError: invalid syntax
batch command experienced an execution error

Print this item

Photo Trouble installing plug in
Posted by: spudn56 - 03-18-2021, 09:02 PM - Forum: OSX - Replies (2)

Hi,
I am on macbook pro Big Sur, I am using gimp 2.10 and trying to install plug-in from Da Big Gimping.
I followed a persons instructions but was unable to get it installed. 
Steps opened gimp
preferences
Folders
plugins folder see attached screen shot.
Closed program after reopened gimp still not showing up.
Help Please



Attached Files Thumbnail(s)
   
Print this item

  Gimp Python script file load question
Posted by: TimorousMe - 03-18-2021, 04:17 AM - Forum: Scripting questions - Replies (10)

I have a working Gimp plugin that takes an open XCF, adds a new layer to it, positions the new layer, and then exports a JPG. 

However, the plugin only works if I'm in the Gimp UI and the XCF file is already open. I want to run it from the command line and some how call pdb.gimp_xcf_load somewhere top open the XCF, but I can't get the file open or command line to work. 

What is the best way to do this? Should I have a wrapper script that opens the XCF and then calls my working script?  Or can I both open the XCF and the JPEG in a single plugin? Is there a best practice?

Print this item

  SCM files in 'scripts' folder, but 'script-fu' menu is empty
Posted by: serialcomplimenter - 03-18-2021, 02:04 AM - Forum: Extending the GIMP - Replies (4)

I'm using GIMP 2.10 on Windows 10, and I haven't done anything about the default Scripts location: C:\Program Files\GIMP 2\share\gimp\2.0\scripts

There are theoretically 53 .scm files in this folder, all but one added by the GIMP Installer, but nothing shows up in Filters > Script-fu except "Console", "Refresh Scripts" and "Start Server"

   

This folder is listed in Edit > Preferences > Folders > Scripts, so it *should* work, right? Am I missing something elementary?

Print this item

  How to colorize a greyscale image using a gradient of colors?
Posted by: wertoiuy - 03-18-2021, 01:28 AM - Forum: General questions - Replies (2)

I have this greyscale image which I made from a layered colored image. The grey ranges from 26/256 to 121/256. I have made a gradient of colors similar to the colored image. I then want to be able to assign one end of the color range to 26/256 and one end to 121/256. Finally I want to take the greyscale image and convert it to color using that specific graduated color range.

I have the gradient made, but I have no clue how to colorize the gray appropriately.



Attached Files Thumbnail(s)
       
Image(s)
   
Print this item

  sample points
Posted by: Pirlouit - 03-17-2021, 12:37 PM - Forum: General questions - Replies (5)

   
Hi,
I just installed Gimp 2.10.22. I am on macOS.
When a photo is imported, the Sample Points window is empty and a message reads (in french): This image has no sample point. However, I checked Display -> Show sampling points. In Picker mode, by installing the guides (vertical / horizontal) on the image, I have the Picker window (pixel / RGB) that opens. But nothing in the Sample Points window. How do I display these sample points? Does it depend on the type of photo (RGB or sRGB, etc.)? Thank you in advance for your advice.

Print this item

  Black and white to color transition
Posted by: chrisj - 03-16-2021, 04:04 PM - Forum: General questions - Replies (1)

How can I tweak a wide image and have it black and white on the left side and have it gradually be colorful and become full color on the right side?

Print this item

  Icons are very small
Posted by: garnold - 03-16-2021, 12:03 AM - Forum: Linux and other Unixen - Replies (3)

Hello. I've just installed Gimp 2.10 on my laptop. The OS on the laptop is Ubuntu 20.04.2 using Gnome as the desktop. Right now when I run GIMP the icons are painfully small. I have the same issue with a few other applications as well. Most programs work just fine. I installed GIMP via apt. Attached is a screen shot of what I'm seeing. Could I get some help with fixing this please? Thank you!



Attached Files Thumbnail(s)
   
Print this item

  Removing alpha channel
Posted by: AncientxFreako - 03-15-2021, 10:43 AM - Forum: Extending the GIMP - Replies (3)

I've recently had some issues with GIMP generating alpha channels after editing images when using layers. Upon exporting to .png, the alphas get left in. I'm being told by an ace programmer that this is a ridiculous thing that GIMP should not do. I really, really like GIMP, and would rather continue using it. Is there an update that deals with this without a plugin?  And btw, I haven't seen a good plugin that even does decent batch alpha removal.

Print this item