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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,582
» Latest member: Lindabax
» Forum threads: 7,456
» Forum posts: 40,742

Full Statistics

Latest Threads
GIMP 3.04 opens with wind...
Forum: Windows
Last Post: SteveH
5 hours ago
» Replies: 3
» Views: 162
Bug: gimp-drawable-get-pi...
Forum: Scripting questions
Last Post: Ofnuts
6 hours ago
» Replies: 1
» Views: 92
Cannot Install BIMP to GI...
Forum: Extending the GIMP
Last Post: Ofnuts
7 hours ago
» Replies: 1
» Views: 52
Missing fonts when export...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: chblondel
9 hours ago
» Replies: 9
» Views: 494
Gimp 3.0.4 - Windows 10 -...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: rich2005
Yesterday, 03:02 PM
» Replies: 1
» Views: 92
Macroglossum stellatarum
Forum: Watercooler
Last Post: denzjos
Yesterday, 09:47 AM
» Replies: 2
» Views: 125
Missing script-fu "refres...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: Frenchie
Yesterday, 08:38 AM
» Replies: 11
» Views: 385
processes in Whitelist
Forum: OSX
Last Post: rich2005
07-02-2025, 09:45 AM
» Replies: 5
» Views: 216
Digikam: photo management...
Forum: Other graphics software
Last Post: denzjos
07-02-2025, 06:53 AM
» Replies: 7
» Views: 4,611
AIGoR - Artificial Image ...
Forum: Other graphics software
Last Post: rich2005
07-01-2025, 12:12 PM
» Replies: 10
» Views: 3,137

 
  rembg
Posted by: meetdilip - 12-22-2022, 09:32 AM - Forum: Extending the GIMP - Replies (9)

I have rembg installed locally on 22.04 and it is working fine through Terminal.

https://github.com/danielgatis/rembg

It would be nice to know how to use the GIMP plugin though. Any help will be great.

PS: I am using the GIMP AppImage.  

Thanks.


I added the file from GIMP Chat to the plugins folder for the AppImage, but I do not see any PythonFu entry in the menu

I think the script is for Flatpak and I am using AppImage

There is a line in the script which says

Code:
cmd = "flatpak-spawn --host %s i %s %s %s" % (aiExe, option, jpgFile, pngFile)

Not sure which is the right command for the AppImage

There is also a part which says remove temporary files


Code:
if removeTmpFile:
        if osName == "Windows":
            del_command = "del \"%s%sTemp-gimp-0000.*\"" % (tdir, exportSep)
        else:
            del_command = "rm %s%sTemp-gimp-0000.*" % (tdir, exportSep)
        os.system(del_command)

Is the right command for Ubuntu?

I replaced the Chinese text with English. Not sharing because I have no intention to remove parts of original code distribute.

Looks like I have to install Python2 to get gimpfu working. Because there is a line saying

from gimpfu import *

Tried installing Python 2 and it says

python2 is already the newest version (2.7.18-3).

Not sure how to get the PythonFu working inside GIMP AppImage. Maybe Flatpak version is the only option.

Print this item

  How do you copy paste in a normal human way?
Posted by: tonedef - 12-22-2022, 02:53 AM - Forum: General questions - Replies (2)

I have two layers. I use the lasso tool in one layer to select some portion of an image in layer 1. I now want to copy it and paste it into layer 2. This seems utterly impossible. Ctrl+c should copy what's lassoed. Ctrl+v should paste what was copied into whatever layer I have selected no? Why doesn't it? This seems overly complicated to perform in Gimp.

Really what I want to do is select the inverse of what I select in layer 1 and DELETE it. E.g. I trace the edges of a flower, select the inverse of it, and delete it, and should now be left with a intricate flower, with no background beyond the border I just drew, so that whatever image lies underneath it shines through (i.e. what I deleted is now transparent). But that seems impossible. I have to choose an actual color? Why doesn't delete, delete and fill, fill?

There has to be some menu/option system I'm missing. There is no way this is how it's designed.

Print this item

  How to get a PDF to print at 600 DPI
Posted by: Muzician - 12-21-2022, 01:16 AM - Forum: General questions - Replies (4)

The place I want to have print my image says they prefer pdf, the maximum dpi they can print at is 600 dpi. However, pdf doesn't save at anything but 100 dpi even if I convert a 600 dpi .jpg or .xcf file. 

If I want the maximum 600 dpi quality at the particular dimensions I want with a pdf file, what's the process when going from a jpg or xcf file?

Thanks!

Print this item

  COPYing Layers
Posted by: gaystan - 12-21-2022, 12:02 AM - Forum: General questions - Replies (2)

Hi everybody :

  I'm running GIMP 2.10......Windows 10 64-bit.
  I have a "drawing" of two leaves, joined on the bottom. This is on the background 
  layer.  How do I COPY this to a new layer (with the purpose of rotating /flipping the
  copy ?  And then, using OPACITY, to adjust the two layers into the correct 
  position. After that, use the the FLATTEN command.
  Advice ?
  garystan
document.oncontextmenu = null; document.body.onpaste = null; document.body.onselectstart = null; document.onselectstart = null; document.ondragstart = null; document.body.oncut = null; document.onmousedown = null; document.body.oncontextmenu = null; document.body.oncopy = null; document.body.ondragstart = null; document.body.onmousedown = null;



Attached Files Thumbnail(s)
   
Print this item

  Best way to remove glare
Posted by: Muzician - 12-20-2022, 05:25 AM - Forum: General questions - Replies (9)

I've got a photo of a painting that has an irregularly shaped glare reflection. I've been getting decent results using the Free Select tool and mild stages of brightness/contrast reduction on progressively smaller areas of the image to avoid an obvious border where the filter has been applied but wondering if there's a better, quicker more effective way to do it. 

Thanks!

Print this item

  Texture for Blender
Posted by: meetdilip - 12-20-2022, 03:07 AM - Forum: Other graphics software - No Replies

Hi, I am trying to create my own PBR textures for Blender. The below link says a lot of things about it ( some of them I do not understand )

https://docs.ambientcg.com/books/creating-pbr-materials

In short, a PBR texture inputs colour, roughness, displacement and normal PNGs or JPGs as seen below

[Image: zyKerHW.png]

Wondering whether I can create them using GIMP?

I took a photo on my mobile of a wooden material and applied it as colour, which works. Then I tried roughness and displacement. Roughness using grey scale + Bump map in GIMP and displacement using filter > map > displace.

Both roughness and displacement JPG worked but with little detail added. I guess, my base photo is not very rich in detail (maybe I am wrong because I used a 108MP camera ).

It would be nice to know if such actions can be performed using GIMP.


Looks like GIMP can do it. This is after using Map > Bump and Map > Displace through Filter

[Image: W7PfWmV.png]

Print this item

  At least it was not England v Argentina :)
Posted by: Tas_mania - 12-19-2022, 06:50 AM - Forum: Watercooler - Replies (2)

Commiserations to France for coming so close. Apparently the French were well behaved due to the weather and because they are well behaved.

Print this item

  Recommended workflow to retain maximum quality of an image for printing
Posted by: Muzician - 12-19-2022, 12:06 AM - Forum: General questions - Replies (9)

Starting with a .jpg taken by a cousin with an iPhone of a painting done by a relative. 

Properties of the original .jpg I was sent per Gimp are: 

42" x 56" 
72 ppi
3.7 mb
RGB

It's a pic in sharp focus of the painting in a frame. The plan is to crop out just the painting, straighten it and bring it down to the original size of 23.5" x 29.25" and have it printed with some border around it for framing.

What do you recommend as the optimal workflow to go from the original to a format to have a print made of it and what method of printing do you recommend? Office Depot does prints that size as posters but they use a variety of inkjet printer and I wonder if there's something better that an actual print shop might use. The goal is to retain as much of the sharpness and detail as possible.

What DPI should I use for best results? I gather most places like .pdf as a file to print from? Is there a particular stock you recommend?

Thanks!

Print this item

  Tip of the day
Posted by: ijeniik - 12-18-2022, 05:45 PM - Forum: General questions - Replies (2)

Hello people
it is possible to show Tip of the day after each start of gimp? Huh

Print this item

  The "look" of gradients
Posted by: Ofnuts - 12-18-2022, 10:09 AM - Forum: Tutorials and tips - Replies (4)

Out of curiosity, I made a graph to see the effect of the "blending function" in a gradient, and how it behaves if the midpoint is changed.

   

The "50" gradients have the default midpoint position, and the "75" one have the midpoint dragged to 75% of the range.

To replicate, adapt and run this code in the Python console, and copy/paste the result to a CSV that you feed to your favorite spreadsheet application.

Code:
def valueAt(layer,x,y):
    _,rgb=pdb.gimp_drawable_get_pixel(layer,x,y)
    return sum(rgb[:3])/3.

def dumpLayer(layer):
    y=layer.height/2
    pts=['%.1f' % valueAt(layer,x,y) for x in range(layer.width)]
    print '"%s",%s' % (layer.name, ','.join(pts))

def dumpImage(image):
    for layer in [l for l in image.layers if l.visible]:
        dumpLayer(layer)
        

image=gimp.image_list()[0]
dumpImage(image)

Source XCF also attached.

Edit: some code updates (works with alpha channel, and dumps only visible layers)



Attached Files
.xcf   Gradients.xcf (Size: 384.53 KB / Downloads: 487)
Print this item