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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,641
» Latest member: GaryR
» Forum threads: 7,185
» Forum posts: 39,241

Full Statistics

Latest Threads
scriptfu could says what ...
Forum: Scripting questions
Last Post: Ofnuts
24 minutes ago
» Replies: 1
» Views: 64
adding UnitComboBox to a ...
Forum: Scripting questions
Last Post: Ofnuts
50 minutes ago
» Replies: 1
» Views: 22
Gimp make jpg to Webp 100...
Forum: General questions
Last Post: estatistics
10 hours ago
» Replies: 8
» Views: 189
Can not make bookmarks fo...
Forum: Installation and usage
Last Post: JaBo
Yesterday, 07:35 PM
» Replies: 0
» Views: 13
Bookmarks are not saved
Forum: Linux and other Unixen
Last Post: JaBo
Yesterday, 07:25 PM
» Replies: 0
» Views: 10
Eraser Stopped Working
Forum: General questions
Last Post: Ofnuts
Yesterday, 07:55 AM
» Replies: 9
» Views: 251
select outline
Forum: General questions
Last Post: sallyanne
Yesterday, 02:38 AM
» Replies: 2
» Views: 104
I can't edit a path
Forum: General questions
Last Post: Ofnuts
02-23-2025, 08:38 AM
» Replies: 2
» Views: 119
gradients semi transparen...
Forum: General questions
Last Post: Ulodesk
02-22-2025, 05:00 PM
» Replies: 3
» Views: 195
Multiple install paths in...
Forum: Windows
Last Post: LateJunction
02-22-2025, 08:38 AM
» Replies: 2
» Views: 203

 
Tongue Can't use Color to alpha on that one
Posted by: PixLab - 05-16-2024, 06:27 AM - Forum: General questions - Replies (6)

I wanted to compare a @Ofnuts' method to one of mines here > https://www.reddit.com/r/GIMP/comments/1...xcept_for/

I did the Ofnuts method first, (the top layers in the xcf below) then I wanted to Color to Alpha as a starter of mine, and it does not work on this very specific layer (the visible one, and the one above)

Can you try it?
Open the Xcf and directly go to color to alpha (whatever color), and if you find out why it is not working, please tell me, like that this evening I would be able to go to sleep a bit less stupid  Big Grin

The .7z ➤ https://sendgb.com/rpv37MwBYRf 2mb
or the .xcf ➤ https://sendgb.com/rMuRLSdV9Ql 4.5mb

If you drag and drop that layer in the tool box to open as a new image, yes color to alpha will work, but what I want to know is why it is not working in that xcf

EDIT: Never mind, I'm stupid, I just checked the menu Select and None was not grayed out....  Rolleyes
Morality of the story, when something does not work, don't forget the basics ➤ check the Select

Although I cannot find out where is that selected pixel... Angry

Print this item

Photo Does Script-Fu support input/output of the files?
Posted by: esm - 05-15-2024, 09:38 PM - Forum: Extending the GIMP - Replies (4)

Hi guys, I'm using Gimp 2.10.36 and need to find the coordinates of selected bounding box using this python code:

Code:
from gimpfu import *
import os

def foo():
   selection, x1, y1, x2, y2 = pdb.gimp_selection_bounds(gimp.image_list()[0])
   if not selection:
       pdb.gimp_message("No selection")
   else:
       gimp.message('%d, %d, %d, %d' % (y1, x1, y2, x2))
register(...)
main()

I'm wondering if there is a way to write the contents of a gimp.message(the coordinates) directly to a txt file? Can you please provide some examples?
This is the output I want to get - a created txt file with the same name as the image and 4 coordinates inside:
   

This is the code I found but it's written in Scheme (Lisp dialect) and I don't understand how to rewrite it in python.
Code:
(define outport (open-output-file "samplefile.txt")) (display "Hello" outport)
(newline outport)
(display "World" outport)
(close-output-port outport)

Print this item

  SOOOOOOOOOOO close in cleaning up an image
Posted by: 977 - 05-15-2024, 04:28 AM - Forum: General questions - Replies (6)

hi all,

i am sooooooooooooo close in cleaning up an image.....something minor must be keeping me from moving on. i could please use your help

i'm following this tutorial here. 
https://www.youtube.com/watch?v=J0R3XvrsC3c

if you could please watch a few seconds at 9:47....see how is paintbrush is cleaning it up? when i do it, its just painting black on there (my settings for paintbrush are the same as is, i've checked them a million times, and everything up to this point i've matched his results so it has to be something minor) 

i want to throw my computer out the window right now! i'm so close and this is the most important part.

maybe he clicked on something? the problem with tutorials is that if they click without saying they clicked, its impossible to tell ya know?

thank you for your help


bonus question - have you all heard of this dude before? is he good? should i rely on him for future tutorials? he was honest in his tutorial - he said theres a million ways to accomplish this but this method is the most straightforward

Print this item

  Some old pixel art done in GIMP(2019-2020)
Posted by: TumbleRocks - 05-14-2024, 06:52 PM - Forum: Gallery - Replies (9)

Hi all, at the risk of being a doofus, i wanted to share some work i did a few years back(I think it is better quality than what i have shared before). I want to post it somewhere, instead of letting it rot on my hard drive. It is pixel art from a collab that never got published.

Here is the collab: https://pixelation.org/index.php?topic=31210.0

I'm not a very experienced pixel artist, so participating in this collab was a good learning experience for me, and taught me a lot about GIMP and graphic art in general. Sadly, i haven't been doing as much graphic art lately, though I do occasionally still find the opportunity to open GIMP for one reason or another, and very much appreciate that this software exists. Anyway let me post images:

T2 Mirage:
   

T7 RNA Stream:
   

T31 Dr. Devil(MD):
   

T40 Hoax Man:
   

...well, I'm not sure how to upscale the attachments in the post, and i kind of prefer to submit in the original size. Maybe there is a way to magnify in the BB prefs? IDK, if people respond with interest, I can provide some progress shots and reference stuff illustrating the process i used.

Take Care!

Print this item

  Rings around Brush instead of being feathered.
Posted by: Jafaraway - 05-13-2024, 09:42 PM - Forum: General questions - Replies (2)

I'm new here. Been using gimp for a long time now and sometimes run into the problem I'm currently having. Sometimes when I use one of the standard feathered edge brushes in a transparent layer, the brush's edges are a bunch of concentric circles, instead of being nice and feathered. However if I use the same brush directly on the background, it does look nice and feathered. Is there a setting that fixes this? Or am I doing something wrong?

See attachment. Thank you to anyone who can help with this.



Attached Files Thumbnail(s)
   
Print this item

  Precisely Positioning thngs . X/Y Coordinates?
Posted by: Brian Sansone - 05-13-2024, 06:55 PM - Forum: General questions - Replies (1)

Well I though I was entering intermediate skill level...

I'm trying to make a flyer for print. I'm trying to get things perfectly positioned; like you can do in desktop publishing software.

I havnt been able to find any coordinate settings, besides setting all the units to inches.

Even just the guides positioning guides is over my head.  I did find where you can insert guides by a percentage or pixel count,  but I have no idea how I could convert pixels/% to inches.

I was trying to make a .25" border around the flyer, and I realized there was more to it than something like Scribus.

I'm a bit surprised X/Y coordinates, and positioning tools are not front and center.

Print this item

  color picker tool
Posted by: 977 - 05-12-2024, 11:35 PM - Forum: General questions - Replies (4)

hi all

i like this color so i'm using the color picker tool, so lets keep it straightforward;

i click on "color picker tool"
then i click somewhere in the image of the color i want

now where does that color go?

in the left pane, in the middle, theres 2 squares which say foreground color/background color, i click there and i don't see the color i just chose Sad

in the right pane, theres "color history" and i dont see it there neither Sad

this sucks! where is my color

if it helps you, using gimp 2.10.18

thx

Print this item

  Concentric circles
Posted by: rinaldop - 05-12-2024, 01:54 PM - Forum: General questions - Replies (6)

Hello again everyone,

Today I am trying to make 120 concentric circle images. I want to start at 600x600 with a border of 2, then 598x598 with a border of 2, then 596x596 with a border of 2, etc.

I tried to use the shrink command but after I shrank my first circle by 2 the shrink option became ghosted and I could not continue. Any ideas why?

Of course a script to do this would be bestWink

I found this 
http://gimpchat.com/viewtopic.php?f=9&t=6923
which points to a file on the registry but that is closed so then I went to github and I found an .html file talking about the script and then reading the .html file I found out that the script name is concentric-fill-selection_0.scm but searching for that got me nowhere.
 
Thanks

Print this item

  Q: Can AI Solve Scripting Problems? A: Yes
Posted by: Tas_mania - 05-12-2024, 12:03 AM - Forum: Scripting questions - Replies (4)

I would feel stupid posting this as a scripting question:

   

It's from some C manuals and I couldn't understand it. AI told me the 'i' is a variable while I was thinking it was an algebra symbol. No wonder I struggle with code.
I am updating some C code from GTK2 to GTK3 and the AI is giving answers that the compiler accepts. I haven't tried it with interpreted languages like Python but I suspect it would know the code.

Print this item

  Remove text from scan
Posted by: Aquilax - 05-10-2024, 10:17 AM - Forum: General questions - Replies (4)

Hello, I'm trying to translate a children board game because there is no official translation.
I have scanned some cards and I would like to remove the text (in a nice way) from the pictures and replace it with the translated text.
I tried the healing tool but the text is not really removed completely, it is still visible as an halo.
This is most probably given from the not uniform background color produced from the print process and taken over by the scanner.
What is the best practice in this case to remove the text from the scan?
Note: I wanted to attach an example of the scanned cards but it didn't work because it seems to be to large. I have uploaded it to ImgBB (https://ibb.co/w6Rf7Lh)

Print this item