Welcome, Guest |
You have to register before you can post on our site.
|
|
|
What are the limitations on opening large image-files? |
Posted by: tomatoSauce23 - 11-09-2024, 12:02 PM - Forum: General questions
- Replies (2)
|
 |
Hi, I have a large 1.89GB PNG that is [51k x 42k] pixels big, it's a large map. It takes GIMP about 90 seconds to open it and to get it ready for me to view and edit. I have 16GB of RAM and Windows Task Manager says GIMP uses 8.5GB of it to display this PNG. My Dell laptop was brand-new a year ago, so the CPU's pretty-good for a laptop; the GPU is a baked-in standard Intel one, that manages most things without a problem except for demanding games.
It's not a problem for me that it should be slow to load and edit this image, as I would otherwise cut the PNG up into smaller sections; but I'm curious as to what exactly the limitations are. If I had to guess I would say it is either the CPU or GPU that can't load the large file into GIMP more quickly than that, no matter how much RAM it had supporting it. the Irfanview app could not open the image, so GIMP is doing a better job than it at least. I don't know how other image-editing software would compare—Adobe etc. .
|
|
|
Saving templates with layers. |
Posted by: StevenCunningham - 11-08-2024, 03:03 PM - Forum: General questions
- Replies (3)
|
 |
I can't seem to be able to save a template with any layers. I've created an .xcf with multiple layers and would like to make it a template. Unfortunately when I use the "Create Template..." option, none of the layers get saved. The template appears in my template list, but it is a blank slate with no layers. Also, as an aside, how do I delete templates from my template list? I now have several versions of the same layer-less template in my template list.
|
|
|
anyone try to use |
Posted by: trandoductin - 11-08-2024, 02:10 AM - Forum: Gimp 2.99 & Gimp 3.0
- Replies (5)
|
 |
GIMP 3.0 plug-ins
add_path_argument and successfully get a path to show up on UI?
I don't know why mine is not showing up.
I got add_file_argument to show up
and path just has this extra boolean in param, I tried true and false...nothing.
Over at gimpchat.com i got this plug-in called GIMP cards and it requires a directory/path and this add_path_argument is a show stopper for me trying to convert from GIMP 2.10 to GIMP 3.0.
|
|
|
Basic Python-Fu usage |
Posted by: BenjyvC - 11-06-2024, 05:57 PM - Forum: Scripting questions
- Replies (4)
|
 |
I queried Bing's Co-Pilot what tool and what code might serve to automate splitting an image into squares, this to conform to the format requirement of a cloud-based machine vision tool called Roboflow, which I'm intending to use to automate crack detection in concrete. (I've managed to learn enough about labelling in CVAT to download a json file containing the annotations in COCO 1.0, but am stuck attempting to train a model locally on my PC using detectron2.) To stay in motion while I await help on that, here's where I'm stuck using a Python-Fu script in Gimp.
When the code from Co-Pilot didn't produce anything, I asked it to simplify the operation to first confirm basic functionality using scripting in Gimp. It suggested creating a new file, but when that didn't produce anything, it further simplified to create a simple message, "Hello from Python-Fu". And when that only flashed the Console for a fraction of a sec, it included a prompt to pause for 10 seconds, which then at least that pause did work. That said, I'm not even seeing the pause when adding the create new image prompt:
from gimpfu import *
import time
def simple_message(image, drawable):
gimp.message("Hello from Python-Fu!")
time.sleep(10) # Pause for 10 seconds
def create_image(image, drawable):
save_dir = "D:/ALDOT_Model/Split_Test" # Change this to your desired directory
os.makedirs(save_dir, exist_ok=True)
# Create a new image
new_image = pdb.gimp_image_new(100, 100, RGB)
new_layer = pdb.gimp_layer_new(new_image, 100, 100, RGB_IMAGE, "New Layer", 100, NORMAL_MODE)
pdb.gimp_image_insert_layer(new_image, new_layer, None, -1)
pdb.gimp_image_flatten(new_image)
pdb.file_png_save(new_image, pdb.gimp_image_get_active_drawable(new_image), os.path.join(save_dir, "new_image.png"), "new_image.png", False, 9, True, True, True, True, True)
gimp.message("Created and saved a new image as new_image.png")
register(
"python_fu_create_image",
"Create a new image and save it",
"Create a new image and save it",
"Your Name",
"Your Name",
"2024",
"<Image>/Python-Fu/Create Image",
"*",
[],
[],
create_image)
main()
Many thanks for your insights!
|
|
|
How to edit DDS file? |
Posted by: GimpForMe - 11-06-2024, 09:42 AM - Forum: General questions
- Replies (4)
|
 |
With the instructions found here, I am able to open DDS files (BC7 texture files from game Skyrim SE) and export them. But I haven't found out how to edit them the way I would like to.
The goal for the linked texture file (https://we.tl/t-xuztkOnwWM) is to make the dirt less visible/less pronounced/less dark. But I haven't found out what exactly to edit on the alpha and/or RGB channels.
Maybe anyone can help?
|
|
|
|