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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,338
» Latest member: jrnic1
» Forum threads: 6,651
» Forum posts: 36,241

Full Statistics

Latest Threads
How do I remove the backg...
Forum: General questions
Last Post: jrnic1
3 hours ago
» Replies: 0
» Views: 37
Color change
Forum: General questions
Last Post: PixLab
4 hours ago
» Replies: 4
» Views: 136
GIMP not utilizing NVIDIA...
Forum: Linux and other Unixen
Last Post: Ofnuts
9 hours ago
» Replies: 12
» Views: 270
Scaling an image to a fix...
Forum: General questions
Last Post: PixLab
Yesterday, 01:47 PM
» Replies: 2
» Views: 139
Bulk LUTs Previewer
Forum: Other graphics software
Last Post: denzjos
Yesterday, 08:57 AM
» Replies: 0
» Views: 76
exr manipulation
Forum: General questions
Last Post: rich2005
04-23-2024, 04:56 PM
» Replies: 9
» Views: 242
Text tool
Forum: General questions
Last Post: Ofnuts
04-23-2024, 07:03 AM
» Replies: 3
» Views: 121
Gimp 2.10.36: Menu - View...
Forum: General questions
Last Post: nbeaudet
04-22-2024, 09:37 AM
» Replies: 5
» Views: 213
Downloaded the full gimps...
Forum: Watercooler
Last Post: denzjos
04-22-2024, 06:46 AM
» Replies: 1
» Views: 125
'plug-in-resynthesizer' n...
Forum: OSX
Last Post: Timbre
04-21-2024, 11:53 PM
» Replies: 3
» Views: 2,243

 
  arbitrarily stretching a polygon shaped section of an image
Posted by: gimpuserjan2022 - 01-22-2022, 01:08 PM - Forum: General questions - Replies (3)

hi ,
I am using gimp 2.10 on windows 10
I want to do the following
Select a polygon section in an image . I am able to do that using free select tool .
Now I want to select any vertex of polygon and pull it farther . This should distort the image inside that polygon . But when I do that simply the polygon shape changes but there is no effect on underlying image .
I hope that I am able to explain my requirement .
To give another example - suppose image is of human body . I draw a polygon such that right hand is inside it , now when I will stretch or squeeze the polygon then right hand should get deformed . 
Can you tell me how to do above ?
Thanks.

Print this item

  Where is path to CSV in the interface
Posted by: mark_lester - 01-22-2022, 03:14 AM - Forum: Scripting questions - Replies (4)

I am trying to load a set of generated 2 point lines on top of the image they display a hidden geometry to..
I have stuck path-csv-0.1.py in my plug-ins directory and it shows up in the plug in browser.
I cant find where it is in the interface, how to run it.

Print this item

  Qr code generator plugin
Posted by: CodeScooper - 01-20-2022, 02:54 PM - Forum: Extending the GIMP - Replies (1)

Hello, 
I'm new into Gimp but think that i will use it for long time,
pretty exited by extension opportunities 

the first thing that i want to do is have an extension that permit to add a Qr code on my pictures 
with some option like embed a logo or not,
set the color of the Qr code.

The only way that i have to done it is go on a dedicated website like (https://www.qr-code-generator.com/
download the result and then import it into my image. 

When i tried to look on internet that's what i found for the moment : 
https://www.youtube.com/watch?v=YHXX3KuB23Q ( presentation from Akkana Peck  about basis to write a gimp plugin )
- https://www.gimp-forum.net/ (this website but the thread about Qr code dont discuss the possibility to build an embeded one / but very happy to join a community around gimp )
- https://github.com/isman7/gimp-qrcode (this repository on github, i did'nt understand all yet )

If the subject talk to someone i will very happy to exchange about, cause i think that can be useful in the process of making flyers , reciept, branded bag ( like the one i'm working on - see pic )

Have a good day ^^



Attached Files Image(s)
   
Print this item

  Is there a way to increase saturation past 100%
Posted by: michelstango - 01-19-2022, 07:33 PM - Forum: General questions - Replies (2)

I have an image that has to be used with a de-saturation shader.  Normally I just up the saturation so the colors are not washed out, but said image already has several colors that are at maximum saturation.  Is there any way to compensate for the de-saturation?

Print this item

  Selection to Neon plug-in, create 80s light saber effect
Posted by: BdR76 - 01-18-2022, 10:55 PM - Forum: Extending the GIMP - Replies (5)

Just wanted to mention that I created a "Selection to Neon" plug-in to turn a selection into a neon effect.
Easy to create light saber or 80s cartoon laser effects

You can download it here:
https://github.com/BdR76/selection-to-neon/

Print this item

  Script fu automation
Posted by: Morek - 01-18-2022, 09:27 PM - Forum: Scripting questions - No Replies

Hello all, I am newbie in gimp and want to create simple script.

My goal:
1. Delete some parts of picture for example (X:100, Y:200, W:150, H:250)
2. move part of picture from X:10, Y:20, W:15, H:25 to X:100, Y:200
and I would like to repeat point 2 few times.

for example I would like to have something like that: SELECT(X,Y,W,H) -> DELETE(selection) -> SELECT(X,Y,W,H) -> MOVETO(X,Y,W,H)

I have started with console script: (gimp-image-select-rectangle image 0 0 0 64 64)
but it throws Error: eval: unbound variable: image



I think the console script would be enough for me, I don't need script to be saved in scripts folder.

Print this item

  Error when trying to use GAP script
Posted by: guillaumesoucy - 01-18-2022, 07:56 PM - Forum: Extending the GIMP - Replies (4)

Hello,

I’d download the GAP scripts for GIMP (to make animations) and when trying to use it I’ve got this error message:

   

The .zip file was extracted into /home/guillaumesoucy/.config/GIMP/2.10/scripts and GIMP was restarted, a new tab named “Video” was added and when by example if I select something then Video -> Duplicate Continue it throw me the error above.

Someone please know how to make it work?

Thank-you,

Guillaume

Print this item

  Krita 5.0.2
Posted by: rickk - 01-18-2022, 06:09 PM - Forum: Other graphics software - Replies (12)

Recently updated Krita on my knoppix 9.1 system, and now get the following error message whenever trying to launch GMIC from within the Krita shell:

The GMic Plugin is not installed, or could not be loaded

Since GMIC worked fine for me with Krita for both of the 2 previous versions of Krita that I have used, I'm just curious if any of you are experiencing  similar, or in the alternative can say you are using Krita 5.0.2 with no such problem?

I believe it's GMIC v2.9.4 if I recall correctly,  but can't verify because it won't open. Smile


I even tried installing 5.0.2 on a knoppix system that never previously even had Krita on it, just to assure that some legacy file was not fouling the attempted update...and get the same error on a totally new install.  T.I.A.

Print this item

  Output positioning options used by Gimp when printing to CUPS
Posted by: raccarva - 01-18-2022, 12:38 PM - Forum: General questions - Replies (3)

I am trying to figure out what CUPS (or would it be lpd/lpr?) printing options Gimp uses to set the output position when you print an image.
When you set the Left/Top fields in the "Position" print dialog tab, I guess Gimp uses some job printing options through CUPS/lpd/lpr to adjust the output image on the media. 
I need this information so that I can try to print images (outside Gimp) in the same position regardless of the printer being used.

Does anyone have this information?

Thanks.

Print this item

Bug Single Dose - Glossy stroke 3d.py
Posted by: Krikor - 01-18-2022, 10:54 AM - Forum: Extending the GIMP - Replies (22)

Hello everyone!

Plugin: glossy_stroke_3d.py; (I don't remember where I got it)
Author Eric Leroy;
Date: 2010;

Problem:
The plugin only works once for every Gimp restart.

After a single use, the plugin stops responding. Requiring the Gimp to be restarted so that in just one more instance the plugin will run again.

The plugin can be found in <Image>/Filters/Light and Shadow

Would it be possible to detect the cause of this problem and somehow fix it?

PHP Code:
#! /usr/bin/env python

###############################################################################
# The GIMP -- GNU image manipulation program
# Copyright (c) 1995-2010
# Spencer Kimball, Peter Mattis and the GIMP Development Team
#
# glossystroke3d
# Version 1.2.0 (For the GIMP 2.6), 15 Dec 2010
# Stroke the current selection, create a 3D effect and a dropped shadow
# Adapted from the tutorial: "iText tutorial" of Craig Marshall & Phil Harper. 
# Published in http://gug.criticalhit.dk/tutorials/itext2/
#
# Copyright (c) 2010 Eric Leroy (eral) kelk1@hotmail.com
# -----------------------------------------------------------------------------
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
#
###############################################################################

from gimpfu import *

def python_glossy_stroke_3d(
 
   imglayerfg_colorbrushstrokeroundingls_colorls_zglow
 
   brightshinepolishsh_colords_xds_yds_blurds_opac) :

 
   pdb.gimp_undo_push_group_start(img)

 
   # save some values
 
   cur_color pdb.gimp_context_get_foreground()
 
   cur_brush pdb.gimp_context_get_brush()
 
   img_w pdb.gimp_image_width(img)
 
   img_h pdb.gimp_image_height(img)
 
   cur_sel pdb.gimp_selection_save(img)

 
   # stroke the selection
 
   stroke_layer pdb.gimp_layer_new(
 
       img              # IMAGE
 
       img_w            # WIDTH
 
       img_h            # HEIGHT
 
       RGBA_IMAGE       # RGBA TYPE
 
       "stroke_layer"   # NAME
 
       100              # OPACITY
 
       NORMAL_MODE        # NORMAL MODE
 
       )
 
   pdb.gimp_image_add_layer(imgstroke_layer, -1)
 
   pdb.gimp_image_set_active_layer(imgstroke_layer)
 
   pdb.gimp_context_set_foreground(fg_color)
 
   pdb.gimp_context_set_brush(brush)
 
   if stroke == 0:
 
     pdb.gimp_edit_stroke(stroke_layer)
 
   else:
 
     pdb.gimp_edit_bucket_fill(
 
         stroke_layer   # DRAWABLE
 
         FG_BUCKET_FILL # FILL W/ FG
 
         NORMAL_MODE    # NORMAL PAINT MODE
 
         100.0          # 100% opacity
 
         0              # TRESHOLD
 
         False          # DO NOT USE THE COMPOSITE IMG
 
         0              # NOT USED
 
         0                # NOT USED
 
         )


 
   # save selected stroke to channel
 
   pdb.gimp_selection_layer_alpha(stroke_layer)
 
   sel_chan pdb.gimp_selection_save(img)

 
   # create volume
 
   pdb.gimp_selection_shrink(imgrounding)
 
   volume_layer pdb.gimp_layer_new(
 
       img              # IMAGE
 
       img_w            # WIDTH
 
       img_h            # HEIGHT
 
       RGBA_IMAGE       # RGBA TYPE
 
       "volume_layer"   # NAME
 
       100              # OPACITY
 
       NORMAL_MODE        # NORMAL MODE
 
       )
 
   pdb.gimp_image_add_layer(imgvolume_layer, -1)
 
   pdb.gimp_image_set_active_layer(imgvolume_layer)
 
   pdb.gimp_context_set_foreground((255255255))
 
   pdb.gimp_edit_bucket_fill(
 
       volume_layer     # DRAWABLE
 
       FG_BUCKET_FILL   # FILL W/ FG
 
       NORMAL_MODE      # NORMAL PAINT MODE
 
       100.0            # 100% opacity
 
       0                # TRESHOLD
 
       False            # DO NOT USE THE COMPOSITE IMG
 
       0                # NOT USED
 
       0                  # NOT USED
 
       )
 
   pdb.gimp_selection_none(img)
 
   pdb.plug_in_gauss(
 
       img              # IMAGE
 
       volume_layer     # DRAWABLE
 
       rounding 2.0   # HORIZONTAL BLURRING RADIUS
 
       rounding 2.0   # VERTICAL BLURRING RADIUS
 
       0                  # IIR (0) OR RLE (1)
 
       )
 
   pdb.gimp_layer_set_mode(volume_layerOVERLAY_MODE)
 
   volume_layer_copy pdb.gimp_layer_copy(volume_layerTrue)
 
   pdb.gimp_image_add_layer(imgvolume_layer_copy, -1)

 
   # create lighting effect
 
   pdb.gimp_image_set_active_channel(imgsel_chan)
 
   pdb.plug_in_gauss(imgsel_chanrounding 2.0rounding 2.00)
 
   glossy_layer pdb.gimp_layer_new(
 
       img              # IMAGE
 
       img_w            # WIDTH
 
       img_h            # HEIGHT
 
       RGBA_IMAGE       # RGBA TYPE
 
       "glossy_layer"   # NAME
 
       100              # OPACITY
 
       SCREEN_MODE        # SCREEN
 
       )
 
   pdb.gimp_image_add_layer(imgglossy_layer, -1)
 
   pdb.gimp_image_set_active_layer(imgglossy_layer)
 
   pdb.gimp_selection_load(sel_chan)
 
   pdb.gimp_context_set_foreground((000))
 
   pdb.gimp_edit_bucket_fill(
 
       glossy_layer     # DRAWABLE
 
       FG_BUCKET_FILL   # FILL W/ FG
 
       NORMAL_MODE      # NORMAL PAINT MODE
 
       100.0            # 100% opacity
 
       0                # TRESHOLD
 
       False            # DO NOT USE THE COMPOSITE IMG
 
       0                # NOT USED
 
       0                  # NOT USED
 
       )
 
   pdb.gimp_selection_none(img)
 
   if ds_x ds_y:
 
     if ds_y == 0:
 
       ls_x = -ds_x
        ls_y 
0
      else
:
 
       ls_x = -ds_x abs(ds_y)
 
       ls_y = -ds_y abs(ds_y)
 
   else:
 
     if ds_x == 0:
 
       ls_x 0
        ls_y 
= -ds_y
      else
:
 
       ls_x = -ds_x abs(ds_x)
 
       ls_y = -ds_y abs(ds_x)

 
   pdb.plug_in_lighting(
 
       img              # IMAGE
 
       glossy_layer     # DRAWABLE
 
       sel_chan         # BUMP MAP
 
       None             # ENVIRONMENT MAP
 
       True             # ENABLE BUMPMAPPING
 
       False            # DISABLE ENVMAPPING
 
       0                # LINEAR BUMPMAP
 
       1                # DIRECTIONAL LIGHT SOURCE
 
       ls_color         # WHITE LIGHT SOURCE
 
       ls_x             # LIGHT POSITION X
 
       ls_y             # LIGHT POSITION Y
 
       ls_z             # LIGHT POSITION Z
 
       ls_x             # LIGHT DIRECTION X
 
       ls_y             # LIGHT DIRECTION Y
 
       ls_z             # LIGHT DIRECTION Z
 
       glow             # AMBIANT INTENSITY (GLOWING)
 
       bright           # DIFFUSE INTENSITY (BRIGHT)
 
       bright           # DIFFUSE REFLECTIVITY
 
       shine            # SPECULAR REFLECTIVITY (SHINY)
 
       polish           # HIGHLIGHT (POLISHED)
 
       True             # ANTIALIASING
 
       False            # SAME IMAGE
 
       False              # TRANSPARENT BACKGROUND
 
       )

 
   # drop shadow
 
   pdb.gimp_image_set_active_layer(imgstroke_layer)
 
   act_lay pdb.gimp_image_get_active_layer(img)
 
   pdb.gimp_selection_layer_alpha(act_lay)
 
   pdb.script_fu_drop_shadow(
 
       img             # IMAGE
 
       act_lay         # MASK LAYER
 
       ds_x            # X OFFSET
 
       ds_y            # Y OFFSET
 
       ds_blur         # BLUR RADIUS
 
       sh_color        # SHADOW COLOR
 
       ds_opac         # SHADOW LAYER OPACITY
 
       True              # ALLOW RESIZING
 
       )

 
   # restore initial state
 
   pdb.gimp_image_resize(
 
       img             # IMAGE
 
       img_w           # WIDTH
 
       img_h           # HEIGHT
 
       0               # X OFFSET
 
       0                 # Y OFFSET
 
       )
 
   pdb.gimp_selection_load(cur_sel)
 
   pdb.gimp_image_remove_channel(imgcur_sel)
 
   pdb.gimp_image_remove_channel(imgsel_chan)
 
   pdb.gimp_image_set_active_layer(imglayer)
 
   pdb.gimp_context_set_foreground(cur_color)
 
   pdb.gimp_context_set_brush(cur_brush)

 
   pdb.gimp_undo_push_group_end(img)
 
   return

register
(
 
   "python_fu_glossy_stroke_3d",
 
   "Stroke with a glossy 3-D effect and a dropped shadow",
 
   "Stroke with a glossy 3-D effect and a dropped shadow",
 
   "Eric Leroy",
 
   "Eric Leroy",
 
   "2010",
 
   "GlossyStroke 3D",
 
   "*",
 
   [
 
     (PF_IMAGE"image""Input image"None),
 
     (PF_DRAWABLE"drawable""Input layer"None),
 
     (PF_COLOR"fg_color""Color:", (0157255)),
 
     (PF_BRUSH"brush""Stroking brush:"None),
 
     (PF_OPTION"stroke""Selection:"0, ["Stroke""Fill"]),
 
     (PF_SPINNER"rounding""3D amount:"2, (0501)),
 
     (PF_COLOR"ls_color""Light color:", (255255255)),
 
     (PF_SPINNER"ls_z""Light height:"0.5, (0.020.00.1)),
 
     (PF_SPINNER"glow""Glowing:"5.0, (0.01000000.01)),
 
     (PF_SPINNER"bright""Brightness:"1.00, (0.01000000.01)),
 
     (PF_SPINNER"shine""Shiny:"5.0, (0.01000000.01)),
 
     (PF_SPINNER"polish""Polish:"30.0, (0.01000000.01)),
 
     (PF_COLOR"sh_color""Shadow color:", (000)),
 
     (PF_SPINNER"ds_x""Shadow offset X:"10, (-50501)),
 
     (PF_SPINNER"ds_y""Shadow offset Y:"10, (-50501)),
 
     (PF_SPINNER"ds_blur""Shadow blur radius:"15, (0501)),
 
     (PF_SLIDER"ds_opac""Shadow opacity:"80, (01001))
 
   ],
 
   [],
 
   python_glossy_stroke_3d,
 
   menu="<Image>/Filters/Light and Shadow")

main() 
Thanks for listening!

Print this item