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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,345
» Latest member: Dannysb
» Forum threads: 6,657
» Forum posts: 36,282

Full Statistics

Latest Threads
creases
Forum: General questions
Last Post: PixLab
1 hour ago
» Replies: 9
» Views: 233
.
Forum: General questions
Last Post: ldd2
2 hours ago
» Replies: 0
» Views: 18
Question about selection ...
Forum: General questions
Last Post: PixLab
Yesterday, 11:02 AM
» Replies: 3
» Views: 142
How good are you at guess...
Forum: Watercooler
Last Post: Krikor
04-27-2024, 12:56 PM
» Replies: 15
» Views: 464
Color change
Forum: General questions
Last Post: rinaldop
04-26-2024, 04:07 PM
» Replies: 5
» Views: 260
Scaling an image to a fix...
Forum: General questions
Last Post: denzjos
04-26-2024, 03:25 PM
» Replies: 4
» Views: 236
AppImages and Help Files
Forum: Alternate Gimp packagings
Last Post: CtrlAltDel
04-26-2024, 10:37 AM
» Replies: 2
» Views: 156
How do I make this image ...
Forum: General questions
Last Post: Krikor
04-26-2024, 09:23 AM
» Replies: 4
» Views: 175
How do I remove the backg...
Forum: General questions
Last Post: PixLab
04-26-2024, 12:40 AM
» Replies: 4
» Views: 248
I Have A Custom Ubuntu 24...
Forum: Alternate Gimp packagings
Last Post: Tas_mania
04-25-2024, 11:00 PM
» Replies: 5
» Views: 665

 
  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

Python using python scripts wiht gimp 2.10 flatpak
Posted by: jacques_duflos - 04-20-2023, 09:16 PM - Forum: Scripting questions - Replies (3)

Hi there,
I recently installed ubuntu 22.10 and gimp 2.10 via flatpak. I tried to create a script with python as I was used to on previous installations, but I cant get gimp to acknowledge my scripts. I checked the folders in the preference menu, I had to create the folder because it was not done by the installation for some reason.

here is the script of my .py file

Code:
:~/.config/GIMP/2.10/scripts$ cat clothfy.py
#!/usr/bin/python
import math
from gimpfu import *

have_gimp11 = gimp.major_version > 1 or \
          gimp.major_version == 1 and gimp.minor_version >= 1

def python_clothify(timg, tdrawable, bx=9, by=9,
            azimuth=135, elevation=45, depth=3):
    bx = 9 ; by = 9 ; azimuth = 135 ; elevation = 45 ; depth = 3
    width = tdrawable.width
    height = tdrawable.height
    img = gimp.image(width, height, RGB)
    layer_one = gimp.layer(img, "X Dots", width, height, RGB_IMAGE,
                   100, NORMAL_MODE)
    img.disable_undo()
    if have_gimp11:
        pdb.gimp_edit_fill(layer_one)
    else:
        pdb.gimp_edit_fill(img, layer_one)
    img.add_layer(layer_one, 0)
    pdb.plug_in_noisify(img, layer_one, 0, 0.7, 0.7, 0.7, 0.7)
    layer_two = layer_one.copy()
    layer_two.mode = MULTIPLY_MODE
    layer_two.name = "Y Dots"
    img.add_layer(layer_two, 0)
    pdb.plug_in_gauss_rle(img, layer_one, bx, 1, 0)
    pdb.plug_in_gauss_rle(img, layer_two, by, 0, 1)
    img.flatten()
    bump_layer = img.active_layer
    pdb.plug_in_c_astretch(img, bump_layer)
    pdb.plug_in_noisify(img, bump_layer, 0, 0.2, 0.2, 0.2, 0.2)
    pdb.plug_in_bump_map(img, tdrawable, bump_layer, azimuth,
                 elevation, depth, 0, 0, 0, 0, TRUE, FALSE, 0)
    gimp.delete(img)

register(
    "python_fu_clothify",
    "Make the specified layer look like it is printed on cloth",
    "Make the specified layer look like it is printed on cloth",
    "James Henstridge",
    "James Henstridge",
    "1997-1999",
    "<Image>/Filters/Artistic/Clothify",
    "RGB*, GRAY*",
    [
        (PF_INT, "x_blur", "X Blur", 9),
        (PF_INT, "y_blur", "Y Blur", 9),
        (PF_INT, "azimuth", "Azimuth", 135),
        (PF_INT, "elevation", "elevation", 45),
        (PF_INT, "depth", "Depth", 3)
    ],
    [],
    python_clothify)
main()

some ideas of troubleshooting I can think of :
- this example of python script is very old. Where could I find a more recent one ?
- flatpak is a kind of sandbox isn't it ? is there a complementary operation I should do for gimp to accept to read a .py file ?
- the first line of the code says /usr/bin/python . but my /usr/bin folder does not contain any python file or folder. It contains python3, python3.10, python3-config and other stuffs starting with python3. Is it an issue ?

Any idea someone ?

Print this item

  Getting weird black lines on custom brush and Track Direction
Posted by: simon2 - 04-20-2023, 12:12 PM - Forum: General questions - Replies (5)

Hi,

I'm trying to make a custom brush with a gradient and then use the paintbrush tool with the "Track Direction" dynamics to give the gradient to a line that I'm drawing. The brush works fine without dynamics, but when I apply the "Track Direction" dynamics, I get these weird artefacts. Per the image below:

[Image: ICcj0bq.png]

I attach my brush, in case it's something I've done wrong making the brush.



Attached Files
.gbr   fire spell.gbr (Size: 16.04 KB / Downloads: 140)
Print this item

  For a couple of seconds, I thouhgt it was a pattern fill
Posted by: Ofnuts - 04-20-2023, 11:46 AM - Forum: Watercooler - Replies (3)

Image is here.

On the whole, his cartoons are spot on (I especially enjoy the ones on science), and I love the minimalist style.

Print this item

Information Put something in a hand
Posted by: K-Z - 04-19-2023, 05:59 PM - Forum: General questions - Replies (4)

Good day!

I am new to Gimp and already learned a lot from the forum, thanks for everything.
However i have 1 question.
I would like to photoshop something in a hand, a phone for example sometimes.
However, when I paste a new layer over the existing photo, the thing covers the whole hand. How do i get the fingers from the background to 'hold' the item in the hand? so that the hand is behind the item, but it looks like the fingers hold it.

thanks in advance!!! you are doing a great job all Smile


I mean something like this:

[Image: stock-afbeelding-hand-met-telefoon-image7508631]

But when i try it, the phone covers the whole hand, also the thumb that's covers it

Print this item

  Easy Way To Generate Random, Secure Passwords On Linux
Posted by: Tas_mania - 04-18-2023, 01:36 AM - Forum: Watercooler - No Replies

There has been a lot of scams and data loss this year. I found this way to make secure passwords on my Ubuntu-based system.

#  openssl rand -base64 14

The base64 supports standard keyboards and leaves '=' at the end of passwords. They can be left out is you want.

Print this item

  Old "glossy" plugin?
Posted by: MarisaG - 04-16-2023, 12:13 PM - Forum: Extending the GIMP - Replies (2)

I use the "glossy" plugin all the time, but it seems to be removed in recent versions of Gimp. I had a copy saved off but can't find it. Can anyone post it or tell me where I can find it? Thx!

Print this item

  gimp Tools text select text and hover to see name of the font when not installed on s
Posted by: JJGimp - 04-14-2023, 04:47 PM - Forum: General questions - Replies (1)

Hello, I had to reinstall gimp and some of the fonts in my previously created xcf files are not "on the system" - I need to make an edit and need to find out what the font is to reinstall it. Somehow when I was on the text layer and selected "Tools > Text" and selected the text, while the text box was in red and said "Standard" (Since font not on system) there was a "pop up"? that identified the font. When I try to duplicate this for another font style, I can't. Does anyone know what the steps are to see this?

Thank you!

Print this item

Scheme Editing max and min .scm
Posted by: Krikor - 04-14-2023, 01:57 PM - Forum: Extending the GIMP - Replies (5)

Hey guys,

I would like a small favor.

I would like to change a script so that it allows me to enter 0 (zero) as a minimum value and 2000 as a maximum value.

The script in its original form only allows me to enter values from 1 to 500.

I thought of manually editing the values in the .scm file, changing the values 1 to zero and 500 to 2000 respectively, but when in doubt I decided to ask for help.

Below the .scm

Code:
; Luigi Chiesa 2008.  No copyright.  Public Domain.
; Add a grid of guides
; 2012 R. Antonishen - modified to allow creating a grid of guides based of the active layer rather than the image canvas

(define (script-fu-grid-guides InImage InSource InHGrid InVGrid InMode InBorder)
 (gimp-image-undo-group-start InImage)
 (let* (
       (width (if (= InSource 0) (car (gimp-image-width InImage)) (car (gimp-drawable-width (car (gimp-image-get-active-drawable InImage))))))
         (height (if (= InSource 0) (car (gimp-image-height InImage)) (car (gimp-drawable-height (car (gimp-image-get-active-drawable InImage))))))
       (divH (if (= InMode 0) (/ width InHGrid) InHGrid))
       (divV (if (= InMode 0) (/ height InVGrid) InVGrid))
       (InHGrid (if (= InMode 0) InHGrid (/ width InHGrid)))
       (InVGrid (if (= InMode 0) InVGrid (/ height InVGrid)))
       (hcount 1)
       (vcount 1)
       (xoff (if (= InSource 0) 0 (car (gimp-drawable-offsets (car (gimp-image-get-active-drawable InImage))))))
       (yoff (if (= InSource 0) 0 (cadr (gimp-drawable-offsets (car (gimp-image-get-active-drawable InImage))))))
       )
       
   (if (= InBorder TRUE)
     (begin
       (if (and (>= yoff 0) (<= yoff (car (gimp-image-height InImage))))(gimp-image-add-hguide InImage yoff))
       (if (and (>= (+ yoff height) 0) (<= (+ yoff height) (car (gimp-image-height InImage)))) (gimp-image-add-hguide InImage (+ yoff height)))
       (if (and (>= xoff 0) (<= xoff (car (gimp-image-width InImage)))) (gimp-image-add-vguide InImage xoff))
       (if (and (>= (+ xoff width) 0) (<= (+ xoff width) (car (gimp-image-width InImage)))) (gimp-image-add-vguide InImage (+ xoff width)))
     )
   )
    
   (while (< hcount InVGrid)
     (if (and (>= (+ yoff (* divV hcount)) 0) (<= (+ yoff (* divV hcount)) (car (gimp-image-height InImage)))) (gimp-image-add-hguide InImage (+ yoff (* divV hcount))))
     (set! hcount (+ hcount 1))
   )

   (while (< vcount InHGrid)
     (if (and (>= (+ xoff (* divH vcount)) 0) (<= (+ xoff (* divH vcount)) (car (gimp-image-width InImage)))) (gimp-image-add-vguide InImage (+ xoff (* divH vcount))))
     (set! vcount (+ vcount 1))
   )

    (gimp-image-undo-group-end InImage)
 (gimp-displays-flush)
 )
)

(script-fu-register
 "script-fu-grid-guides"
 "<Image>/Image/Guides/Grid"
 "Add a grid of guides by specifying either the number of guides or the guide spacing"
 "Luigi Chiesa and Rob Antonishen"
 "Public Domain"
 "November 2009"
 "*"
   SF-IMAGE      "Image"   0
    SF-OPTION       "Based on" '("Image Canvas" "Active Layer")    
    SF-ADJUSTMENT    "Horizontal"    '(2 1 500 1 10 0 1)
    SF-ADJUSTMENT    "Vertical"    '(2 1 500 1 10 0 1)
    SF-OPTION       "Mode" '("Number of Divisions" "Spacing of Guides (px)")    
   SF-TOGGLE "Border guides?" FALSE
)

Thanks in advance!

Print this item

  Make one large image by tiling many smaller images in specified order?
Posted by: jupiter - 04-14-2023, 09:48 AM - Forum: General questions - Replies (10)

How do you get GIMP to make one large image out of about 6,800 small (256x256 pixel) images? It's like you had one large picture and you cut it up into 6,800 little squares. I only have the little squares, not the original, and I want to put them together without any seams showing to make the large original image. They're numbered in sequence, they must stay in the exact sequence, and I already know exactly how many rows and columns the composite needs to have. If it's easier in some other program than GIMP that's fine too.

Print this item