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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,355
» Latest member: Raymondoxipt
» Forum threads: 6,662
» Forum posts: 36,307

Full Statistics

Latest Threads
Downloaded the full gimps...
Forum: Watercooler
Last Post: vitforlinux
2 hours ago
» Replies: 2
» Views: 195
Darktable Images Opening ...
Forum: Windows
Last Post: sallyanne
Today, 03:54 AM
» Replies: 2
» Views: 93
[SUGGESTION] Improved uni...
Forum: General questions
Last Post: Ofnuts
Yesterday, 09:48 PM
» Replies: 4
» Views: 164
Currently Active Image
Forum: Scripting questions
Last Post: Ofnuts
Yesterday, 09:32 PM
» Replies: 3
» Views: 153
Getting active image and ...
Forum: Tutorials and tips
Last Post: Ofnuts
05-02-2024, 07:32 AM
» Replies: 0
» Views: 123
python-fu pdb.file_exr_sa...
Forum: Scripting questions
Last Post: JBreckeen
05-01-2024, 03:12 PM
» Replies: 0
» Views: 102
Threading / Loops in Pyth...
Forum: Scripting questions
Last Post: JBreckeen
05-01-2024, 02:46 PM
» Replies: 14
» Views: 1,455
how do i erase blue penci...
Forum: General questions
Last Post: rich2005
05-01-2024, 07:21 AM
» Replies: 1
» Views: 124
Align Tool: Distribute ta...
Forum: General questions
Last Post: akn_39
04-30-2024, 10:08 PM
» Replies: 3
» Views: 3,144
Script Collection Online
Forum: Scripting questions
Last Post: rgbellotti
04-30-2024, 01:35 AM
» Replies: 1
» Views: 436

 
  How to read transparency level ?
Posted by: GauSte - 01-31-2023, 02:57 PM - Forum: General questions - Replies (2)

Hello,
I open a picture with several shapes with several transparency colours.

I would like to pick the colour and the transparency level.
If I use the colour picker tool, I can read the RGB levels for the color, but I can't find the transparency level.

Where can I find it for this pixel ?

Thanks

Print this item

  Trying to cut 4 equal corners off an image
Posted by: razzer - 01-31-2023, 04:50 AM - Forum: General questions - Replies (4)

Hi , so i am new with gimp and am trying to cut 4 equal corners off an image. So i made a triangle with the path tool  and connected it, so then i can choose " selection from path " and in edit mode i can cut or delete that triangle out. 
                                                                But after that i get lost , i want to then just move the triangle and rotate it and move it to another corner and cut that corner out . Then do that to the 2 remaining corners. Though i seem to not be able to just rotate and move the triangle into position very easily. I can lock it and name it , but it don't seem to rotate . Any help? thanks

Print this item

  Python Fu - Math operations failing
Posted by: BaconWizard17 - 01-31-2023, 03:44 AM - Forum: Scripting questions - Replies (4)

Hi all,

I'm setting up a script, and part of it is to scale the image to a max size of 256 for one type of texture and a max size of 128 for a different type of texture. That aspect isn't working, so I isolated it into a separate script, and it's still not working. I've managed to figured out where the issue is happening, but not why. Here's the isolated code:

Code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from gimpfu import*
   
def resizeMax(image, layer, texType):
   # Determine the max size based on the texture type:
   if texType == 0:
       # primary texture
       maxSize = 256
   else:
       # secondary texture
       maxSize = 128
   # Get the current dimensions of the image
   currentWidth = image.width
   currentHeight = image.height
   # Check which is bigger
   if currentWidth >= currentHeight:
       # Wide image or square
       scaleFactor = maxSize / currentWidth
       pdb.gimp_message("DEBUG: Scale Factor is")
       pdb.gimp_message(scaleFactor)
   else:
       # Tall image
       scaleFactor = maxSize / currentHeight
       pdb.gimp_message("DEBUG: Scale Factor is")
       pdb.gimp_message(scaleFactor)
   # Get the new sizes
   newWidth = scaleFactor * currentWidth
   newHeight = scaleFactor * currentHeight
   # scale the image accordingly
   pdb.gimp_image_scale(image, newWidth, newHeight)
   # Resize the layer to the image size
   pdb.gimp_layer_resize_to_image_size(layer)
   # Display the changes
   pdb.gimp_displays_flush()

def resizeMaxMain(image, layer):
   resizeMax(image, layer, 0)
   
register(
   "python_fu_test_resize_max",
   "",
   "",
   "BaconWizard17",
   "BaconWizard17",
   "January 2023",
   "Resize to Max Size",
   "*",
   [
       (PF_IMAGE, "image", "Input image", None),
       (PF_DRAWABLE, 'drawable', 'Layer, mask or channel', None)
   ],
   [],
   resizeMaxMain,
   menu='<Image>/Test'
)

main()

The issue is the line where the scaleFactor is being determined. For whatever reason, scaleFactor = int(maxSize) / int(currentWidth) is giving a value of 0, even though maxSize is nonzero (defined as 256) and currentWidth is also nonzero (512 in the image I was testing). I used pdb.gimp_message() to verify the values right before the operation, and they're what I expect. Maybe I'm doing the division wrong? I also tried converting maxSize and currentWidth to integers (with int()), but that didn't change anything either. Any thoughts would be appreciated.

Print this item

  querying new plugins on startup forever
Posted by: Cotillion - 01-30-2023, 11:33 AM - Forum: Windows - No Replies

hi there currently at my wits end i've had gimp running with no issues on my computer with no issues for months however i installed (successfully) the resythesisor plug-in the other day(successully) i was using it for a few days then woke up one day (may or may not have been after update for widows 11 im not sure, tried rolling it back already anyways no dice) and the resythesisor plug-in was nowhere to be found and after exiting gimp completely i could no longer get into it at all. when i try it starts re installing my other apps eg; wordpress, visual studio code, github desktop and a few more i dont remember off the top of my head although a common denominator here is that they are all recent additions ive played it out installing them again and skipping/cancelling them and gimp never progresses past  "querying new plug-ins" . so i've gone to the gimp file location and found the plug in folder thinking that it must have been something i screwed up in there but i cant find anything weird, mind you im no hawk-eye does this sound familiar to anyone or do you guys have any recommendations? greatly appreciated have a good day

Print this item

  New Ubuntu 22.04
Posted by: meetdilip - 01-30-2023, 06:05 AM - Forum: Installation and usage - Replies (5)

Hi, I  have a new Ubuntu 22.04 install.


I have both Flathub version and AppImage version. Which one should I use for 2.10?

I added layerfx.py to both, but I cannot see it in GIMP. I added the .scm version of layer effects, also added the 3 .so files from LinuxBeaver . Only the .scm version is detected.

Would be nice if you can help me set up a fully functional GIMP. Thanks.


I got the latest Python2 install, but still no luck.

v 2.7.18

Print this item

  Novel Cover
Posted by: DCDP - 01-29-2023, 10:42 PM - Forum: Gallery - Replies (3)

Hello everybody

First, I share you my current work : a cover for SF novel.

Secondary, I need some tips because I'm not totally satisfied of my work.
The spaceship and space background are like I want: close to a artificial work.

But the planet seems too real and too different graphically in comparison of the spaceship.
I tried a lot of setting and modulations without a good rendering (as I want).

Could you help me with some advices that might send me in other ways.

Thanks a lot.
I'm sorry if it is not the right topic trend.

[Image: Test41Rebels2Illust.png]

Print this item

  Eraser not working
Posted by: SoundOfSilence02 - 01-29-2023, 09:54 PM - Forum: General questions - Replies (9)

I use Gimp to clean up JPG files, primarily using the eraser tool. The eraser suddenly quit working, probably because I accidently clicked on something I shouldn't have. I have done Google searches and followed all the suggestions I've found. Nothing has worked. I have un-installed Gimp and reinstalled it. Didn't fix it. I have reset everything to defaults. Didn't fix it. Can anyone help?

Thank you!

Print this item

  Chrome Text
Posted by: meetdilip - 01-29-2023, 01:49 PM - Forum: General questions - Replies (4)

I was told that Layer Effect can help create one like this.

[Image: B1D9VH8.png]

Not sure how to produce one.

Print this item

  changing active layers
Posted by: salamander017 - 01-29-2023, 06:54 AM - Forum: Scripting questions - Replies (9)

Hello all. I just got into gimp and also have very little knowledge in scripting.

I have 2 black and white files with little difference.
I want to compare them using gimp.
For the process, I import the 2 files in different layers.
Then, using color exchange, I change the black to blue in one layer.
Then change black to red in the other layer. 
The blending for the second layer will be multiply.

My script below gets an error when setting the second layer active I think.

(define (script-fu-set-active-layers image layer)
  (let* (
    (layer-list (gimp-image-get-layers image))
    (layer1 (car layer-list))
    (layer2 (cadr layer-list))
  )
    (gimp-image-set-active-layer image layer1)
    (plug-in-exchange RUN-NONINTERACTIVE image layer 0 0 0 255 0 0 0 0 0)
    (gimp-image-set-active-layer image layer2)
    (plug-in-exchange RUN-NONINTERACTIVE image layer 0 0 0 0 0 255 0 0 0)
  )
  (gimp-displays-flush)
)

Thank you very much.

Print this item

  image with various objects
Posted by: Daddaj - 01-28-2023, 07:44 AM - Forum: General questions - Replies (6)

Hello everyone
I am new to Gimp. I am not familiar with much of the terms so I couldn't research my question. I hope someone here will help me.
What is called an image with various objects of the same theme? I suppose such objects are meant for extraction as separate images to be used singularly. If so, how to do that using gimp? 

Thank you a lot

Daddaj

Print this item