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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,739
» Latest member: TimBondy
» Forum threads: 7,231
» Forum posts: 39,471

Full Statistics

Latest Threads
Gimp 3.0 print menu missi...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: Photomar2025
59 minutes ago
» Replies: 3
» Views: 65
GIMP 3.0 is here!
Forum: Gimp 2.99 & Gimp 3.0
Last Post: charlie84
4 hours ago
» Replies: 0
» Views: 39
ofn3-align-layers
Forum: Extending the GIMP
Last Post: Ofnuts
5 hours ago
» Replies: 5
» Views: 811
Artbox
Forum: Alternate Gimp packagings
Last Post: pixelmixer
6 hours ago
» Replies: 3
» Views: 134
Gimp 3.x scanner xsane pl...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: henry88g
7 hours ago
» Replies: 3
» Views: 1,218
transform tools in action
Forum: Tutorials and tips
Last Post: denzjos
7 hours ago
» Replies: 0
» Views: 33
Help with unusual request
Forum: General questions
Last Post: rinaldop
10 hours ago
» Replies: 3
» Views: 278
Move tool very slow
Forum: General questions
Last Post: Photoniker
03-16-2025, 02:29 AM
» Replies: 2
» Views: 287
How long do ethernet cabl...
Forum: Watercooler
Last Post: Tas_mania
03-15-2025, 08:14 PM
» Replies: 3
» Views: 324
How to remove the right-s...
Forum: General questions
Last Post: dacq
03-15-2025, 07:13 PM
» Replies: 3
» Views: 356

 
  weird pencil brush behavior
Posted by: DearDeparted - 04-27-2023, 10:48 PM - Forum: General questions - Replies (1)

[attachment=9735]
i currently use the "pixel (1x1)" pencil brush to draw with. with this brush, most brush sizes look somewhat off. its most noticeable in the 2px brush, although you can still see the problem in other sizes. it looks all jagged and messy, see attached screenshot
i might be simply missing or overlooking something, im not too familiar with the way brushes work in gimp
any help to fix this is appreciated!

Print this item

Question Crop Scale Desaturate script - ChatGPT seems to make a mess
Posted by: tkemmere - 04-26-2023, 09:24 PM - Forum: Scripting questions - Replies (2)

Hi,

To not unnecessarily bother the people on this forum, I tried to have ChatGPT put a script togther for me. But ChatGPT cannot manage, however hard I try to prompt it clearly.

Here's the question:

Write me a complete python script for the Gimp that does the following for me. I will start by manually activating the crop tool and marking an area for cropping. after I mark the area I want to start the script and then it does the following for me:
- Run a crop on the crop selection I already made;
- Adjust the longest side of the image to 2000 pixels, (and the other side to ratio)
- Reduce the saturation to 0


The best it came up with after about 10 attempts, was this:

Code:
def crop_scale_desaturate(image, drawable):
    # Crop the image to the current selection
    pdb.gimp_edit_clear(drawable)
    pdb.gimp_selection_none(image)
    pdb.gimp_selection_invert(image)
    pdb.gimp_edit_cut(drawable)
    pdb.gimp_selection_none(image)

    # Scale the image to a maximum size of 2000 pixels on the longest side
    max_size = 2000
    width, height = drawable.width, drawable.height
    if width > height:
        scale_width = max_size
        scale_height = (height * max_size) // width
    else:
        scale_width = (width * max_size) // height
        scale_height = max_size
    pdb.gimp_image_scale(image, scale_width, scale_height)

    # Desaturate the image
    pdb.gimp_desaturate_full(cropped_image, DESATURATE_LIGHTNESS)

    # Show the results
    gimp.displays_flush()

This is sort of the best of the 10 worlds. Is it close? It is not working, that is for sure. The closest that I got to result, was the whole image resized and a black rectangle in the middle...

I have no idea why it needs to clear / select none / invert / cut / select none. I would just want to "hit enter", since I already made the selection ready for cropping. But I guess that does not exsist.
When I ask it why we need all those, GPT says that it is not needed, but then it puts it right back in every time. I guess this is called hallucinating.

I also tried with rectangular selection (instead of using the croptool), and crop from there, But I can't get that to work either.


Code:
    # get current selection
    selection = pdb.gimp_selection_save(image)

    # Crop image
    pdb.gimp_edit_copy(drawable)
    cropped_image = pdb.gimp_edit_paste_as_new()
    pdb.gimp_floating_sel_to_layer(cropped_image)
    pdb.gimp_selection_none(image)

    # Crop prev selected area
    pdb.gimp_image_select_item(image, CHANNEL_OP_REPLACE, selection)
    pdb.gimp_edit_clear(cropped_image)
    pdb.gimp_selection_none(image)

How would you go about this?

Resizing, desaturation and registration are working.

Thanks, Thomas.

Print this item

  how to print a photo on a 10 cmx15 cm paper
Posted by: Denis - 04-26-2023, 02:51 PM - Forum: General questions - Replies (2)

Hello
I can't print a photo on a 10 cm x 15 cm paper
However I size the photo well with "print size".
With "page setup" I select the 10x15 format (4" 6")
Then with "print" I choose the paper size 10x15 in the driver of my printer (canon TS8300 series)
But the print preview shows me a 10x15 photo on an A4 sheet
Same problem when I ask for "without margin" or "without border" or "to the scale of the paper" ... it doesn't work
Thanks for your help
Sincerely

Translated with http://www.DeepL.com/Translator (free version)

Print this item

  How can I reset this number to 0 without to have to quit the software?
Posted by: Watler253 - 04-25-2023, 07:05 PM - Forum: General questions - Replies (5)

[Image: GIMP.png]

I tried to search for it but couldn't find anything to it cause I think I don't use the good key word for it (non native english). Please is there a way to reset this number? If so, how can I do?

Print this item

  Installing plug-ins on the Mac
Posted by: MikeFromAJ - 04-25-2023, 03:17 PM - Forum: Extending the GIMP - Replies (2)

I am completely new to Gimp so perhaps that is why I am having this issue, but all of my attempts to install plug-ins for Gimp on the Mac seem to fail. Either that or I don't know where to find them to use when restarting Gimp. I have now tried 3 processes, none of which seem to have worked.

1) I opened the Gimp Preferences pane and opened the Folders -> Plug-ins pane. There was a path specified for plug-ins under Users/Library/Application Support/GIMP and, since it did not exist, I created it and copied the plug-ins to that path. I then restarted Gimp but could not find any plug-ins listed in the Gimp dropdown that I checked (Filters, Tools, Image and Edit).

2) I then copied the plug-ins directly to the Gimp.app Contents path specified in the same Plug-ins pane, restarted Gimp and still could not find the plug-ins. I then restarted the Mac, but that did not help.

3) I then added a link in the pane to the existing Photoshop plug-ins folder on my disc, restarted Gimp but no luck. Still can not find any reference to the plug-ins in Gimp.

I am running Gimp 2.10.34, which was the latest version I found online when I downloaded it, and my Mac is running Monterey, 12.2.1. It is running on an Intel MacBook Pro, which I am using in clamshell mode, although I don't assume that makes any difference. The plug-ins I am using are from Topaz and Skylum and have worked well in my other photo editor (PhotoLine) and perhaps they are properly installed and working with Gimp but I just can't find them. Any help would be appreciated.

Thank you.

Print this item

  Gimp 'Dust and Scratch'
Posted by: warrentdo - 04-25-2023, 07:02 AM - Forum: General questions - Replies (4)

Hello, its a question I have kept asking over the years.
Does gimp have a solution to removing dust and scratches from an image like Photoshop 'Dust and Scratch'?

Regards,

Warren.

Print this item

  Just because I made it to try something
Posted by: Ofnuts - 04-24-2023, 08:20 PM - Forum: Gallery - Replies (1)

   

Print this item

  I need a gal/guy using the Microsoft's Windows OS
Posted by: PixLab - 04-24-2023, 03:56 AM - Forum: General questions - Replies (9)

Jeeezzz, I would have never ever thought I would say that one day ?

I'm preparing a tutorial, and I just want to see if it's compatible with Windows without me going to some tricky thing for that OS

What I need you to do:

Create a folder, put a little png inside, name it myimage.png
Open CMD or powershell from that folder, or cd in/to it
and input that code (copy paste if you named your png as "myimage.png")

Code:
for i in {00..10}; do cp myimage.png file-$i; done

This code will make 10 copy of your image inside that folder, BUT, and I say BUT, there should be NO extension (like ".png") on the 10 copies, I know that the Microsoft's windows OS is incapable to manage file without extension (maybe in this case it will add the extension automatically? or keep the original one? I don't know)

Case 1:
Windows throw errors as it will not accept to write without extension = no copies > Please report

Case 2:
Windows add an extension automatically or keep the original extension, you have copies with extension with something like "00.png" "01.png" "02.png" etc... > Please report

Case 3: (the one I'm interested in)
Windows does it, even it's not happy, you got the copies WITHOUT extension, but your explorer is not showing the thumbnail, that's OK > your files are named like this "00" "01" "02" etc...
If so > Open GIMP, import all file without extension > as layers > Does GIMP on Windows open them? Please Report

Thank you (you can delete that folder now)

Note: You might think "but what the.. is wrong to have the extension"
- Nothing, but for this very tuto, if it can via terminal I don't have to make some special tricks just for Windows, thus the tuto will be WAY shorter (and yes it's a GIMP tuto even if it sounds strange Big Grin )

Print this item

  How to apply the same adjustments to multiple images?
Posted by: ajax - 04-23-2023, 08:10 PM - Forum: General questions - Replies (7)

The idea of being able to apply the same post processing operations (i.e., adjustments) on multiple image files is a pretty conventional idea in most post processing software used to manipulate image files.  GIMP maintains a history of operations applied to a given file and allows undoing/redoing past operations.  However, I haven't found any method to preserve the complete set of operations applied to an image file in such a way that it can be subsequently applied to another file.  As best I can tell this is true even when loading multiple image files into the same instance of GIMP.

Have I failed to figure out how to do something that seems like a pretty basic feature that just about anybody would find helpful?  In fact, it looks like the only way to do this would require maintaining a separate record of every change applied to an image and then repeating all of those steps.  If so this is quite arduous and difficult to be certain about the accuracy in a reliable manner.

Print this item

  Revert to 2.10.32?
Posted by: david - 04-22-2023, 05:03 PM - Forum: Linux and other Unixen - Replies (18)

Ubuntu 20.04

Current version:
GIMP 2.10.34-1build6-ubuntu2004(focal)

Since the recent upgrade to 2.10.34 I have found it unstable - particularly for selections. Today I did a mask to selection and then found it impossible to save the selection to a channel or to exit the display of the mask. I have also found problems using colour invert, a primary blue changed to a pale blue rather than yellow. Certain operations also are very slow compared with the previous 2.10.32 version.

Is it possible to revert to 2.10.32 and retain my Python 2.7 support? (Synaptic only offers 2.10.18 as an alternative.)

I have downloaded gimp-2.10.32.tar.bz2 in case that will be of use.

I would appreciate advice before I make things worse!!!

Print this item