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
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 ?
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:
I attach my brush, in case it's something I've done wrong making the brush.
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
I mean something like this:
But when i try it, the phone covers the whole hand, also the thumb that's covers it
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!
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?
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
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.
Anyway, I thought it would be useful if I could tell GIMP to use current selection as area for setting guides.
There is an option called New guide from selection (Images -> Guides -> New guide from selection), but this just
puts 2 horizontal and 2 vertical guides along sides of selection.
What I had in mind was to use current rectangular selection (or bounding box of it) and then "divide" it into equal parts by
setting guides (number settable by user), either horizontally, vertically, or both.
So for example, let's say I have some kind of object on my canvas, and it's already placed on the right spot.
And maybe I want to do some work on the middle third.
I could use measure tool, but this won't work without calculator.
Another option would be using rectangular selection and then setting Rule of thirds under tool options.
But choosing any tool after that results in "guides" vanishing inside of the selection, so you have to put guides
manually right after making that selection, if you don't want to loose them.
Also, if you need any number of divisions that's not already predefined (center, thirds, fifths...) this technique will not really work.
It can be done, but it will definitely take lots of repetitive steps.
So I wrote a small plugin that does exactly what I had in mind.
It's not finished yet, but it works.
So how do you use it? After placing it in plugin directory, it registers itself under Image -> Guides -> Divide selection using guides
First you make a selection. It doesn't have to be rectangular, and if it's not it will use the bounding box of the selection
for calculation. After making a selection, choose Divide selection using guides (under Image -> Guides).
Enter the number of divisions you need, and that's it.
Now, maybe I'm re-discovering here something that's common knowledge among gimpers,
but even if that's the case, this was a good learning experience. The only problem is I'm
getting lots of GEGL related errors (GIMP 2.10.32), but from what I could read here, it's not my plugin's fault.