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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,363
» Latest member: Hakakeen
» Forum threads: 6,666
» Forum posts: 36,333

Full Statistics

Latest Threads
3D like effect on frames ...
Forum: General questions
Last Post: OJS
1 hour ago
» Replies: 5
» Views: 134
Some folders missing icon...
Forum: General questions
Last Post: programmer_ceds
7 hours ago
» Replies: 1
» Views: 68
Darktable Images Opening ...
Forum: Windows
Last Post: rich2005
8 hours ago
» Replies: 5
» Views: 187
Gimp UI progress bar "can...
Forum: Scripting questions
Last Post: JBreckeen
Yesterday, 05:22 PM
» Replies: 2
» Views: 108
Automatic cutting image i...
Forum: General questions
Last Post: rinaldop
Yesterday, 02:39 PM
» Replies: 6
» Views: 144
Downloaded the full gimps...
Forum: Watercooler
Last Post: vitforlinux
Yesterday, 11:49 AM
» Replies: 4
» Views: 267
Currently Active Image
Forum: Scripting questions
Last Post: JBreckeen
05-05-2024, 07:30 PM
» Replies: 6
» Views: 244
[SUGGESTION] Improved uni...
Forum: General questions
Last Post: Ofnuts
05-03-2024, 09:48 PM
» Replies: 4
» Views: 246
Getting active image and ...
Forum: Tutorials and tips
Last Post: Ofnuts
05-02-2024, 07:32 AM
» Replies: 0
» Views: 166
python-fu pdb.file_exr_sa...
Forum: Scripting questions
Last Post: JBreckeen
05-01-2024, 03:12 PM
» Replies: 0
» Views: 114

 
  preview larger
Posted by: novalore40 - 09-08-2020, 03:56 AM - Forum: Older Gimp versions (2.8, 2.6....) - Replies (5)

Hey my lovelies I am trying to use to the filters that come with gimp. I was wondering is there anyway I could make the preview larger for the plugins (like Iwarp). What I am working on now is way to small for me to see I have resized the window but that didn't help. I wear glasses and it still is to small for me to see. Is there any way I can fix this? Thanks in advance

Print this item

  Need gegl to build gimp, and can't build gegl
Posted by: shachter - 09-08-2020, 03:41 AM - Forum: Linux and other Unixen - Replies (3)

Esteemed Colleagues:

Readers of this forum know that I recently built gimp 2.10
from source, and it was a nightmare, but I did it.

Now -- apparently in search of suffering, for there can be
no other reason for trying to do this -- I am trying to build
gimp 2.10 from source again, for another operating system
that shares the same hardware (my laptop is a multiboot
machine, I have several operating systems installed on it).

Because gimp 2.10 has many dependencies that are newer
than the versions available thru my package manager -- or,
in some cases, not available at all thru my package manager
-- I have had to build those dependencies from source. Only
one unbuilt dependency now remains on this operating system,
gegl.

I cannot build gegl on this operating system.  That, of course,
is surely not true, what I mean to say is that I have not figured
out how to build gegl on this operating system.  I turn to you,
esteemed colleagues, for help once again.  This is the error
message that I get, time and time again, no matter what -f
arguments I have given to the compiler (and I have tried
many):


    operations/external/exr-load.so.p/exr-load.cpp.o: In function import_exr(_GeglBuffer*, char const*, int)':
    /usr/local/src/gegl-0.4.26/build/../operations/external/exr-load.cpp:506: undefined reference to
Imf_2_1::Chromaticities::Chromaticities(Imath_2_2::Vec2<float> const&, Imath_2_2::Vec2<float> const&, Imath_2_2::Vec2<float> const&, Imath_2_2::Vec2<float> const&)'


This is at operation [481/750] of the ninja build.

Most likely this is a missing constructor that should have been
created from a template, but which the c++ compiler is failing
to create.  But templates have been around for a long time
(31 years, in fact -- I remember when Bjarne Stroustrup
announced them in the Journal of Object-Oriented Programming;
but I digress) and I am using gcc 9.2.0.  Surely by gcc 9.2.0
the g++ compiler has managed to get templates right.  So
what is going on?  I suppose I could build clang from scratch
and then try to build gegl with clang++, but I am certain that
this is not a compiler problem.  And yet, this same version
of gegl has been successfully built before.  So why can I not
build it on this operating system?  What do I have to do?
As always, I thank you in advance for any and all replies.

    jay at m5 dot chicago dot il dot us

Print this item

  3D funnel
Posted by: Ofnuts - 09-07-2020, 12:35 PM - Forum: Gallery - No Replies

Testing a new script. If you look at this picture long enough, you will perceive a full shape in the middle (middle "deeper" than the rest).


   

(open image in a new tab, and zoom it so that the image is about twice as big as the distance between your pupils)

Print this item

  Docks Keep Disappearing
Posted by: Iyebiye - 09-07-2020, 02:00 AM - Forum: General questions - Replies (1)

I am new to GIMP. Anytime I open a dock like Color Balance, Exposure or Curves, the moment I make edits with it and click "OK", the dock just disappears. I don't know how to recall it, especially when I want to adjust something I have done.  I found a place to click under Windows called "Recently Closed Docks" but it just never works. Is anyone else having that problem please? I use a Macbook.

Print this item

  Can't print whole image
Posted by: moon monkey - 09-06-2020, 07:46 PM - Forum: General questions - Replies (2)

Hi
I've just switched to a new laptop, and I'm finding that I can't print the whole image. Approximately 14% of the width and height show as blank on the image preview - blank strips to the right and bottom. I can't find any reason for this! Anyone know what is causing it?

Print this item

  Disable antialias/filter when deleting a section?
Posted by: somanydamnusers - 09-06-2020, 06:05 PM - Forum: General questions - Replies (2)

This must be something extremely basic, but I can't figure it out.
I have a selection which I am trying to delete. The layer has an alpha channel, but I want it to stay true to the selection (that is, EVERYTHING in the selection is deleted, and EVERYTHING outside the selection is maintained). When I select it and delete, this happens:

this

goes to this


It looks like some kind of antialiasing or texture filter, how do I disable it? As in, the selection needs to be 100% cleared to alpha, and the pixels outside the selection need to be untouched.

Print this item

  Hue gradient outline.
Posted by: gjlp25 - 09-06-2020, 05:17 PM - Forum: General questions - Replies (3)

Hi all,

After being stuck for a while now i decided to join this forum. I am creating a logo but i cannot figure out how to create a hue like outline like in the following logo.

https://hyperion-project.org/styles/xenb...perion.png

Can you guys help me out?

kind regards,
Robert

Print this item

  EEEEeEeek! 2 GeglBuffers leaked
Posted by: gounis - 09-06-2020, 02:58 PM - Forum: Scripting questions - Replies (4)

Hello!

I've installed Gimp 2.10.20 in my Ubuntu 20.04.1 LTS using Flatpak. I've written a Script-Fu which processes a given image by scaling, and applying threshold and oilify filter. The script runs successfully but in the end, I get this weird message (see attached image).

gimp-2.10: GEGL-WARNING: (../gegl/buffer/gegl-tile-handler-cache.c:1076):gegl_tile_cache_destroy: runtime check failed: (g_queue_is_empty (&cache_queue))
EEEEeEeek! 2 GeglBuffers leaked
To debug GeglBuffer leaks, set the environment variable GEGL_DEBUG to "buffer-alloc"


I've found out that this line is responsible for the warning message (I commented out everything in the code except this line, and I still get the error).

Code:
...
(let*
       (
        (image    (car (gimp-file-load RUN-NONINTERACTIVE filename-in "")))
...
...
...
))


filename-in is something like "test.jpg". Do you maybe know what it might cause it? Thanks Smile

Note: I was also getting the same warning with Gimp 2.10.18 which I had installed via PPA.



Attached Files Thumbnail(s)
   
Print this item

  Flip horizontally reverts!
Posted by: rjvencken - 09-06-2020, 02:33 PM - Forum: General questions - Replies (11)

When I
1. Flip my image horizontally and save as jpeg or png in GIMP 2.10
2. Save it on my Android 10.5 phone
3. Try to use it in the Webex app (beta background feature)
The preview shows it in the desired orientation but when I apply it as a background pic it reverses the flip.

I am assuming there is some attribute in both jpeg and png that is picked up when previewed in Webex but ignored when the pic is applied.

1. Is my assumption right?
2. If so: how dow I get GIMP to "truly" flip instead of using the attribute?

Print this item

  plug in bump map: Works manually, but not using a Python procedure
Posted by: LinettRidge - 09-05-2020, 09:43 PM - Forum: Scripting questions - Replies (6)

Hello fellow Gimp users,

In order to format names that will appear on a game board, I've created a Python script in which for each group associated to a city name, one layer is a bump map and another one is a layer on which I'd like to apply the bump map.

I've been trying to use the procedure "plug-in-bump-map", but I cannot figure out why it's not applied when I use the script instruction (although no error is returned in the Python console), while it's ok when I manually use the gimp-filter-bump-map menu.

Code:
# remove any current selection
g.gimp_selection_none(img)

# set the parameters to be applied for embossing
azimuth = 135 ; elevation = 22 ; depth = 23

# apply the bump layer to the embossed_letters_layer
# (drawable,bumpmap,azimuth,elevation,depth,xofs,yofs,waterlevel,ambient,compensate,invert,type)
g.plug_in_bump_map(img, embossed_letters_layer, bump_layer, azimuth, elevation, depth, 0, 0, 0, 0, 1, 0, 0)

   
   

Is there something wrong in the parameter settings? I saw a discrepancy between the parameters mentioned in the procedure description (14 including "run-mode") and the expected parameters in the console (13 not including "run-mode"). Then, I didn't include any parameter for "run-mode".

Or is there something else, I'm not aware of... Frankly speaking, I'm quite newbie when it comes to Python programming for Gimp :-)

Thanks in advance for your ideas,

Cheers,

Linett.

--------
Here is my full code so far:
Code:
"""
Script to format city names from a list

There are 2 initial layers / group of layers:
- formatted_names: Group of layers on top to store the resulting formatted texts
- target_layer: This is a text layer with a text in the correct font-family, font-size and margins

For each item in the list:
1. Create a dedicated group of layers within the "formatted_names" group of gimp_layer_set_name,
copy the target layer and replace the text in the copied layer by the name of the current item
2. Create 3 different layers by duplicating the alpha selection from the copied layer:
a. glow behind the name,
b. bump layer, and
c. embossed letters on which the bump map is applied
3. Apply the bump layer to the embossed letters layers
4. Merge all the layers of the group
NB:
1. Make sure that the font setting are ok before launching the Script: foreground colour is #4d4020
2. Make sure that the font-family ("ShangriLaNFSmallCaps") and size are ok (60)
# format text box
# font-family: ShangriLaNFSmallCaps
# font-size: 60
# fill-colour: #4d4020
# bump map: 135, 22, 23
"""


# shortcut to avoid writing gimp.pdb all the time
g = gimp.pdb

# access to list of opened images
images = gimp.image_list()
# identify image opened last
img = images[0]
# get layers of images[0] (last opened image)
# the group of layers should be on top, with at least one textbox layer on top
layers = images[0].layers
print layers

# identify the group of layers ("formatted_names")
group_layer = layers[0]

# identify the layer to duplicate
target_layer = layers[1]
print target_layer

# set the height and width of the layers to be created
drawable_height = 161 #g.gimp_drawable_height(target_layer)
drawable_width = 702 #g.gimp_drawable_width(target_layer)

# provide the list of the city names to be formatted
i = 0
lst = ['Mont Saint-Michel']
print lst[i]

# create a list of group of layers where one group will be used for one city name
name_groups = []

# set lock alpha
g.gimp_layer_set_lock_alpha(target_layer, TRUE)

#####################################################################################
# 1. create a new layer group within the "formatted names" group of layers
name_groups.append(g.gimp_layer_group_new(img))
g.gimp_image_insert_layer(img, name_groups[i], group_layer, 0)  # insert this group of layers into the "formatted names" group of layers
g.gimp_item_set_name(name_groups[i], "g_"+lst[i]) # rename the group of layers as per the city name

# duplicate the target layer in the group of layers "formatted names" and set the text as per the list item
copied_layer = g.gimp_layer_copy(target_layer, TRUE)
g.gimp_image_insert_layer(img, copied_layer, name_groups[i], 0)
g.gimp_text_layer_set_text(copied_layer, lst[i]) #change the text in the textbox

#####################################################################################
# 2.a. create a glow behind the city name
# create a new layer called "glow"
glow = g.gimp_layer_new(img, drawable_width, drawable_height, RGBA_IMAGE, "glow", 90, NORMAL_MODE)
# set lock alpha
g.gimp_layer_set_lock_alpha(copied_layer, TRUE)
# copy the alpha channel to the selection
g.gimp_selection_layer_alpha(copied_layer)
# enlarge the selection by 6 pixels
g.gimp_selection_grow(img, 6)
# feather the selection by 5 pixels
g.gimp_selection_feather(img, 5)
# insert the glow layer behind the other layers of the group
g.gimp_image_insert_layer(img, glow, name_groups[i], 1)
# fill the selection with white
g.gimp_edit_fill(glow, WHITE_FILL)

#####################################################################################
# 2.b. create a bump map to emboss the letters of the city name
# create a new layer called "bump_layer"
bump_layer = g.gimp_layer_new(img, drawable_width, drawable_height, RGBA_IMAGE, "bump_layer", 100, NORMAL_MODE)
# copy the alpha channel to the selection
g.gimp_selection_layer_alpha(copied_layer)
# feather the selection by 5 pixels
g.gimp_selection_feather(img, 5)
# insert the bump layer on top of the other layers of the group
g.gimp_image_insert_layer(img, bump_layer, name_groups[i], 0) # 0 to add the layer on top or 1 to add the layer in the bottom
# fill the selection with white
g.gimp_edit_fill(bump_layer, WHITE_FILL)

#####################################################################################
# 2.c. create a layer of letters that will then be embossed
# create a new layer called "embossed_letters_layer"
embossed_letters_layer = g.gimp_layer_new(img, drawable_width, drawable_height, RGBA_IMAGE, "embossed_letters_layer", 100, NORMAL_MODE)
# copy the alpha channel to the selection
g.gimp_selection_layer_alpha(copied_layer)
# create a new layer called "embossed_letters_layer"
g.gimp_image_insert_layer(img, embossed_letters_layer, name_groups[i], 0) # 0 to add the layer on top or 1 to add the layer in the bottom
# fill the selection with foreground color
g.gimp_edit_fill(embossed_letters_layer, 0) # 0 is for FILL-FOREGROUND

#####################################################################################
# 3. Apply the bump layer to the embossed letters layer
# hide some layers
g.gimp_item_set_visible(copied_layer, FALSE)
g.gimp_item_set_visible(bump_layer, FALSE)
# set the embossed letters layer as active layer
g.gimp_image_set_active_layer(img, embossed_letters_layer)

# remove any current selection
g.gimp_selection_none(img)

# set the parameters to be applied for embossing
azimuth = 135 ; elevation = 22 ; depth = 23

# apply the bump layer to the embossed_letters_layer
# (drawable,bumpmap,azimuth,elevation,depth,xofs,yofs,waterlevel,ambient,compensate,invert,type)
g.plug_in_bump_map(img, embossed_letters_layer, bump_layer, azimuth, elevation, depth, 0, 0, 0, 0, 1, 0, 0)

#####################################################################################
#4. Merge all the layers of the group

Print this item