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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,624
» Latest member: Josephmally
» Forum threads: 7,490
» Forum posts: 40,883

Full Statistics

Latest Threads
CMYK color mode Gimp 2.10
Forum: Extending the GIMP
Last Post: rich2005
3 hours ago
» Replies: 20
» Views: 82,140
Open, save buttons on bot...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: GrumpyDeveloper
Yesterday, 09:52 PM
» Replies: 8
» Views: 2,943
edit_paste pastes at inco...
Forum: Scripting questions
Last Post: Ofnuts
Yesterday, 09:35 PM
» Replies: 1
» Views: 93
Clone size randomly chang...
Forum: General questions
Last Post: oldschool1@runbox.com
Yesterday, 05:45 PM
» Replies: 2
» Views: 178
AI Gimp Plugins
Forum: Watercooler
Last Post: Zbyma72age
Yesterday, 03:31 PM
» Replies: 20
» Views: 53,459
Gimp closes automatically
Forum: General questions
Last Post: sallyanne
Yesterday, 05:50 AM
» Replies: 2
» Views: 200
AIGoR - Artificial Image ...
Forum: Other graphics software
Last Post: vitforlinux
07-16-2025, 11:10 AM
» Replies: 12
» Views: 3,825
Is This Possible ? Print ...
Forum: General questions
Last Post: sallyanne
07-16-2025, 07:47 AM
» Replies: 4
» Views: 205
Gimp Crash
Forum: Gimp 2.99 & Gimp 3.0
Last Post: rich2005
07-16-2025, 07:16 AM
» Replies: 1
» Views: 147
producing an image
Forum: Gallery
Last Post: MJ Barmish
07-15-2025, 06:37 PM
» Replies: 0
» Views: 111

 
  Math problem
Posted by: Ofnuts - 05-02-2023, 08:45 AM - Forum: Watercooler - Replies (18)

Given a pattern of regularly spaced lines of equal width, over which moves a sliding window, can you compute the total visible width of the lines (or of the spaces), based on:

  • Window width
  • Spaces width
  • Lines width
  • Position of window (as an offset to the first space, for instance, but any other measure of you choice is OK
   


Iterating is prohibited (that's the hard part)

Print this item

  splash screen
Posted by: DearDeparted - 05-02-2023, 02:07 AM - Forum: General questions - Replies (1)

Hi GIMPies!

Is it possible to change the splash screen of gimp into an image you choose yourself? I think it would be cool to personalize gimp.
I don't find something in the settings but I m not afraid to change some files if somebody can explain.
I don't know if it's possible Blush 
I use Windows.

Print this item

  android
Posted by: DearDeparted - 05-02-2023, 12:18 AM - Forum: General questions - Replies (2)

Hi GIMPies!

Is there an official gimp for android?
I was searching google play store and then i found a suspicious gimp from 'userland technologies' that costs 2.19 euro...

If it's not on the official website, it meand it's not official?

Print this item

  batch processing images
Posted by: DearDeparted - 05-01-2023, 09:24 PM - Forum: Extending the GIMP - Replies (3)

Hello everybody!

I have a folder of images and I want to first scale them (50% of original size , horizontal and vertical) and after that select the same part inside the image and save it as an image.

I have questions about this:

  • how can I use GIMP for batch processing images?
  • is there a way I can automate the 2 things (always the same for each image) I explained above?
Please give step by step explanation, since i'm a complete beginner to GIMP Blush 

Retroarchgirl

Print this item

  Photoshop skin tone matching help
Posted by: kidbwapo - 05-01-2023, 08:41 AM - Forum: General questions - Replies (7)

Hi
I need some photoshopping help. I have a beach pic with a bunch of people in it and I need to photoshop another person in from a different picture. I'm having real trouble matching the skin tones from the photoshopped image to make it look reasonably authentic.

Is there an easy way to do this or a good guide anywhere?
Thanks
KB

Print this item

Heart unshred layer
Posted by: DearDeparted - 04-30-2023, 03:50 AM - Forum: Extending the GIMP - Replies (15)

Hello everybody!

I'm an autistic girl trying to do the following article

https://www.tumblr.com/lowpursuit/168019...ts-a-guide

I have 2 questions since i'm a complete gimp beginner. I have the program installed on windows 10.

1. Where can I download the unshred layer plugin? I can only find the 'shred' one on sourceforge Sad 

2. How to install the plugin if anybody can give me the download link?

Thanks so much for this great forum
I will have a lot to learn in gimp Heart 

Retroarchgirl


I forgot to say I use gimp 2.10.34!

Print this item

  file_png_save2 gives Permission Denied error, but can save through File menu
Posted by: Leonide - 04-29-2023, 09:15 PM - Forum: Scripting questions - Replies (5)

I'm trying to write a script to automate some things for a project I'm working on, and one of the steps is saving a file as a png. I'm using file_png_save2. When running the script, it errors out with a "Permission Denied" message. However, I can save files to the same folder with no issue if I go through File->Export.
I'm running Gimp 2.10 on Windows 11. Here is the code for the script so far:

#!/usr/bin/python
 
from gimpfu import *

baseURL = "C:\\Users\\MyID\\OneDrive\\Pictures\\ScriptTest\\"
 
def char_img_164(image, drawable, imgid):
    pdb.gimp_edit_copy(image.layers[0])
    newImg = pdb.gimp_edit_paste_as_new_image()
    pdb.gimp_image_scale(newImg, 164, 164)
    dispImg = pdb.gimp_display_new(newImg)
    layer = pdb.gimp_image_merge_visible_layers(newImg, CLIP_TO_IMAGE)
    pdb.file_png_save2(newImg, layer, baseURL + "test1",imgid+".png",0,9,0,0,0,0,0,0,0)
 
register(
   "char_img_164",
   "Image test",
   "Test script",
   "MyID",
   "MyID",
   "2023",
   "<Image>/Image/ScriptTest/IMG164",
   "*",
   [
       (PF_STRING, "imgid", "Enter ID", "hello")
       ],
   [],
   char_img_164)
 
main()

Print this item

  SVG Explorer Extension - Viewer
Posted by: Krikor - 04-28-2023, 01:19 AM - Forum: Other graphics software - No Replies

SVG Explorer Extension

I was always bothered by not being able to view the images in explore in svg format.
In my case they only appeared with the icon of the program associated with that extension.

However, I found a way to solve the situation.

By installing the SVG Viewer Extension I can now view images in svg format!!

Interested parties can find the program at:

https://github.com/tibold/svg-explorer-e...n/releases

Print this item

  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