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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,658
» Latest member: Henryhuh
» Forum threads: 7,197
» Forum posts: 39,287

Full Statistics

Latest Threads
A reasoning on what you c...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: vitforlinux
8 minutes ago
» Replies: 0
» Views: 7
Script-fu V3 plug-ins
Forum: Extending the GIMP
Last Post: programmer_ceds
2 hours ago
» Replies: 5
» Views: 195
GIMP Keyboard Shortcuts
Forum: General questions
Last Post: rich2005
4 hours ago
» Replies: 2
» Views: 61
Toggle drawing area to th...
Forum: General questions
Last Post: binmohd
Yesterday, 06:05 PM
» Replies: 18
» Views: 4,643
gui_dbus_name_lost messag...
Forum: Linux and other Unixen
Last Post: Ofnuts
Yesterday, 12:33 AM
» Replies: 1
» Views: 109
How to fill a selection w...
Forum: General questions
Last Post: Ofnuts
Yesterday, 12:22 AM
» Replies: 1
» Views: 155
Bucket fill not working
Forum: General questions
Last Post: Ofnuts
Yesterday, 12:20 AM
» Replies: 1
» Views: 120
Can't drag and drop to re...
Forum: General questions
Last Post: Clovermoth
02-27-2025, 08:10 PM
» Replies: 13
» Views: 18,271
How to finish selection p...
Forum: General questions
Last Post: rich2005
02-27-2025, 06:23 PM
» Replies: 1
» Views: 125
How to simply move select...
Forum: General questions
Last Post: snowforest
02-27-2025, 06:02 PM
» Replies: 2
» Views: 133

 
  rectangle frustration (or any shape)
Posted by: bbxrider - 11-15-2021, 03:21 AM - Forum: General questions - Replies (4)

been trying for hours just make a simple rectangle to carve out an area
for visual reference to the whole project or it might remain for a reference
when the project eventually gets exported for printing 

please see attached

I would think the rectangle isssues would apply to any shape so that helps to 
tone down the big frustration here trying to do something which I would have
thought to be really simple considering all the sophisticated image manipulations
available in gimp



Attached Files Thumbnail(s)
   
Print this item

  Struggling with Gimp Issues
Posted by: andrew48 - 11-15-2021, 01:35 AM - Forum: Windows - Replies (1)

I recently installed the most recent version of GIMP on a new computer (HP Envy 360 15 with AMD Ryzen 7) with Windows 11 on it. I've been having some trouble with it. When I try to ctrl-scroll to zoom in and out, it doesn't work sometimes. It doesn't show me where the mouse is when I ctrl-click with the paint brush sometimes. I have to click some things several times for them to work sometimes (it's like it knows that the mouse is there and where it is, but doesn't know that clicking is an option). I've tried uninstalling and reinstalling. I've also tried installing an earlier version of GIMP. I've tried another mouse (even using the trackpad) and these issues still persist. Does anyone have any ideas that could help me with this? Thanks.

Print this item

  gimp keeps telling me to install, but will not launch
Posted by: spence - 11-14-2021, 05:51 PM - Forum: General questions - Replies (2)

Hi, I downloaded gimp 2.10 from gimp.org/downloads, but every time I click on the icon, it does not open up, it just installs again, which I have done 3 times. I have operating system windows 8.1
The files are on my computer, when I look in c drive.

Print this item

  Cocktail Hat
Posted by: WhiskeySal - 11-12-2021, 10:56 PM - Forum: General questions - Replies (4)

Newbie here. I'm interested in creating a sort of 'cocktail hat' with a veil pattern as in this picture. Any advice or suggestions?

[Image: 1cb7e4561e5872f4fc38ca051df56fda48c9279f_original.jpeg]

Print this item

  Setting text on multiple layers issue
Posted by: FloppaDisk - 11-12-2021, 06:52 PM - Forum: Scripting questions - Replies (3)

Hellois.
I'm on a mission to make an 'text atlass or sprite' ish plugin which will make the number of input characters to the power of two; combination 'sprite image'.
At the moment the code can generate one image atlass with n combinations. As a image has a limited combination spaces it will later add images as needed to make all the combinations over multiple images. But first i must understand how to set text which i hope someone would help out with.

What im struggling with is applying text. Im not able to set text on multiple layers. No matter what i do it seems like the ..WriteToCanvas() funciton only sets text to the original background layer. I'm unable to make a new layer and apply text to it. 

The function ..SetAndAnchorText() is where you would modify the code to help me out if possible, or give me some good pointer as i'm been struggling for a few days to many. Confused

Starting point:
The code works and can produce an image so you can see what i mean by atlass/sprite. Create a new 256x256 RGB_Image and run the plugin to se results. Then make a new same image and add the letter i to the end of .."Text for atlass" of the plugin. The expected result should be a whole image with text combinations in stride of two and the second should be roughly half the image with text. At the moment the code creates and error instead.

Code:
#!/usr/bin/env python

from gimpfu import *
from math import *
from time import sleep

def WriteToCanvas(image, drawable, x, y, text):
   return pdb.gimp_text_fontname(
   image,         # IMAGE      image      The image
   drawable,      # DRAWABLE   drawable   The affected drawable: (-1 for a new text layer)
   x,             # FLOAT      x          The x coordinate for the left of the text bounding box
   y,             # FLOAT      y          The y coordinate for the top of the text bounding box
   text,          # STRING     text       The text to generate
   -1,            # INT32      border     The size of the border: -1 <= border
   False,         # INT32      antialias  Antialiasing (TRUE or FALSE)
   26,            # FLOAT      size       The size of text in either pixels or points
   0,             # INT32      size_type  The units of specified size: PIXELS (0) or POINTS (1)
   'Monospace')   # STRING     fontname   The fontname (conforming to the X Logical Font Description Conventions)

# returns stride of 3 for characters that use kerning
def FindKerning(src):
   kerning = []
   idx1 = idx2 = 0
   while ~idx1:
       idx1 = SearchSrc(src, '(', idx2)
       idx2 = SearchSrc(src, ')', idx1)
       if idx1 < idx2 and abs(idx1-idx2) != 1:
           kerning += [src[idx1-1]] + src[idx1+1:idx2].split(',')
           src = src.replace(src[idx1:idx2+1], '', 1)
           idx1 = idx2 = 0
   return kerning + [src]

# return index for for instance of ..test in ..src at interval ..stride
def SearchSrc(src, test, after=0, stride=0):
   x = 0
   if not ~after:
       return -1
   if stride <= 0:
       stride = 1
   if after > 0:
       x += after
   while x < len(src):
       if src[x] == test:
           return x
       x += stride
   return -1

# ab(-1,0)cdef(-1,0)ghijk(-1,0)lmnop(-1,0)qr(-1,0)stuvwxyz01(-1,0)23456789!"#%&/()=?\*<>-_,.:;~@${}
def SetAndAnchorText(image, drawable, text, newLayer):
   # sleep(3)
   pdb.gimp_message(str('Ono line: \n')+str(text))
   textLayer = WriteToCanvas(image, drawable, 0, 0, text)
   # image.add_layer(textLayer, len(image.layers))
   layer = pdb.gimp_image_merge_visible_layers(image, 1)
   drawable.visible = False
   if newLayer:
       newLayer = gimp.Layer(image, "Background", image.width, image.height, RGB_IMAGE, 100, 3)
       image.add_layer(newLayer, 0)
       image.active_layer = image.layers[0]
       # pdb.gimp_drawable_edit_bucket_fill(newLayer, 1, 1, 1)
       # newLayer.update(0, 0, drawable.width, drawable.height)

# pdb.gimp_drawable_get_name(item)
def textAtlas(image, drawable, NotUsed, text_var, boolean_var, colorText, colorBackground, radio_var):
   # ab(-1,0)cde(2,-4)fg(3,1)h
   pdb.gimp_message(str('~~~~~~~~~~~~~~~~~~~~'))
   kerningParams = FindKerning(text_var)  # stride of 3 for chars that use kerning
   text_var = kerningParams[-1] # will always be plain ..text_var
   del kerningParams[-1] # remove ..text_var
   # pdb.gimp_message(str('text_var: ')+str(text_var))
   # pdb.gimp_message(str('kerning: ')+str(kerningParams))
   # return
   pdb.gimp_context_set_foreground(colorText)
   pdb.gimp_context_set_background(colorBackground)
   rowNumber = drawable.width/32
   gridNumber = rowNumber * (drawable.height/32)
   number = int(pow(len(text_var), 2))
   length = len(text_var)
   gimp.progress_init('The growing bar')

   count = 0
   wholeText = ''
   tempText = ''
   for char1 in text_var:
       for char2 in text_var:
           wholeText += char1+char2
           tempText += char1+char2
           count += 1
           if count == gridNumber:
               SetAndAnchorText(image, drawable, tempText, not text_var[-1] == char1 == char2)
               # apply, merge and adjust for kerning here
               tempText = ''
               count = 0
           if not count%rowNumber and count:
               tempText += '\n'
   if count:
       SetAndAnchorText(image, drawable, tempText, False)


   pdb.gimp_message(str('Done'))

# abcdefghijklmnopqrstuvwxyz
# ab(-1,0)cdef(-1,0)ghijk(-1,0)lmnop(-1,0)qr(-1,0)stuvwxyz01(-1,0)23456789
# ab(-1,0)cdef(-1,0)ghijk(-1,0)lmnop(-1,0)qr(-1,0)stuvwxyz01(-1,0)23456789!"#%&/()=?\*<>-_,.:;~@${}

register(
   "python-fu-textAtlas",
   "Make text paired utf-8'ish atlas",
   "Generate an grid with n pared two character, number and/or symbol into an atlas/sprite",
   "Drop Woodland", "https://github.com/TeaWave", "2021",
   "Make text atlas...",
   "", # type of image it works on (*, RGB, RGB*, RGBA, GRAY etc...)
   [
       (PF_IMAGE, "image", "takes current image", None),
       (PF_DRAWABLE, "drawable", "Input layer", None),
       (PF_INT8, "NotUsed", "Colors", 8),
       (PF_TEXT, "text_var", "Text for atlas", "ab(-1,0)cde(2,-4)fg(3,1)h"),
       (PF_BOOL,   "boolean_var", "boolean name", True),
       (PF_COLOR, "colorText", "Text color", (0.541, 0.831, 0.235, 1.0)),
       (PF_COLOR, "colorBackground", "Background color", (0.298, 0.361, 0.576, 1.0)),
       (PF_RADIO, "radio_var", "radio", "scale",
           (
               ("Scale to fit", "scale"),
               ("Fill to fit", "fill")
           )
       )
   ],
   [],
   textAtlas, menu="<Image>/Extra")  # second item is menu location

main()

Print this item

  Mosaic Filter
Posted by: J-G1 - 11-12-2021, 03:01 PM - Forum: General questions - Replies (3)

Hi all Smile

I am using the standard Mosaic filter in Gimp --> Filters - Distorts - Mosaic.
I'm looking for way to shut off the lighting function as well as the joints color. Preferably I would like to have my mosaic tiles have 1 distinct color each (so no lighting effects) and no joints/different color borders between tiles.

Any suggestions/other plugins on how to best achieve this would be very welcome.



Attached Files Thumbnail(s)
   
Print this item

  Tile a seamless pattern
Posted by: rockinaleather - 11-12-2021, 12:42 PM - Forum: Older Gimp versions (2.8, 2.6....) - Replies (1)

Hey guys! I use gimp on occasion but definately an amateur at it. Im currently paying a gal to take seamless images I find on vector stock, put them together then to a certain size, with the pattern on the image being around 1" in areas. Im terrible at explaining so here's another explanation: Take said image, tile it, then scale it down. I can't for the life of me figure out how to tile an image on gimp 2.8 (only version I have). Ive googled several times but it always wants me to create my own tile image, which isn't what im trying to to. any help would be great appreciated!

Print this item

  Drawing Tablet has Limited Reach
Posted by: eric_eats_nuggets - 11-11-2021, 11:34 PM - Forum: General questions - Replies (2)

Hey everyone! This is kind of a weird one... 

I'm using an HP Spectre x360 hooked up to an external monitor as a drawing tablet. GIMP is open on the external monitor and I'm drawing on the HP like you would a Wacom tablet.

Everything is working, except the drawing area (I'm not sure what the right term is) is limited to a lower section of the GIMP canvas. Below is a screenshot showing where I'm able to draw. If I move the view, zoom in, or out, I can draw on those areas but it's really inconvenient to be that limited. 

Is there anyway that I can adjust the available drawing area? Since I'm not using an actual Wacom tablet, I don't have the standard "screen area" or "tablet area" settings that I feel like might fix this.

[Image: pQnxo0E.png]

Thanks for your help!

Print this item

  GIMP does no longer ask if I want image autorotated according to exif
Posted by: nelo - 11-11-2021, 06:48 PM - Forum: General questions - Replies (2)

Hi all,

Normally when I have an image that needs to be rotated according to exif data
GIMP will ask. I must have ticked "don't ask again" sometime long ago and GIMP doesn't ask anymore.
Where can I reset that setting so GIMP will ask again?

Greetings
nelo

Print this item

  Macro pour flouter une zone
Posted by: Gypsie38 - 11-11-2021, 04:30 PM - Forum: General questions - Replies (1)

Bonjour, voici ce que je souhaite : je sélectionne une zone d’une image puis je clique sur un »bouton » (qui aura été configuré pour avoir le bon flouté avec Flou gaussien) pour flouter cette zone. Merci de votre aide.

Print this item