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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,362
» Latest member: CfsZow
» Forum threads: 6,666
» Forum posts: 36,331

Full Statistics

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

 
  Help! Python loop for the mentally challenged.
Posted by: david - 09-11-2020, 02:56 PM - Forum: Scripting questions - Replies (2)

I have channels, named 0 to 9.
To create layers 0 to 9, I can repeat the code, changing "0" to "1", "2", etc. and it works perfectly.
I would like to make a loop to carry out this process, but everything I have tried has given me errors and searching the internet hasn't provided any examples for me to follow.

An example of how to do this (ideally with a detailed explanation) would be appreciated and perhaps would help others.

david.

Code:
#create layer with 0 as mask
    
    pdb.gimp_image_select_item(image,CHANNEL_OP_REPLACE,channel0)
    layer_add = pdb.gimp_layer_new_from_drawable(layer,image)
    pdb.gimp_image_insert_layer(image,layer_add,None,0)
    pdb.gimp_item_set_name(layer_add,"0")
    pdb.gimp_layer_create_mask(layer_add,ADD_MASK_SELECTION)
    mask = pdb.gimp_layer_create_mask(layer_add,ADD_MASK_SELECTION)
    pdb.gimp_layer_add_mask(layer_add,mask)
    pdb.gimp_image_remove_channel(image,channel0)

Print this item

  Solid Colours Lost on Export
Posted by: Ben03 - 09-11-2020, 09:01 AM - Forum: General questions - Replies (4)

I apologise if this is addressed in another topic, but don't know the technical terms for what's going on here. It is probably a simple setting I am missing:

When I export an image, jpeg or png, any area of a solid colour is removed from the image. What am I doing wrong here?

Thanks

Print this item

  Any on-screen live effects widget for Linux?
Posted by: ChameleonScales - 09-10-2020, 11:20 AM - Forum: Other graphics software - Replies (2)

Looking for a way to bypass GIMP's lack of dynamic filters and color adjustments in some situations, I wonder if there exists any real-time widget software that performs image effects and adjustments on a given region of the screen.
This could be useful to quickly analyse an image or to preview the result of an adjustment without having to merge all the layers and apply the filter in GIMP.

To give you a better idea of what I'm looking for, there is this app, "Scopes", that displays the vectorscope of a given screen region. What I would like is something that lets you preview filters or effects such as curves or levels on that region (could be other effects too).

Print this item

  >Lost in new Gimp
Posted by: qim - 09-10-2020, 10:16 AM - Forum: General questions - Replies (5)

I have been away for a while and am lost...

I have an image that I want to crop and make it fit in a canvas 300 x 300 

I have tried and tried and can't even save what I managed to do

I also want to grey out the registration,

help!....


PS I added original photo as cropped one too cropped...



Attached Files Thumbnail(s)
       
Print this item

  Plugin not using dark theme
Posted by: xeonicus - 09-10-2020, 02:10 AM - Forum: General questions - Replies (5)

I'm using Gimp 2.10.20 on Windows 7.  I set Gimp to use the dark theme.  Everything works great.


I installed a plugin called fanim timeline.

Now, the plug-in actually functions correctly.  However... the timeline window uses the default theme, not the dark theme.

The screenshot on GitHub clearly shows the plugin using the dark theme.  I don't know if it's a plugin problem, or my problem.  My other plugins recognize the dark theme and use it.

Print this item

  File New problem
Posted by: sparky 1987 - 09-10-2020, 01:35 AM - Forum: General questions - Replies (2)

I have Gimp 2.10.20 rev 1
My camera on current setting takes a file 6000 X 4000  - 9Mb average size and loads into Gimp for editing no problem but if I then go to File new and try to make a new image that size it warns me I am making a image of 232 Mb and set in preference max 134.2 why should it make a image that large when my photos are only 9Mb ?

Print this item

  Why can't I draw straight lines with my tablet pen?
Posted by: GIMPsuit - 09-09-2020, 07:41 PM - Forum: General questions - Replies (4)

No, I'm not talking about my hand technique.  Wink 

I'm referring to the straight line feature achieved with Shift+LeftClick. The feature works just fine with my mouse. With my tablet pen, however, the dragged line appears when you press Shift, and after "clicking" (pressing the pen to the tablet), the dragged line goes away (as expected) but no line is drawn.

Otherwise, the pen works okay. Even pressure works. Does anyone have a clue?

Edit: video: https://i.imgur.com/lv40OWB.gif

Specs
Arch Linux
GIMP 2.10.20
Monoprice 10594 tablet

Print this item

  script to merge files into layers and set a layer mask
Posted by: DanielDD - 09-09-2020, 01:18 PM - Forum: Scripting questions - Replies (10)

Hallo,

I need a script for batch mode:

There are files t0.tif and t1.tif (single page tifs) in the current directory.

The script should open these files and put them into a single file as layers
(t0.tif as bottom and t1.tif as top layer).

Then, the script should set "grain merge" to the top layer and add a white
layer mask.

I am somewhat familiar with (scheme)lisp, but I have no knowledge on
script-fu.

Finally, the script should save the file in standard gimp format.

Daniel

Print this item

  2.10 for Colormap - Python-fu or other way
Posted by: Imc7r - 09-08-2020, 01:21 PM - Forum: General questions - Replies (1)

Hi. Im working with sprites and 8 bit backgrounds. I have to convert them to 8 bit (usually irfan view because without Floydd Steinberg dithering reducing colors in gimp makes them really like some ink color spill poor quality, maybe it exists in gimp dunno).



[Image: QoMZY.png]

What I also have to do is when  I have an image with 256 color map, I need to add a color to the color map and it has to be first color of the palette (top left corner), it will be used for transparency. Usually BEFORE I convert to 8 bit, I have to make a pixel on the image with the wanted color and then convert the image to 256 colors so that the desired color is included in the palette. Then brush the pixel off the image. This takes a lof of time to do for multiple images.

Is there a way to automate this with script or other way?

For example add a color without messing up the rest of the palette or replacing black color where e.g you will see magenta on an image because you replaced the black in it with magenta.

And then once you add the color to the palette, position it as first. I use it with Color - Map - Rearrange color map but firstly need to add the color to the palette then automate its rearrangement.

Irfanview wont let me have the image with just 255 colors not 256 so that it won''t replace an existing color if I added a 256th color

Print this item

Video split selection in all layer
Posted by: ldanes - 09-08-2020, 05:02 AM - Forum: Extending the GIMP - Replies (2)

I would like to know if there is any way to select the same shape of an image in all layers and then cut it and preserve it from changes. I expose my situation:

I want to erase the background behind the character, I am editing a gif file using the ofn-layer-tiles plugin and erasing the background with the color to alpha tool and the eraser. All very well until I realized that I cannot erase blue and white pixels from the background without also erasing them from the character (eyes and clothes). Erasing with the rubber layer by layer has been difficult for me and I was wondering if there is a way to "protect" the character by removing it from the selection or cutting it, because it is a static image, I share the progress that I have of the image now and also the original image:https://i.imgur.com/6pX6Z90.gif and original https://i.imgur.com/gDRIbQX.mp4
I hope I have been clear and can help me
Translated by Google translator

Print this item