| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 4,924
» Latest member: Volker
» Forum threads: 7,689
» Forum posts: 41,818
Full Statistics
|
| Latest Threads |
Text Editor hardly ever w...
Forum: General questions
Last Post: Snacko
1 hour ago
» Replies: 0
» Views: 29
|
How to make image and mas...
Forum: Installation and usage
Last Post: Ofnuts
2 hours ago
» Replies: 5
» Views: 204
|
How to get G'MIC within G...
Forum: General questions
Last Post: teapot
3 hours ago
» Replies: 0
» Views: 41
|
Colorized Layer Reverts t...
Forum: General questions
Last Post: rich2005
8 hours ago
» Replies: 3
» Views: 156
|
Multi window mode mode fa...
Forum: General questions
Last Post: teapot
Yesterday, 01:40 PM
» Replies: 5
» Views: 330
|
Animation with only GIMP ...
Forum: Gallery
Last Post: Scut-51
11-06-2025, 11:49 AM
» Replies: 25
» Views: 22,985
|
GIMP 3.04 opens with wind...
Forum: Windows
Last Post: subbareddy
11-05-2025, 07:47 AM
» Replies: 7
» Views: 3,795
|
Isolate, select and copy/...
Forum: General questions
Last Post: rich2005
11-04-2025, 04:39 PM
» Replies: 7
» Views: 509
|
"Plug-in crashed" on GIMP...
Forum: General questions
Last Post: skullamrotis
11-04-2025, 03:32 PM
» Replies: 4
» Views: 461
|
AIMAGoR - Artificial IMAg...
Forum: Other graphics software
Last Post: vitforlinux
11-04-2025, 12:09 PM
» Replies: 23
» Views: 9,953
|
|
|
| GMIC install for Mac OS 10.13 worked |
|
Posted by: Robpared - 02-02-2024, 09:06 PM - Forum: OSX
- Replies (4)
|
 |
Ok. Have struggled with installing Gmic for GIMP (v 2.10.22) on Mac. After several days and hours of research, I was able to install on Mojave. There is a lot on the web about install failing, so I kept on digging. The reason I still use 10.13 is due to several other CAD and 3D software that will not run on newer Mac OS (I know, but Engineered Software was bought by Form Z and it's taking a long time to release the updated version, also I have a dwg converter that won't run on newer OS). Any way, I used the Macports installation (download the correct version for your OS). Install Macports then open Terminal (utilities folder) and paste the command listed on their website to start the install. The install takes a while, you can monitor via terminal to see what is being installed (the terminal command to view what is going on is also on Macports website and it allows to see where everything is going, USE IT, especially by the end, where terminal tells you exactly the path to the gmic files, believe me, I learned the hard way). Ok, after about 1 hour or more, I think, everything will be installed BUT, and this is a big BUT, the packages are installed on the ops/ directory which is NOT where GIMP 2.10 looks for plug-ins. You need to navigate to the ops/ directory (its the optional folder: Macintosh HD/opt/local/lib/gimp/2.0/plu-ins/gmic_gimp_qt) scan through that folder and find the gmic_qt file, copy that ifile into you applications folder for gimp (you have to right click on the app icon to "show contents")
Path: Mackintosh/applications/gimp (the app)/contents/resources/lib/gimp/2.0/plug-ins once you are in that folder, you can copy the gmic_gimp_qt file by dragging it in.
Restart your Mac, open GIMP and you'll see the GMIC plug-in in the filters folder at the very bottom; it's greyed out until there is an image to work on.
Whew-it took me forever to figure this out. So far working OK. Still seeing if there are other files that need to be copied.
I think this may work for other, later OS's too, and maybe you don't need to do this for the latest GIMP update 2.10.33?
Anyway, I hope this helps
|
|
|
Try to transform a python script to go/back/and forth between Darktable and GIMP |
|
Posted by: PixLab - 01-31-2024, 05:31 AM - Forum: Scripting questions
- Replies (2)
|
 |
The original script is for LightZone and GIMP, which works nicely, from GIMP to LZ and back to GIMP
So my changes works nicely from GIMP to Darktable, but to get back from Darktable to GIMP again, I got an error
Any idea, help? I can't think anymore my head gets narrow vision now and is on fire 
the code I did some change for Darktable:
Code:
#!/usr/bin/env python
'''
Lightzone.py
call LightZone passing the active layer as a temp file.
Author:
Rob Antonishen
Modified by
Partha Bagchi
Modified by Martin Pohl
Modified by
Stefano Azzi
Modified by
Masahiro Kitagawa
Version:
0.8c Made it compatible with Windows, macOS, and Linux
0.8b Made it specific for LightZone
0.8 Made it specific to Nik Collection
0.7 fixed file save bug where all files were png regardless of extension
0.6 modified to allow for a returned layer that is a different size
than the saved layer for
0.5 file extension parameter in program list.
0.4 modified to support many optional programs.
this script is modelled after the mm extern LabCurves trace plugin
by Michael Munzert http://www.mm-log.com/lab-curves-gimp
and thanks to the folds at gimp-chat has grown a bit ;)
License:
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 3 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
The GNU Public License is available at
http://www.gnu.org/copyleft/gpl.html
'''
from gimpfu import *
import shlex
import subprocess
import os, sys
import tempfile
from shutil import copyfile
def gimp_log( text ):
pdb.gimp_message( text )
def plugin_main( image, drawable, visible ):
pdb.gimp_image_undo_group_start(image)
# Copy so the save operations doesn't affect the original
if visible == 0:
# Save in temporary. Note: empty user entered file name
temp = pdb.gimp_image_get_active_drawable(image)
else:
# Get the current visible
temp = pdb.gimp_layer_new_from_visible(image, image, "Darktable")
image.add_layer(temp, 0)
buffer = pdb.gimp_edit_named_copy(temp, "ShellOutDTTemp")
#save selection if one exists
hassel = pdb.gimp_selection_is_empty(image) == 0
if hassel:
savedsel = pdb.gimp_selection_save(image)
tempimage = pdb.gimp_edit_named_paste_as_new(buffer)
pdb.gimp_buffer_delete(buffer)
if not tempimage:
raise RuntimeError
pdb.gimp_image_undo_disable(tempimage)
tempdrawable = pdb.gimp_image_get_active_layer(tempimage)
tempfilename = os.path.join(tempfile.gettempdir(), "ShellOutDTTempFile.tif" )
# !!! Note no run-mode first parameter, and user entered filename is empty string
pdb.gimp_progress_set_text ("Saving a copy")
pdb.gimp_file_save(tempimage, tempdrawable, tempfilename, tempfilename)
# Build command line call
if sys.platform.startswith('win'):
progtorun = "\"" + os.environ["ProgramW6432"] + "\\darktable\\darktable.exe\""
elif sys.platform.startswith('darwin'):
progtorun = "open -W -a \"darktable.app\""
elif sys.platform.startswith('linux'):
progtorun = "\"darktable\""
command = progtorun + " \"" + tempfilename + "\""
args = shlex.split(command)
# Invoke external command
pdb.gimp_progress_set_text ("calling Darktable...")
pdb.gimp_progress_pulse()
child = subprocess.Popen(args, shell=False)
child.communicate()
# put it as a new layer in the opened image
try:
darktablefile = os.path.join(tempfile.gettempdir(), "ShellOutDTTempFile.tif")
copyfile( darktablefile, tempfilename )
newlayer2 = pdb.gimp_file_load_layer(tempimage, tempfilename)
except:
RuntimeError
tempimage.add_layer(newlayer2,-1)
buffer = pdb.gimp_edit_named_copy(newlayer2, "ShellOutDTTemp")
if visible == 0:
drawable.resize(newlayer2.width,newlayer2.height,0,0)
sel = pdb.gimp_edit_named_paste(drawable, buffer, 1)
drawable.translate((tempdrawable.width-newlayer2.width)/2,(tempdrawable.height-newlayer2.height)/2)
else:
temp.resize(newlayer2.width,newlayer2.height,0,0)
sel = pdb.gimp_edit_named_paste(temp, buffer, 1)
temp.translate((tempdrawable.width-newlayer2.width)/2,(tempdrawable.height-newlayer2.height)/2)
pdb.gimp_buffer_delete(buffer)
pdb.gimp_edit_clear(temp)
pdb.gimp_floating_sel_anchor(sel)
#load up old selection
if hassel:
pdb.gimp_selection_load(savedsel)
image.remove_channel(savedsel)
# cleanup
os.remove(tempfilename) # delete the temporary file
gimp.delete(tempimage) # delete the temporary image
os.remove( darktablefile ) # delete the locally created LZ file
# Note the new image is dirty in Gimp and the user will be asked to save before closing.
pdb.gimp_image_undo_group_end(image)
gimp.displays_flush()
register(
"python_fu_Darktable",
"Call Darktable",
"Call Darktable",
"Rob Antonishen",
"Copyright 2011 Rob Antonishen",
"2011",
"<Image>/Filters/Photo Editors/Darktable",
"RGB*, GRAY*",
[ (PF_RADIO, "visible", "Layer:", 1, (("new from visible", 1),("current layer",0))),
],
[],
plugin_main,
)
main()
Original code of Lightzone.py
Code:
#!/usr/bin/env python
'''
Lightzone.py
call LightZone passing the active layer as a temp file.
Author:
Rob Antonishen
Modified by
Partha Bagchi
Modified by Martin Pohl
Modified by
Stefano Azzi
Modified by
Masahiro Kitagawa
Version:
0.8c Made it compatible with Windows, macOS, and Linux
0.8b Made it specific for LightZone
0.8 Made it specific to Nik Collection
0.7 fixed file save bug where all files were png regardless of extension
0.6 modified to allow for a returned layer that is a different size
than the saved layer for
0.5 file extension parameter in program list.
0.4 modified to support many optional programs.
this script is modelled after the mm extern LabCurves trace plugin
by Michael Munzert http://www.mm-log.com/lab-curves-gimp
and thanks to the folds at gimp-chat has grown a bit ;)
License:
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 3 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
The GNU Public License is available at
http://www.gnu.org/copyleft/gpl.html
'''
from gimpfu import *
import shlex
import subprocess
import os, sys
import tempfile
from shutil import copyfile
def gimp_log( text ):
pdb.gimp_message( text )
def plugin_main( image, drawable, visible ):
pdb.gimp_image_undo_group_start(image)
# Copy so the save operations doesn't affect the original
if visible == 0:
# Save in temporary. Note: empty user entered file name
temp = pdb.gimp_image_get_active_drawable(image)
else:
# Get the current visible
temp = pdb.gimp_layer_new_from_visible(image, image, "LightZone")
image.add_layer(temp, 0)
buffer = pdb.gimp_edit_named_copy(temp, "ShellOutTemp")
#save selection if one exists
hassel = pdb.gimp_selection_is_empty(image) == 0
if hassel:
savedsel = pdb.gimp_selection_save(image)
tempimage = pdb.gimp_edit_named_paste_as_new(buffer)
pdb.gimp_buffer_delete(buffer)
if not tempimage:
raise RuntimeError
pdb.gimp_image_undo_disable(tempimage)
tempdrawable = pdb.gimp_image_get_active_layer(tempimage)
tempfilename = os.path.join(tempfile.gettempdir(), "ShellOutTempFile.tif" )
# !!! Note no run-mode first parameter, and user entered filename is empty string
pdb.gimp_progress_set_text ("Saving a copy")
pdb.gimp_file_save(tempimage, tempdrawable, tempfilename, tempfilename)
# Build command line call
if sys.platform.startswith('win'):
progtorun = "\"" + os.environ["ProgramW6432"] + "\\LightZone\\LightZone.exe\""
elif sys.platform.startswith('darwin'):
progtorun = "open -W -a \"LightZone.app\""
elif sys.platform.startswith('linux'):
progtorun = "\"lightzone\""
command = progtorun + " \"" + tempfilename + "\""
args = shlex.split(command)
# Invoke external command
pdb.gimp_progress_set_text ("calling LightZone...")
pdb.gimp_progress_pulse()
child = subprocess.Popen(args, shell=False)
child.communicate()
# put it as a new layer in the opened image
try:
lightzonefile = os.path.join(tempfile.gettempdir(), "ShellOutTempFile_lzn.jpg")
copyfile( lightzonefile, tempfilename )
newlayer2 = pdb.gimp_file_load_layer(tempimage, tempfilename)
except:
RuntimeError
tempimage.add_layer(newlayer2,-1)
buffer = pdb.gimp_edit_named_copy(newlayer2, "ShellOutTemp")
if visible == 0:
drawable.resize(newlayer2.width,newlayer2.height,0,0)
sel = pdb.gimp_edit_named_paste(drawable, buffer, 1)
drawable.translate((tempdrawable.width-newlayer2.width)/2,(tempdrawable.height-newlayer2.height)/2)
else:
temp.resize(newlayer2.width,newlayer2.height,0,0)
sel = pdb.gimp_edit_named_paste(temp, buffer, 1)
temp.translate((tempdrawable.width-newlayer2.width)/2,(tempdrawable.height-newlayer2.height)/2)
pdb.gimp_buffer_delete(buffer)
pdb.gimp_edit_clear(temp)
pdb.gimp_floating_sel_anchor(sel)
#load up old selection
if hassel:
pdb.gimp_selection_load(savedsel)
image.remove_channel(savedsel)
# cleanup
os.remove(tempfilename) # delete the temporary file
gimp.delete(tempimage) # delete the temporary image
os.remove( lightzonefile ) # delete the locally created LZ file
# Note the new image is dirty in Gimp and the user will be asked to save before closing.
pdb.gimp_image_undo_group_end(image)
gimp.displays_flush()
register(
"python_fu_Lightzone",
"Call LightZone",
"Call LightZone",
"Rob Antonishen",
"Copyright 2011 Rob Antonishen",
"2011",
"<Image>/Filters/Photo Editors/LightZone",
"RGB*, GRAY*",
[ (PF_RADIO, "visible", "Layer:", 1, (("new from visible", 1),("current layer",0))),
],
[],
plugin_main,
)
main()
|
|
|
| Left menu pane vanished |
|
Posted by: SpanishRed - 01-29-2024, 02:05 AM - Forum: General questions
- Replies (2)
|
 |
The lefthand menu pane of my software vanished while I was busy working with GIMP, so clearly I pushed something I should not have pushed. I've tried:
- Pushing tab
- Cnt B
- Looking for an option in the "View" menu
- Looking for an option in the "windows" menu.
Nothing works. Then I tried uninstalling and reinstalling the software, but it won't uninstall. I've tried uninstalling from the apps and features menu as well as from the start menu.
|
|
|
| All my color blendings are tending towards brighter values in all images |
|
Posted by: Ellye - 01-27-2024, 05:03 AM - Forum: General questions
- Replies (4)
|
 |
Suppose I have a pure black (#000000) layer and a pure white (#FFFFFF) layer.
They are one on top of the other, both with normal blending. The one above is 50% opacity.
I'd expect that the resulting color would be a midpoint gray (#7F7F7F). And I'm pretty sure that's what I used to get on GIMP until recently, and it's still what I get on other softwares.
Instead, I'm getting #BCBCBC - a far brighter color.
This is not just about layer blending either - any brush with some kind of transparency or anything like that - the result of mixing colors always come up brighter than I'd expect.
I tried both "Perceptual Gamma" and "Linear Light" modes, no change.
Video demonstrating (I compare with Paint.Net on it, but the result there is the same on any other software aside from GIMP - from Photoshop to html rendering in web browsers):
https://www.youtube.com/watch?v=OfAXikmC...e=youtu.be
|
|
|
|