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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,924
» Latest member: Volker
» Forum threads: 7,690
» Forum posts: 41,824

Full Statistics

Latest Threads
Text Editor hardly ever w...
Forum: General questions
Last Post: rich2005
1 hour ago
» Replies: 3
» Views: 99
How to get G'MIC within G...
Forum: General questions
Last Post: rich2005
3 hours ago
» Replies: 2
» Views: 102
How to make image and mas...
Forum: Installation and usage
Last Post: Ofnuts
Yesterday, 08:39 PM
» Replies: 5
» Views: 231
Gimp 3.0 get Metadata wit...
Forum: Extending the GIMP
Last Post: Volker
Yesterday, 05:41 PM
» Replies: 0
» Views: 9
Colorized Layer Reverts t...
Forum: General questions
Last Post: rich2005
Yesterday, 02:42 PM
» Replies: 3
» Views: 183
Multi window mode mode fa...
Forum: General questions
Last Post: teapot
11-07-2025, 01:40 PM
» Replies: 5
» Views: 344
Animation with only GIMP ...
Forum: Gallery
Last Post: Scut-51
11-06-2025, 11:49 AM
» Replies: 25
» Views: 23,001
GIMP 3.04 opens with wind...
Forum: Windows
Last Post: subbareddy
11-05-2025, 07:47 AM
» Replies: 7
» Views: 3,802
Isolate, select and copy/...
Forum: General questions
Last Post: rich2005
11-04-2025, 04:39 PM
» Replies: 7
» Views: 511
"Plug-in crashed" on GIMP...
Forum: General questions
Last Post: skullamrotis
11-04-2025, 03:32 PM
» Replies: 4
» Views: 469

 
  Plug-in help
Posted by: Deedolith - 01-07-2025, 05:28 PM - Forum: Extending the GIMP - Replies (12)

Hello,

I am having an hard time writing my first plus-in in Python.
I wrote a simple "Hello World" plug-in.
It show up in the menus (so the do_create_procedure member function work as intended).
It show up in the python procedures browser (so the do_query_procedures member function work as intended).
But it does not produce anything in the errors window and that leave me completly clueless.
What did I do wrong ?

Here is the source code:

Code:
import sys
import gi
gi.require_version('Gimp', '3.0')
from gi.repository import Gimp
gi.require_version('GimpUi', '3.0')
from gi.repository import GimpUi
from gi.repository import GLib

class Plugin (Gimp.PlugIn):
   def do_query_procedures(self):
       return [ "fl-plug-in-Hello-World" ]

   def do_set_i18n (self, name):
       return False

   def do_create_procedure(self, name):
       procedure = Gimp.ImageProcedure.new(self, name,
                                           Gimp.PDBProcType.PLUGIN,
                                           self.run, None)

       procedure.set_image_types("*")

       procedure.set_menu_label("Hello World Python plug-in")
       procedure.add_menu_path('<Image>/Filters/My Scripts/')

       procedure.set_documentation("Hello World",
                                   "Python 3 plug-in for GIMP 3.0",
                                   name)
       procedure.set_attribution("Fabrice", "Lambert", "2025")

       return procedure

   def run(self, procedure, run_mode, image, n_drawables, drawables, config, run_data):
       Gimp.message("Hello world!")
       # do what you want to do, then, in case of success, return:
       return procedure.new_return_values(Gimp.PDBStatusType.SUCCESS, GLib.Error())

Gimp.main(Plugin.__gtype__, sys.argv)

Print this item

Question Optical blur
Posted by: ogogon - 01-06-2025, 11:19 PM - Forum: Extending the GIMP - Replies (3)

I know that in Camera Raw and Lightroom there is a functionality that immitting optical blurring behind a facet of depth of sharpness. I do not really understand how they do it without voodoo magic, but in general, they somehow realized it.

Is there a similar functionality in the GIMP? (Once again, I'm not talking about blurring the selected area of the raster image, but about the almost complete emulation of the move of the depth of sharpness.)

Grateful for the answers,
Ogogon.

Print this item

  Grid Pencil Misallignment
Posted by: Abdullah2025 - 01-06-2025, 12:44 PM - Forum: General questions - Replies (7)

The pencil tool does not allign with the tile of a grid even when the grid size and brush size are the same, except for when both are one. Instead on 2 by 2 grid size, the 2 pixel pencil creates like a plus cursor which spills out of the tile. I have enabled snap to grid on, but this still happens. Also I have tried various settings like changing the offset and spacing but they don't fix the problem either. How can this be fixed?



Attached Files Thumbnail(s)
   
Print this item

  HSV missing from Mode menu
Posted by: guylgardner - 01-05-2025, 11:42 PM - Forum: Gimp 2.99 & Gimp 3.0 - Replies (1)

I am trying the smart sharpening recommendation posted on the Gimp web site. But in Image -> Mode menu HSV does not show up as an option 

I am on the current Mac OS version on my M1 Mac mini and just downloaded GIMP from the official website today. 

Why is RSV missing? What do I do t get it to show up?

I appreciate any help you can provide.

I have a bunch of older pics from family and would love to sharpen them up.

See attached screen snap images.

Thanks,
Guy


(01-05-2025, 11:42 PM)guylgardner Wrote: I am trying the smart sharpening recommendation posted on the Gimp web site. But in Image -> Mode menu HSV does not show up as an option 

I am on the current Mac OS version on my M1 Mac mini and just downloaded GIMP from the official website today. 

Why is RSV missing? What do I do t get it to show up?

I appreciate any help you can provide.

I have a bunch of older pics from family and would love to sharpen them up.

See attached screen snap images.

Thanks,
Guy

PS. An older version showed the same thing on this same Mac earlier today.



Attached Files Image(s)
           
Print this item

  How do I fill and avoid smooth brush screwing things up?
Posted by: Jonathan790 - 01-04-2025, 11:59 PM - Forum: General questions - Replies (3)

Any tips? See picture, as you can see the black shadow is messed up as I fill it due to having used a smooth ink tool to draw the lines. Fuzzy select + grow kind of helps but then you lose the benefit of the smooth edges.



Attached Files Thumbnail(s)
   
Print this item

  Help making Predator look better in the image
Posted by: Tygra - 01-04-2025, 12:43 PM - Forum: General questions - Replies (2)

Hi guys,

I am working on the following image that is attached.

If you see, Predator is behind Arnie, but I am not happy with how Predator looks. I think the colours are matched because Predator is quite hard to pick out - its like he's camouflaged in the image. I have tried experimenting with lighting and shadows, but I am a complete novice at this.

My question is: how can I improve Predator in the image?



Attached Files Thumbnail(s)
   
Print this item

  CMYK issue: Krita or Cyan
Posted by: enrimoore - 01-04-2025, 11:27 AM - Forum: Other graphics software - Replies (14)

Hello everybody and happy new year

I am asking here: Cyan is integrated with Gimp.
I need to convert RGB to CMYK for printing.
I wanted to use Cyan or Krita, they seem equivalent.
I found something very odd to me, so after a lot of tests, imho the issue is that  
whatever the optional settings, with the exact same conversion to CMYK, tif and jpg :
a difference of about 95% exists between the jpg and tiff versions 
(using a very consistent application)

The two CMYK versions, tif or jpg, are not even similar obviously. Even visually.

Many other tests suggest that this cannot be caused just by jpg loss of quality.
I would use the tif format, but this strange total difference seems worrying to me.

No idea if somebody way more knowledgeable, can suggest something.
I emailed the developer of Littlecms, but I don't know if they will clarify.
Maybe somebody can just confirm that the tiff version should be correct enough?
Btw, the only format producing an output equivalent to tif, is Photoshop, psd format. 
Also, the result is the same with Krita or Cyan. I think they use Littlecms. 

Thanks for any help or suggestion and best
enri

Print this item

  Gimp, Python versions, and flatpak
Posted by: chrispanda - 01-04-2025, 11:09 AM - Forum: Scripting questions - Replies (4)

I've been writing a python plugin for gimp, using RC2 installed with flatpak.  It's been a steep learning curve but i have it working.
I now want to take some of that code and put it in a standalone python app, since it doesn't actually need the gimp interface

My idea was to simply use the system python and import the necessary gi repository files - but they are already installed inside the flatpak

Is there a way to use the python version installed with gimp and flatpak from outside the flatpak sandbox?
Or should I copy the gi repository files into the system python directories, and if so where?

Many thanks

Print this item

  Gimp, Python versions, and flatpak
Posted by: chrispanda - 01-04-2025, 10:44 AM - Forum: General questions - Replies (1)

I've been writing a python plugin for gimp, using RC2 installed with flatpak.  It's been a steep learning curve but i have it working.
I now want to take some of that code and put it in a standalone python app, since it doesn't actually need the gimp interface

My idea was to simply use the system python and import the necessary gi repository files - but they are already installed inside the flatpak

Is there a way to use the python version installed with gimp and flatpak from outside the flatpak sandbox?
Or should I copy the gi repository files into the system python directories, and if so where?

Many thanks

Print this item

  G'mic 3.5.0
Posted by: Gimper_PP - 01-03-2025, 04:11 PM - Forum: Gimp 2.99 & Gimp 3.0 - Replies (2)

mijn laptop draait op MS Windows 11. hier heb ik GIMP 3 RC2 geïnstaleerd.
vorige versie was GIMP 2.10. daar had ik g'mic geïnstaleerd.
nu heb ik de nieuwe versie van G'mic (3.5.0) maar wanneer ik deze uitvoer komt deze niet zoals vorige versie te voorschijn onder filters in GIMP 3 RC2.

Hoe is dit probleem ontstaan?

Print this item