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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,355
» Latest member: Raymondoxipt
» Forum threads: 6,662
» Forum posts: 36,306

Full Statistics

Latest Threads
Darktable Images Opening ...
Forum: Windows
Last Post: sallyanne
6 hours ago
» Replies: 2
» Views: 87
[SUGGESTION] Improved uni...
Forum: General questions
Last Post: Ofnuts
Yesterday, 09:48 PM
» Replies: 4
» Views: 155
Currently Active Image
Forum: Scripting questions
Last Post: Ofnuts
Yesterday, 09:32 PM
» Replies: 3
» Views: 148
Getting active image and ...
Forum: Tutorials and tips
Last Post: Ofnuts
05-02-2024, 07:32 AM
» Replies: 0
» Views: 114
python-fu pdb.file_exr_sa...
Forum: Scripting questions
Last Post: JBreckeen
05-01-2024, 03:12 PM
» Replies: 0
» Views: 100
Threading / Loops in Pyth...
Forum: Scripting questions
Last Post: JBreckeen
05-01-2024, 02:46 PM
» Replies: 14
» Views: 1,453
how do i erase blue penci...
Forum: General questions
Last Post: rich2005
05-01-2024, 07:21 AM
» Replies: 1
» Views: 121
Align Tool: Distribute ta...
Forum: General questions
Last Post: akn_39
04-30-2024, 10:08 PM
» Replies: 3
» Views: 3,141
Script Collection Online
Forum: Scripting questions
Last Post: rgbellotti
04-30-2024, 01:35 AM
» Replies: 1
» Views: 435
creases
Forum: General questions
Last Post: Ofnuts
04-29-2024, 02:22 PM
» Replies: 13
» Views: 558

 
  London is a disaster
Posted by: rich2005 - 01-27-2023, 07:57 PM - Forum: Watercooler - Replies (3)

This a tragedy, but could only happen in the end-of-the-universe which is London.

   

Quote:A worker has died after being crushed while he was carrying out maintenance beneath a pop-up urinal in central London, the Metropolitan Police has said.

Print this item

  Python Fu - mkdir not working
Posted by: BaconWizard17 - 01-27-2023, 03:52 AM - Forum: Scripting questions - Replies (6)

Hi all, I've got another Python-Fu question. I'm trying to set up a script for exporting a file. As part of that, I want to create a new folder for the output if it doesn't exist. Here's the code:

Code:
#!/usr/bin/env python

# -*- coding: utf-8 -*-

import os
from gimpfu import*

def folderCheck(filePath, newFolder):
   filePath.append(newFolder)
   outFolder = "/".join(filePath)
   outFolderExists = os.path.exists(outFolder)
   if outFolderExists == False:
       os.mkdir(outFolder)
   return outFolder

def exportPNG8(image, layer):
   filePath = pdb.gimp_image_get_filename(image)
   filePathSplit = filePath.split("/")
   fileName = filePathSplit[-1]
   outFolder = folderCheck(filePathSplit[0:-1], "PNG8")

register(
   "python_fu_marvelmods_export_png8",
   "Exports a texture to PNG8 format.",
   "Exports a texture to PNG8 format.",
   "BaconWizard17",
   "BaconWizard17",
   "January 2023",
   "Export as PNG8",
   "*",
   [
       (PF_IMAGE, "image", "Input image", None),
       (PF_DRAWABLE, 'drawable', 'Layer, mask or channel', None)
   ],
   [],
   exportPNG8,
   menu='<Image>/Marvel Mods/Export Textures/By Texture Format'
)

main()

Everything here is functional except for the part that creates the new folder. I don't have a function for exporting the image right now. My plan was to work on that after I got the folder creation part figured out. I tested the folderCheck function outside of GIMP in regular Python (with some expected inputs), and it worked completely fine and created the expected folder. Here's that test code for comparison, which worked flawlessly:

Code:
import os

def folderCheck(filePath, newFolder):
   filePath.append(newFolder)
   outFolder = "/".join(filePath)
   outFolderExists = os.path.exists(outFolder)
   if outFolderExists == False:
       os.mkdir(outFolder)
   return outFolder

filePath = "C:/Users/ethan/Desktop/Test.xcf"
filePathSplit = filePath.split("/")
fileName = filePathSplit[-1]
outFolder = folderCheck(filePathSplit[0:-1], "PNG8")
 
Does GIMP just not have permissions to create a new folder, does this function not work in GIMP, or is there something else going on here?

Edit: Something I thought of: Is creating the folder even necessary? Or will GIMP automatically create a folder if it doesn't exist for export?

Print this item

Question Html doesn't display images on tablets and cell phones.
Posted by: Krikor - 01-26-2023, 05:33 PM - Forum: Watercooler - Replies (6)

By opening the .html that comes in the DOC folder that comes with most of the Ofnuts plugins, I can view its content properly.

But when doing the same using a tablet or mobile phone, only the text is loaded, the images only display an icon where an image should be.

As a solution, I had to download Carmem's e-book on my cell phone and thus have proper access to the html content.

Is there any change I can make to the html code so that the images are displayed on these other devices as well?  Huh

Thx!

Print this item

  How to install gimp-avif-plugin ?
Posted by: Sunweb - 01-25-2023, 05:09 PM - Forum: Extending the GIMP - Replies (7)

Hi. Could please anyone explain - how to intall this plugin (https://github.com/novomesk/gimp-avif-plugin) to gimp?
As far as I understood it is for linux (sorry, I am just a ordinary windows 10-user). And there is no instruction on how to make it work for windows?
P.s. I would like to try this plugin as with inbuild gimp settings, but even with lossless encoding image change some color in some details on the picture.

Print this item

  Path lines and arrows changed from solid to broken
Posted by: PaulH - 01-25-2023, 10:00 AM - Forum: General questions - Replies (7)

I've been using Gimp for some time (this forum has been invaluable) and lines and arrows I drew with path were always solid.

They recently they changed to broken lines for no reason I can account for, the breaks varying according to the orientation of the line.  Try as I might including looking at how to create broken lines I have not been able to get the solid lines back, advice please.

I'm attaching examples of how they used to be and how they are if drawn now.



Attached Files Thumbnail(s)
   
Print this item

  Trouble Opening Gimp
Posted by: Charles Page - 01-24-2023, 02:31 PM - Forum: OSX - No Replies

Good Morning, I recently downloaded Gimp to learn image editing (I have used PS in the past...poorly but I found it worked when I needed it) and to use for my personal projects/business.  After downloading and installing the 2.10.32 version directly for Intel on my 2016 Macbook Pro (running Catalina) I had no problems with the drag and drop method of installation.  When I click on the Gimp icon the program acts like it is opening but it just stalls out and force quit ends up saying that the program is not responding.   This is after some time (setting the computer aside and waiting for the application to open).  Have I missed something?  Is there some step that I am not completing to run the software?  Thank you guys.

Any help would be greatly appreciated!

Print this item

  GIMP3-ML install in gimp version 2.99.14
Posted by: rilla - 01-23-2023, 05:26 PM - Forum: Windows - No Replies

Im trying to install GIMP3-ML on windows 10 ive downloaded the file from github and extracted it  i  installed python 3.10 and  i downloaded the weights   but i confused on what to do with the weights and the extracted GIMP3-ML  i need help im also using gimp version 2.99.14

Print this item

  merging images for pan
Posted by: dfansler - 01-23-2023, 05:18 PM - Forum: General questions - Replies (4)

I just completed a solo sailing trip from Greece to North Carolina (YouTube "Sailing Solo at 70").  I witnessed quite a few beautiful sunsets which I took overlapping photos to make panoramas of.  Merging the sky easy easy since there is no structure.  But merging the sea is a beast.  I have tried copying a section of sea, feathering the edges and pasting it onto the image.  The feathering turns out blurry and easy to see.  I have tried airbrushing the sections together, again without my success.  Anyone have other suggestions?  Attached is a section of the lastest pan I am working on.
Thanks,

David



Attached Files Image(s)
   
Print this item

  Toolbox is Gone
Posted by: cmontgomery1054 - 01-23-2023, 12:16 AM - Forum: General questions - Replies (3)

I understand that this might be a stupid question but I'm new to using the program and I'm still figuring out how to make it work. I was using my tablet today and I guess I accidently pressed something because all of the tabs disappeared. The drop-down menu that allowed you to see and change your tools is gone and the box on the right that listed your layers is also gone. All that I see when I open an image is the ruler and the menu bar. I've looked at tutorials and clicked on just about everything, but nothing seems to be working. I'm wondering if it's a glitch with the program or is there something that I am not seeing. Please help.

Print this item

  Wrapping path to cylinder
Posted by: Ofnuts - 01-22-2023, 06:20 PM - Forum: Gallery - Replies (9)

Results of  a script WIP to transform the sides, then ofn-bend-path to fit the vertical perspective. A bit contrived but still a lot easier than Map Object (because it still relatively WISIWYG) and since its done on the path the edges remain sharp.

How realistic does it look?

   

Print this item