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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,936
» Latest member: ppwm
» Forum threads: 7,696
» Forum posts: 41,852

Full Statistics

Latest Threads
Edits Saving wrong
Forum: General questions
Last Post: rich2005
2 hours ago
» Replies: 2
» Views: 74
How to get G'MIC within G...
Forum: General questions
Last Post: Tas_mania
Yesterday, 08:42 PM
» Replies: 5
» Views: 403
"Mouseclick" is not recor...
Forum: General questions
Last Post: Ofnuts
Yesterday, 08:32 PM
» Replies: 1
» Views: 122
Text Editor hardly ever w...
Forum: General questions
Last Post: sallyanne
Yesterday, 09:23 AM
» Replies: 5
» Views: 447
Issue with cut selection
Forum: General questions
Last Post: rich2005
Yesterday, 08:33 AM
» Replies: 4
» Views: 264
Colorized Layer Reverts t...
Forum: General questions
Last Post: sallyanne
11-12-2025, 08:57 AM
» Replies: 6
» Views: 491
Gimp 3.0.6-1 G'Mic-Qt ups...
Forum: General questions
Last Post: denzjos
11-11-2025, 07:08 PM
» Replies: 2
» Views: 190
Gimp 3.x scanner xsane pl...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: Ofnuts
11-10-2025, 08:36 AM
» Replies: 14
» Views: 11,711
Gimp 3.0 get Metadata wit...
Forum: Scripting questions
Last Post: Volker
11-09-2025, 06:19 PM
» Replies: 3
» Views: 330
How to make image and mas...
Forum: Installation and usage
Last Post: Ofnuts
11-08-2025, 08:39 PM
» Replies: 5
» Views: 375

 
  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!

Print this item

  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?

Print this item

  The smudge tool mode is grey, not working
Posted by: megatard - 07-18-2021, 09:25 AM - Forum: General questions - Replies (2)

In Photoshop this tool has many modes like colour mode which smudges only color, in gimp is just normal. is it under development?
also blur/sharpen and dodge/burn are only in normal mode

Print this item

  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

Print this item

  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.

Print this item

  sg-fit-face.scm with gimp 2.10.24 ?
Posted by: denzjos - 07-17-2021, 08:40 AM - Forum: Extending the GIMP - Replies (5)

Who has a working version of the sg-fit-face.scm script for gimp 2.10.24 ? I download it and put it in the script directory. The script appear in the gimp layer menu but nothing seems to happen if I click on it. I've made a path on each of two different layers as the script needed to work with. Thanks in advance for the answer.
https://chiselapp.com/user/saulgoode/rep...d3f505fef2

Print this item

  Quickly change the picture
Posted by: Redner - 07-16-2021, 04:07 PM - Forum: General questions - Replies (1)

Is it possible to preset the resolution of the picture and then use hot keys to apply them to other pictures or photos?

Print this item

  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:

[Image: countdown.webp]

Print this item

  selectiing new font in dialog boxes does not change font of selected text
Posted by: donmulatito - 07-14-2021, 08:12 PM - Forum: General questions - Replies (1)

hello,

trying to try new fonts of existing text but when selecting new fonts in the side panel dialouge boxes the font is not modified.

Any help?

Thanks!

Print this item

  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

Print this item