Welcome, Guest |
You have to register before you can post on our site.
|
Latest Threads |
edit_paste pastes at inco...
Forum: Scripting questions
Last Post: class43
6 hours ago
» Replies: 2
» Views: 114
|
CMYK color mode Gimp 2.10
Forum: Extending the GIMP
Last Post: rich2005
9 hours ago
» Replies: 20
» Views: 82,176
|
Open, save buttons on bot...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: GrumpyDeveloper
Yesterday, 09:52 PM
» Replies: 8
» Views: 2,953
|
Clone size randomly chang...
Forum: General questions
Last Post: oldschool1@runbox.com
Yesterday, 05:45 PM
» Replies: 2
» Views: 184
|
AI Gimp Plugins
Forum: Watercooler
Last Post: Zbyma72age
Yesterday, 03:31 PM
» Replies: 20
» Views: 53,524
|
Gimp closes automatically
Forum: General questions
Last Post: sallyanne
Yesterday, 05:50 AM
» Replies: 2
» Views: 214
|
AIGoR - Artificial Image ...
Forum: Other graphics software
Last Post: vitforlinux
07-16-2025, 11:10 AM
» Replies: 12
» Views: 3,835
|
Is This Possible ? Print ...
Forum: General questions
Last Post: sallyanne
07-16-2025, 07:47 AM
» Replies: 4
» Views: 207
|
Gimp Crash
Forum: Gimp 2.99 & Gimp 3.0
Last Post: rich2005
07-16-2025, 07:16 AM
» Replies: 1
» Views: 151
|
producing an image
Forum: Gallery
Last Post: MJ Barmish
07-15-2025, 06:37 PM
» Replies: 0
» Views: 113
|
|
|
edit_paste pastes at incorrect location after scaling |
Posted by: class43 - Yesterday, 01:41 PM - Forum: Scripting questions
- Replies (2)
|
 |
I am working on an application to scale an image, but the bottom part of the image contains a special pattern that must be copied over and repeated since it is distorted during scaling. I have the following section of code:
Code:
image1 = Gimp.file_load(Gimp.RunMode.NONINTERACTIVE, Gio.file_new_for_path(image1_dir))
image1_width = image1.get_width()
image1.select_rectangle(Gimp.ChannelOps.REPLACE, 0, 1479, image1_width, 57)
image1_dr = image1.get_selected_drawables()
Gimp.edit_copy(image1_dr)
image.scale(image_new_width, image_height)
image1.select_rectangle(Gimp.ChannelOps.REPLACE, 0, 1479, image1_width, 57)
image1_dr = image1.get_selected_drawables()
Gimp.edit_paste(image1_dr[0], True)
image1.select_rectangle(Gimp.ChannelOps.REPLACE, image1_width, 1479, image1_width, 57)
image1_dr = image1.get_selected_drawables()
Gimp.edit_paste(image1_dr[0], True)
In this code, I select and copy an area of size (width, 57) from coordinate (0,1479). Then, I scale the image to a new width. I then try and paste the selected area at coordinates (0,1479) and then at (original_width, 1479). So the whole of the bottom of the new image should have the original pattern. However, only a region on the bottom right of the image is covered, and not at the specified regions. In an example, if width was originally 25378, and then scaled to 31234, the selected area was only pasted onto the region from (15617,1479) to (31234,1479). The other area where I pasted first from (0,1479) to (15617,1479) has the distorted pattern after scaling and not the original pattern that was pasted onto it.
Can you please explain why this occurs, and suggest a way to properly copy and paste the original pattern onto the scaled image?
Thank you for your help!
|
|
|
Clone size randomly changes |
Posted by: oldschool1@runbox.com - 07-16-2025, 10:03 PM - Forum: General questions
- Replies (2)
|
 |
I'm running GIMP 2.10.38, but I've also downloaded 3.04 as an appimage and had the same issue with it. I'm on the latest update of MX Linux.
A few months ago, whenever I try and use the clone tool, the tool size seemingly randomly changes size and orientation when I move the cursor or tool. I've tried disabling dynamics options, but this had no effect. In the paint dynamics editor, the opacity, size, and angle have an x in the random column, which I cannot change. While I don't know if that is related, it may be relevant.
I've uninstalled and reinstalled gimp to no avail. As I've said, I downloaded 3.04 as an appimage with the same results.
Running this for graphics:
Code:
Graphics:
Device-1: NVIDIA GM107GLM [Quadro M1200 Mobile] vendor: Lenovo driver: nvidia v: 535.247.01
non-free: 530.xx+ status: current (as of 2023-03) arch: Maxwell code: GMxxx process: TSMC 28nm
built: 2014-19 pcie: gen: 1 speed: 2.5 GT/s lanes: 16 link-max: gen: 3 speed: 8 GT/s
bus-ID: 01:00.0 chip-ID: 10de:13b6 class-ID: 0300
Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm v: 4.20.0 driver: X: loaded: nvidia
unloaded: fbdev,modesetting,nouveau,vesa alternate: nv gpu: nvidia display-ID: :0.0 screens: 1
ANY ideas?
|
|
|
Gimp Crash |
Posted by: KjellA - 07-15-2025, 09:32 PM - Forum: Gimp 2.99 & Gimp 3.0
- Replies (1)
|
 |
I have windows 11. I open Gimp 3.04 and try to open an image then gimp closes, I have uninstalled and removed everything and reinstalled but the same thing happens time and time again
|
|
|
producing an image |
Posted by: MJ Barmish - 07-15-2025, 06:37 PM - Forum: Gallery
- No Replies
|
 |
I am currently preparing a new site, in which I intend to show how I created some of my images.
Let me give you an example (published in January on https://mjbarmish.fr). This image's primary quality is its delicacy and refined character.
However, it requires the use of at least 4 Gimp filters, not including sharpness, exposure, contrast, etc.
1. At the beginning there is a backlit photo of the church of a small village. It is of no interest.
2. I started by giving it some color with Normal map at a fairly high level 201.
3. Then to force the tones a little, I merged the original photo in subtraction mode.
4. Then I added some sharpening, before submitting the result to the recursive despeckle with extreme settings 30 -1 256.
5. At this point the picture becomes interesting; but it clearly lacks a finishing touch.
I then had the idea of sticking it on itself, but turning it over,
6. and merged in HSV saturation mode. As I expected, an aesthetically pleasing addition occurred. After, of course, exposure, sharpness, contrast...
Which just goes to show that you should never throw away a bad photo.
See you soon
|
|
|
GIMP 3.x: Editing a pdf |
Posted by: brucemc777 - 07-15-2025, 02:38 PM - Forum: General questions
- Replies (1)
|
 |
In Gimp 2.x i was able to copy and paste sections of a pdf (imported as an image if that makes any difference) whereas in 3.x i cannot.
I have uninstalled and reinstalled both versions a number of times, finally reinstalling 2.8
Due to my inexperience i suspect "user error" rather than a bug.
Would anyone be so kind as to advise?
Thank you!
-Bruce
|
|
|
Gimp closes automatically |
Posted by: KjellA - 07-15-2025, 01:42 PM - Forum: General questions
- Replies (2)
|
 |
I have installed Gimp 3.04. When I try to save a file, Gimp closes automatically. I have uninstalled and deleted all files related to Gimp and reinstalled Gimp, but the same problem persists, windows 11
|
|
|
Endianess of pixel data in a Python region for gimp 2.10. |
Posted by: teapot - 07-14-2025, 02:49 PM - Forum: Scripting questions
- Replies (3)
|
 |
For gimp 2.10, is my understanding correct?
Given a region's bytes from a layer ‘l’:
r = l.get_pixel_rgn(0, 0, w, h)
rb = r[:, :]
I think rb will hold the bytes of the channel's values in the machine's native endianess because:
- a region maps onto tiles,
- getting the tile's pixels uses a simple memcpy(), and
- a tile's pixels are in the native endianess.
I'm aware tile data in an XCF file is big-endian from
https://testing.developer.gimp.org/core/...ganization
But I'm interested in what's in memory and guaranteed to be seen through slicing a Python region into a string of bytes.
|
|
|
3.0.4 crashes all the time? |
Posted by: mayorpunk - 07-13-2025, 11:13 PM - Forum: Gimp 2.99 & Gimp 3.0
- No Replies
|
 |
Hello! First time posting. Just started using GIMP again and downloaded the latest version, 3.0.4. It keeps crashing on me? All i'm doing is paning, zooming, and erasing, pretty simple stuff. This is the error I get, I have no idea how to interpret this:
GNU Image Manipulation Program version 3.0.4
git-describe: GIMP_3_0_4
Build: org.gimp.GIMP_official rev 0 for windows
# C compiler #
clang version 20.1.5
Target: x86_64-w64-windows-gnu
Thread model: posix
InstalledDir: C:/msys64/clang64/bin
# Libraries #
using babl version 0.1.114 (compiled against version 0.1.114)
using GEGL version 0.4.62 (compiled against version 0.4.62)
using GLib version 2.84.1 (compiled against version 2.84.1)
using GdkPixbuf version 2.42.12 (compiled against version 2.42.12)
using GTK+ version 3.24.49 (compiled against version 3.24.49)
using Pango version 1.56.3 (compiled against version 1.56.3)
using Fontconfig version 2.16.2 (compiled against version 2.16.2)
using Cairo version 1.18.4 (compiled against version 1.18.4)
using gexiv2 version 0.14.3 (compiled against version 0.14.3)
using exiv2 version 0.28.5
> fatal error: unhandled exception
Stack trace:
-------------------
Error occurred on Sunday, July 13, 2025 at 19:05:50.
gimp-3.exe caused an Access Violation at location 00007FF622808C78 in module gimp-3.exe Reading from location 0000000000000008.
|
|
|
|