Welcome, Guest |
You have to register before you can post on our site.
|
|
|
batch command experienced an execution error |
Posted by: tristan - 07-17-2023, 07:28 AM - Forum: Extending the GIMP
- Replies (1)
|
 |
This script - full disclosure, I made it with the help of AI as I'm not much of a coder - is getting the following error:
batch command experienced an execution error:
Error: /: argument 1 must be: number
gimp: 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
I haven't been able to figure out how to fix it. I've tried the usual things--making sure GIMP is up to date, etc.
Thanks for any help offered.
Code:
#!/bin/bash
# Prompt for image selection
input_image=$(zenity --file-selection --title="Select an image or document" --file-filter="Image files | *.jpg *.jpeg *.png *.tiff *.webm *.pdf")
# Check if a file was selected or the dialog was canceled
if [ -z "$input_image" ]; then
echo "No file selected. Exiting."
exit 0
fi
# Extract the directory path from the input file
input_dir=$(dirname "$input_image")
# Extract the filename from the full path
filename=$(basename "$input_image")
# Construct the output image path in the same directory as the input file
output_image="${input_dir}/${filename}.jpg"
# Step 1: Scale the image to a width of 800px
# Step 2: Fit canvas to image size
# Step 3: Export to JPG with quality set to 80
gimp -i -b "(let* ((image (car (gimp-file-load RUN-NONINTERACTIVE \"$input_image\" \"$input_image\")))
(drawable (car (gimp-image-get-active-layer image))))
(gimp-image-scale image 800 (/ (gimp-image-width image) (gimp-image-height image)))
(gimp-image-resize-to-layers image)
(file-jpeg-save RUN-NONINTERACTIVE image drawable \"$output_image\" \"$output_image\" 0.8 0 1 1 \"\" \"\")
(gimp-image-delete image))" -b "(gimp-quit 0)"
|
|
|
Seamless texture on A4 canvas |
Posted by: davemanc - 07-16-2023, 07:24 PM - Forum: General questions
- Replies (5)
|
 |
Hello everyone
I would like to make a seamless texture on an A4 sheet of paper so that I can print it out in several copies and combine it later.
"Tile seamless" doesn't work, there are errors.
The texture would a plank floor for example.
|
|
|
.FIT file 'seized' by GIMP |
Posted by: Careybird - 07-16-2023, 10:03 AM - Forum: General questions
- Replies (2)
|
 |
Greetings, help shall surely be appreciated, please.
I have a Lezyne bike computer which logs ifles with a .FIT extension. Somehow, GIMP has 'captured' these files and created them to be opened by GIMP. Lezyne's o/s does not recognised them so I cannot load them onto the Lezyne site. I have un-installed GIMP hoping that might cure the problem but, alas, it hasnt.
Is someon able to help me, please? A priivate reply is welcomed, if allowed, @ careyskanda@gmail.com
Careybird
PS I tried to attach a copy of a file from Lezyne but apparently it has been forbidden
|
|
|
How to propagate changes from source layer to its duplicates? |
Posted by: challenger - 07-14-2023, 08:24 AM - Forum: General questions
- Replies (4)
|
 |
Lets say I'm designing a board game cards. I have a kind of master layer group, where I have designed and hid all layer groups, needed for certain card types.
We have coins and workers. There may be certain amount of coins (so I have a layer for each occurrence , like 1, 2, 3 & 4 coins). I'm going to create a number of duplicates of that master layer as a separate cards and align them in a grid. Then I'll just turn visibility on for the required coin layer. It will create a coin cards set (1coin, 1 coin, 2 coins, 3 coins, 4 coins on the same image to be printed).
And here I want to make some changes to coin layer, lets say change margin between coins, resize or even replace the coin image (lets assume that image itself is a child layer). And I want the to be made to master layer and propagated to all duplicates, created from that layer.
Is there any way to do this in gimp?
Maybe someone knows a better tool supporting such functionality. I'll appreciate any help.
|
|
|
The boiler room |
Posted by: denzjos - 07-13-2023, 07:05 PM - Forum: Watercooler
- Replies (2)
|
 |
After a MS windows 10 update, my MS Office XP no longer works (on startup, the acces the screen appears and then disappears) . I often make backups, after installing my last backup, I could start Office XP again and could export the data. I used the access database since 1996 and I want to import the data in LibreOffice Base. As I started with gimp a few years ago and first did'n like it (now, after learning it, I do like it). Using LibreOffice, I found it very basic and did'n like it : it's like I was in the boiler room. After reading several sollutions and tested them out, I could import my data in Libreoffice Base (after export access---> dbase4). A few lines were not imported, but I inserted them by hand. Now I had to learn how to use tabels / query's / forms and rapports. Hard to do when be microsoft brainwashed, but I persevered. After a few solutions that ended in the dust bin, I felt my brain learned to think the Libreoffice way. Now, my database is working fine and MS Office landed in the dust bin (because it died again today) . OO software isn't bad at all (and it's free). That's why I post this in the watercooler, again on normal temparture.
|
|
|
Divide straight line with "notches" (e.g. graph scale) |
Posted by: TobyEggitt - 07-13-2023, 05:17 PM - Forum: General questions
- Replies (14)
|
 |
Hi all, I'm looking to put a "scale" on an image. It's actually a map that I'm cropping a region from. So, I need to be able to draw a straight line on the full size original, between two known points, and divide that into a specific number of subdivisions (e.g. miles, but more likely minutes of lat/long in my situation).
Ideally, the result would put "tick marks", or "notches" along the line, in the manner of a graph scale, but as long as the points are identifiable I could do that by hand.
After all that, I would then crop the image, leaving some part of the line in the crop to act as the new scale.
I found this thread:
https://www.gimp-forum.net/Thread-ofn-br...es-on-path
which I think I could make work, but I suspect it's unnecessarily complex, since the target of "equal division" is an arbitrary path. I'm hoping there's a better/simpler/faster approach for the straight line situation?
Any pointers?
TIA,
Toby
|
|
|
|