Welcome, Guest |
You have to register before you can post on our site.
|
Latest Threads |
Endianess of pixel data i...
Forum: Scripting questions
Last Post: teapot
Less than 1 minute ago
» Replies: 4
» Views: 242
|
Can not save or export pi...
Forum: General questions
Last Post: rich2005
1 hour ago
» Replies: 4
» Views: 64
|
CMYK color mode Gimp 2.10
Forum: Extending the GIMP
Last Post: rich2005
Yesterday, 08:21 PM
» Replies: 22
» Views: 82,444
|
copy sequence of filters ...
Forum: General questions
Last Post: programmer_ceds
Yesterday, 04:03 PM
» Replies: 3
» Views: 214
|
[Python] In-memory save p...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: DunkleMaterie
Yesterday, 12:54 PM
» Replies: 4
» Views: 191
|
text tool
Forum: General questions
Last Post: inemar
Yesterday, 07:08 AM
» Replies: 2
» Views: 170
|
Python Snippets for GIMP ...
Forum: Scripting questions
Last Post: pixelmixer
07-19-2025, 06:51 PM
» Replies: 4
» Views: 196
|
Gimp 3.0.4 Appimage by Iv...
Forum: Alternate Gimp packagings
Last Post: vitforlinux
07-19-2025, 11:44 AM
» Replies: 0
» Views: 114
|
edit_paste pastes at inco...
Forum: Scripting questions
Last Post: class43
07-18-2025, 03:48 PM
» Replies: 2
» Views: 179
|
Open, save buttons on bot...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: GrumpyDeveloper
07-17-2025, 09:52 PM
» Replies: 8
» Views: 3,050
|
|
|
Numpy slicing problem |
Posted by: Zero01 - 07-18-2021, 04:21 PM - Forum: Other graphics software
- Replies (3)
|
 |
Code:
import numpy as np
a = np.concatenate((np.linspace(10,200,25),np.geomspace(200,360,25)))
b = np.concatenate((np.linspace(20,-180,25),np.linspace(-180,230,25)))
c = a[0]+(b[0])/np.pi
if c >= 360:
c = 360
d= a[3]+(b[3])/np.pi
if d >= 360:
d = 360
e = np.linspace(c,d,50)
f = open("new.txt","w")
for i in range(50):
f.write("gmic someFilter params: "+str(a[i])+","+str(b[i])+","+str(e[i])+" -o somefiles%04d.file \n" % i)
f.close()
Tryin to get it so that in all 50 outputs to the text file, the value of 'e' is: a + b / pi (or 360 if e >= 360).
First output seems ok i.e.: gmic someFilter params: 10.0,20.0,16.366197723675814 -o somefiles0000.file
but subsequent values are messed up, i.e. the last one: gmic someFilter params: 360.0,230.0,32.15845056908105 -o somefiles0049.file
.. the value of 'e' in this case should be about 82, not 32..
My slicing is probably the issue as I've no experience doing this, any help gratefully received.
cheers!
|
|
|
Layer Problem |
Posted by: WhiskeySal - 07-18-2021, 11:56 AM - Forum: General questions
- Replies (6)
|
 |
Okay, basic question. I just got started trying out Gimp and what I'm finding is that when I try to edit something on a higher layer it changes the background image instead of just affecting that layer. What am I doing wrong?
|
|
|
batch processing with the fuzzy select tool |
Posted by: DThompson55 - 07-18-2021, 03:15 AM - Forum: Scripting questions
- Replies (3)
|
 |
I'm new to scripting, but I have a programming background, so I think I can do this. I have Python skills.
I have a short movie, which I've exported to 570 individual png files. What I want to do is apply the fuzzy select tool, with a selectivity of 70, smack dab in the center of each png, cut the resulting selection, and save the file somewhere that doesn't overwrite the original.
I thought I might be able to do this using bimp, I've got it running, but it doesn't seem to support the gimp_image_select_contiguous_color function that I would need to do this. Maybe, or maybe I'm looking at it wrong.
When I start googling gimp scripting I find posts going back to the last century. I don't know what the best current methodology is, nor how to get started? I don't want to waste time reading obsolete documentation or approaches to the problem. So I thought i'd ask here.
I'm running on MacOS Big Sur running GIMP 2.10
|
|
|
Liquify - Face |
Posted by: meetdilip - 07-17-2021, 11:56 AM - Forum: General questions
- Replies (2)
|
 |
I saw a very interesting video using PS where there is a built-in effect called Liquify which allows Face deformation in a very interesting way. The video is from Pixavu ( something like that ) and was talking about making caricatures out of photos. This particular plugin can bulge or make the eyes looks big, adjust our mouth, nose etc in a way to help in process.
The video says that this feature is CC 2015 and later. Not sure whether GIMP 2.10 has anything like that. Not complaining, only checking. Thanks.
|
|
|
Some webp alternatives |
Posted by: rich2005 - 07-15-2021, 02:59 PM - Forum: Other graphics software
- Replies (1)
|
 |
The Gimp webp plugin is very adequate. You can export your image and make animations easily although sometimes a bit slow. This is about some command line (CL) programs that might come in useful as alternatives.
The webp format does come from Google, their official offerings are here: https://developers.google.com/speed/webp/download
The download provides utilities cwebp: encoding tool / dwebp: decoding tool / gif2webp: gif conversion tool / vwebp: webp viewer / webpmux: create and extract anmations I have to confess that the only one I use regularly is the viewer, vwebp
ImageMagick v.7 (IM) supports webp. There is a page with all the details here: https://imagemagick.org/script/webp.php Converting an image to webp is as simple as;
Code:
magick filename.ext -quality 50 filename.webp
What is the advantage over Gimp ? Easy to batch convert with IM
Where it might come in useful is with simple animations, You can string several images together to make an animation with variable timings.
Code:
magick -delay 100 fileA.ext -delay 200 fileB.ext -delay -delay 50 fileC.ext -quality 50 animated.webp
You need to experiment but a low quality settting can provide a smaller filesize than the comparible animated gif, with equal quality and no 256 colour limitations.
A very simple example:
|
|
|
Script-fu error on selecting font |
Posted by: allanmitch - 07-14-2021, 02:01 PM - Forum: Extending the GIMP
- Replies (2)
|
 |
I am getting error messages from script-fu.
For example, I opened File-->Create-->Fx-Foundry-->Logos-->Fiery Steel. When I select the Font box to change the Font I get the following message.
Quote:GIMP Message
Plug-in "script-fu"
(usr/lib/gimp/2.0/plug-ins/script-fu/script-fu)
attempted to install procedure "temp-procedure-
number-1" with invalid parameter name "dialog status".
OK
The font can not be changed.
Any suggestions on how to correct this problem?
I am using GIMP 2.10.8 on Ubuntu Studio 20.04. Any other info needed?
Allan
|
|
|
|