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
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.
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.
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?
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:
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.
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.
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).
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?
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