Welcome, Guest |
You have to register before you can post on our site.
|
Latest Threads |
plugins not showing
Forum: Extending the GIMP
Last Post: programmer_ceds
10-13-2025, 05:00 PM
» Replies: 2
» Views: 224
|
plugins - dead easy
Forum: Watercooler
Last Post: rich2005
10-13-2025, 10:44 AM
» Replies: 0
» Views: 122
|
shift Q cursor clarity
Forum: General questions
Last Post: rich2005
10-13-2025, 07:47 AM
» Replies: 2
» Views: 164
|
After using path tool - a...
Forum: General questions
Last Post: Joe
10-13-2025, 01:37 AM
» Replies: 9
» Views: 491
|
Gimp 3.0.6 Appimage
Forum: Alternate Gimp packagings
Last Post: CtrlAltDel
10-13-2025, 01:21 AM
» Replies: 1
» Views: 179
|
Shapes in GIMP
Forum: General questions
Last Post: sallyanne
10-12-2025, 10:53 PM
» Replies: 5
» Views: 328
|
windows 10 : goodbye...
Forum: Watercooler
Last Post: denzjos
10-12-2025, 02:20 PM
» Replies: 1
» Views: 429
|
is GIMP have the "mesh tr...
Forum: General questions
Last Post: sallyanne
10-11-2025, 09:42 AM
» Replies: 2
» Views: 215
|
Character eyebrow replace...
Forum: General questions
Last Post: Dunham
10-09-2025, 01:45 PM
» Replies: 5
» Views: 388
|
reverse engineering effec...
Forum: General questions
Last Post: sallyanne
10-09-2025, 08:00 AM
» Replies: 2
» Views: 265
|
|
|
No pen/brush No eraser usable |
Posted by: Ps2Gimp - 01-04-2023, 10:47 AM - Forum: General questions
- Replies (4)
|
 |
Today i turned on Gimp, created a new document but i could no draw a line or erase but i was able to create a square using Rectangle_selection & Bucket. Re-installed Gimp did not fix anything? A setting ?
Thanks
|
|
|
erasing |
Posted by: adriaannelemans@online.nl - 01-04-2023, 05:48 AM - Forum: General questions
- Replies (8)
|
 |
Just started. I have an image on wich I paint. When I erase it goes through the whole image and becomes white. How should I erase something and keep my background intact ? I'm sure its easy, but I can't find.
|
|
|
Resize image within photo |
Posted by: bsnmate - 01-02-2023, 04:19 PM - Forum: General questions
- Replies (4)
|
 |
Hello. New to forum. I would like to know how to resize an image within a photo file without reducing the whole photo. I have not been able to get an answer to this question with multiple searches. Most posts have to do with reducing/compressing the entire photo file, and this is not what I want to do. I want to shrink an image to make a more usable wallpaper. I am new to photo editing so am very ignorant of terms so please be gentle. Thanks
|
|
|
GEGL Drop Shadow in Script |
Posted by: BaconWizard17 - 12-31-2022, 03:36 PM - Forum: Scripting questions
- No Replies
|
 |
Hi all,
Currently, I often use the GEGL drop shadow tool to create outlines on some images. This is a process that I repeat often, so I would like to be able to automate it via script. However, the only scripting option that I can find is for the legacy drop shadow. The legacy version doesn't have as many options, and some of them are interpreted differently, so I'm not able to replicate the same effect with the legacy version. Does anyone know if there's a script out there that can replicate the GEGL drop shadow tool's effects? I've done some googling, but I haven't been able to find anything so far.
|
|
|
Python Fu Image Creation - Slight Issues |
Posted by: BaconWizard17 - 12-31-2022, 06:00 AM - Forum: Scripting questions
- Replies (10)
|
 |
Hi all,
I decided to finally start learning Python-Fu (I'm already familiar with Python), and I've been getting a feel for it by converting some of my older Script-Fu scripts to Python-Fu. It's going well so far, and I've been able to convert a few. Currently, I'm working on one of my scripts to create a preview image template. Formerly, I had a series of scripts that I could use to create different sized previews. I've streamlined it to one single new Python-Fu script with two sliders that allow me to customize how big I want the preview image canvas. The sliders determine the number of rows and columns, and then the image and guides are generated from that. The script works well, but there are two issues:
- When I don't have any images open, and I run this script, the dialog for it appears, and there are two dropdowns at the top for "Input Image" and "Input Drawable", above the sliders for number of rows and columns. Both say "(Empty)," and that's the only option. If I already have another image open, these dropdowns don't appear. Is this normal? Is there any way to prevent these from appearing?
- The image, when created, is black. The older script-Fu scripts (that essentially had the same coding) would create a white image. I'm sure there are many ways to make the image white, but how do I default to that?
Here's the Python-Fu code:
Code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from gimpfu import*
def multiSkinPreviewAny (theImage, theLayer, columns, rows):
# Establish the dimensions of the image based on the number of rows and columns
theImageWidth = 543 * columns
theImageHeight = 1080 * rows
# Create the image
theImage = pdb.gimp_image_new(theImageWidth, theImageHeight, 0)
# Create the main layer
theLayer = pdb.gimp_layer_new(theImage, theImageWidth, theImageHeight, 0, "Background", 100, 28)
# Add the layer to the image
pdb.gimp_image_add_layer(theImage, theLayer, 0)
# Add guides at the top left and bottom right
guide = pdb.gimp_image_add_vguide(theImage, 0)
guide = pdb.gimp_image_add_hguide(theImage, 0)
guide = pdb.gimp_image_add_vguide(theImage, theImageWidth)
guide = pdb.gimp_image_add_hguide(theImage, theImageHeight)
i = 0
# Add 1 vertical guide for every column
while i < columns:
xcoord = i * 543
guide = pdb.gimp_image_add_vguide(theImage, xcoord)
i += 1
# Re-initiate the counter
i = 0
# Add 1 horizontal guide for every row
while i < rows:
ycoord = i * 1080
guide = pdb.gimp_image_add_hguide(theImage, ycoord)
i += 1
# Display the new image
display = pdb.gimp_display_new(theImage)
register(
"python_fu_marvelmods_common_multiskinpreviewany",
"Create template grid for skin preview images.",
"Create template grid for skin preview images.",
"BaconWizard17",
"BaconWizard17",
"December 2022",
"<Image>/Marvel Mods/Skin Previews/Multi Skin Showcase/Custom Size Skin Preview",
"",
[
(PF_SLIDER, "columns", "Number of Columns:", 2, (1, 8, 1)),
(PF_SLIDER, "rows", "Number of Rows:", 2, (1, 8, 1))
],
[],
multiSkinPreviewAny)
main()
And here's one of the Script-Fu scripts for comparison:
Code:
; 2x2 grid skin preview for XML2/MUA1 skins
(define (script-fu-mua-xml2-2x2-preview)
(let*
(
; define our local variables
; create a new image:
(theImageWidth 1086)
(theImageHeight 2160)
(theImage
(car
(gimp-image-new
theImageWidth
theImageHeight
RGB
)
)
)
; background layer
(theLayer
(car
(gimp-layer-new
theImage
theImageWidth
theImageHeight
RGBA-IMAGE
"Background"
100
LAYER-MODE-NORMAL
)
)
)
) ;end of our local variables
; add the layers
(gimp-image-add-layer theImage theLayer 0)
; add the guides
(gimp-image-add-hguide theImage 1080)
(gimp-image-add-vguide theImage 543)
; show the new image on the screen
(gimp-display-new theImage)
)
)
; populate script registration information
(script-fu-register
"script-fu-mua-xml2-2x2-preview"
"2x2 Skin Preview"
"Creates an image for a 2x2 grid preview for 4 skins."
"BaconWizard17"
"BaconWizard17"
"September 2021"
""
)
; register the script within gimp menu
(script-fu-menu-register "script-fu-mua-xml2-2x2-preview" "<Image>/Marvel Mods/Skin Previews/Multi Skin Showcase")
Any input is appreciated!
|
|
|
|