| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 4,977
» Latest member: MetalJack
» Forum threads: 7,723
» Forum posts: 41,988
Full Statistics
|
| Latest Threads |
GIMP 3.0.6 only uses a fe...
Forum: General questions
Last Post: MetalJack
6 hours ago
» Replies: 0
» Views: 56
|
Déformation par "Cage"
Forum: General questions
Last Post: Bart Simpson
7 hours ago
» Replies: 5
» Views: 242
|
Average colour in GIMP - ...
Forum: Extending the GIMP
Last Post: Ofnuts
12-02-2025, 08:57 PM
» Replies: 5
» Views: 304
|
Plugins with Gimp 3.2 RC1...
Forum: General questions
Last Post: rich2005
12-02-2025, 08:10 PM
» Replies: 1
» Views: 166
|
Isse with applying Layer ...
Forum: General questions
Last Post: rich2005
12-02-2025, 08:21 AM
» Replies: 1
» Views: 154
|
Batcher - Batch Image Pro...
Forum: Extending the GIMP
Last Post: chuckhenrich
12-01-2025, 10:51 AM
» Replies: 7
» Views: 8,482
|
plugin-py3-export-all
Forum: Extending the GIMP
Last Post: Ofnuts
12-01-2025, 08:19 AM
» Replies: 6
» Views: 473
|
pencil don't have full co...
Forum: General questions
Last Post: rich2005
11-30-2025, 08:03 PM
» Replies: 4
» Views: 3,485
|
Pasting a layer group wit...
Forum: General questions
Last Post: teapot
11-29-2025, 04:06 AM
» Replies: 2
» Views: 275
|
Can the gradient tool be ...
Forum: General questions
Last Post: CmykStudent
11-28-2025, 01:14 PM
» Replies: 6
» Views: 471
|
|
|
| Accessing last applied Auto Levels from a script |
|
Posted by: BigMackCam - 04-08-2024, 09:07 AM - Forum: Extending the GIMP
- Replies (4)
|
 |
Hi all
I'm new to writing GIMP scripts, and relatively new to python, but slowly I'm beginning to make progress with python-fu and simple script development.
I have a process I'm currently performing manually on a regular basis, and I'd like to create a script to automate it. The manual process is as follows:
1. Select an area of the image
2. Perform Auto Levels (Colors -> Levels -> Auto Input Levels)
3. Undo Levels
4. Select all of the image
5. Re-apply the previous levels (Filters -> Repeat Levels)
In scripting the above, I've got as far as step 4 successfully - but for step 5 I'm stuck, as I can't find any procedure in the pdb that lets me re-apply the previous levels. After a bit of searching online, I found that GIMP writes these values to a GimpLevelsConfig.settings file in the AppData\Roaming\GIMP\2.10\Filters directory (on my installation, at least) - and if I look in this file, I can indeed see the levels last applied... but I can't find any procedure that will let me retrieve the values.
So... my questions to the esteemed and knowledgeable python scripters here are:
1. Is there a way to call the Filters -> Repeat Levels function via an existing internal GIMP procedure?
2. If "no" to the above, is there a way to access the levels values last applied without resorting to the "GimpLevelsConfig.settings" file?
3. If "no" to the above, is there a way of reading the file via one or more existing internal GIMP procedures?
4. If "no" to the above, (a) how do I obtain the directory for the file (in case it's configured differently across versions and platforms), and (b) can anyone help me with guidance on reading and parsing the file to a set of variables?
Any assistance for this rank novice would be greatly appreciated. Thanks in advance!
Mike
PS. Sorry, I forgot to mention, I'm running GIMP 2.10 on Windows, Ubuntu and Fedora environments...
|
|
|
| Selective color PS to GIMP |
|
Posted by: Krikor - 04-05-2024, 12:43 AM - Forum: General questions
- Replies (5)
|
 |
Hello, I would like to know if there is something in Gimp that comes close to what is seen in the shoot screens below (taken from a PS tutorial video)
In the video tutorial this step is called "Add selective color adjustment".
What I could understand is that:
First the red color was selected and then the Magenta color slider slid to the right (increasing the green, I think);
Then the color yellow was selected, and the same slider was adjusted slightly to the right again.
I looked in the Gimp menus and even in G'MIC but I didn't find anything like it - something that fixes a color and adjusts the colors in the CMYK standard.
How could I do this tutorial step using Gimp?
Thx.
|
|
|
| Debug |
|
Posted by: bcripps - 04-04-2024, 01:27 PM - Forum: General questions
- Replies (4)
|
 |
Getting the following Crash Debug message when closing GIMP. Tried resetting to original settings, also removed ConFig file and loaded latest version of GIMP. Still get the Debug. Anyone know how to trouble shoot this? GIMP runs normally except for this message.
Thanks, Bry...
GNU Image Manipulation Program version 2.10.36
git-describe: GIMP_2_10_36
Build: org.gimp.GIMP.flatpak.stable rev 0 for linux
# C compiler #
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-unknown-linux-gnu/13.2.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/bin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --enable-deterministic-archives --enable-shared --build=x86_64-bootstrapper-linux-gnu --host=x86_64-unknown-linux-gnu lt_cv_sys_lib_dlsearch_path_spec=/usr/lib/x86_64-linux-gnu --target=x86_64-unknown-linux-gnu --disable-multilib --enable-multiarch --disable-bootstrap --with-build-sysroot=/cross-installation --enable-languages=c,c++,fortran,objc,obj-c++ --enable-default-pie --enable-default-ssp --with-isl --disable-libssp --enable-linker-build-id --disable-libstdcxx-filesystem-ts --enable-cet host_configargs=lt_cv_sys_lib_dlsearch_path_spec=/usr/lib/x86_64-linux-gnu target_configargs=lt_cv_sys_lib_dlsearch_path_spec=/usr/lib/x86_64-linux-gnu --with-tune=generic
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 13.2.0 (GCC)
# Libraries #
using babl version 0.1.106 (compiled against version 0.1.106)
using GEGL version 0.4.46 (compiled against version 0.4.46)
using GLib version 2.80.0 (compiled against version 2.80.0)
using GdkPixbuf version 2.42.10 (compiled against version 2.42.10)
using GTK+ version 2.24.32 (compiled against version 2.24.32)
using Pango version 1.52.1 (compiled against version 1.52.1)
using Fontconfig version 2.15.0 (compiled against version 2.15.0)
using Cairo version 1.18.0 (compiled against version 1.18.0)
# Flatpak info #
[Application]
name=org.gimp.GIMP
runtime=runtime/org.gnome.Platform/x86_64/46
[Instance]
instance-id=282512860
instance-path=/home/kay-dee/.var/app/org.gimp.GIMP
app-path=/var/lib/flatpak/app/org.gimp.GIMP/x86_64/stable/72bea9bc45de074e2301f0426b8ff52398403782ee35ad472a4c9743cba0cda9/files
app-commit=72bea9bc45de074e2301f0426b8ff52398403782ee35ad472a4c9743cba0cda9
runtime-path=/var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/b6d2adc1f5a0a7ee4900120df526a4496449e9a798062b23cbedd28372d6d094/files
runtime-commit=b6d2adc1f5a0a7ee4900120df526a4496449e9a798062b23cbedd28372d6d094
runtime-extensions=org.gnome.Platform.Locale=bada6ff972caa2e924b473a30f843c97000700a563e787b60f04cb1dde859684;org.freedesktop.Platform.GL.default=9fd640724262c8b645692cadcff5a43e698b3a08f5d131711a08d089b67d0c7d;org.gtk.Gtk3theme.ZorinBlue-Dark=b5e5a5127fed4fb18bbd633ea51b0c32e506263d58baad2a85dcd31668560718;org.gtk.Gtk3theme.ZorinBlue-Light=2064e8fa9e7d36990d3e1ac25596c836a6d18f89ed25c3c674368f3344e65069;org.gtk.Gtk3theme.ZorinGreen-Dark=9786bc1ea6ef1aa2b61d0dcc1baa6bc24a46f0846bb6627e40c51b72e1f26296;org.gtk.Gtk3theme.ZorinGreen-Light=d8cbac6307c94c704c403a971302c441080b5a1ee18efc648c77a4a411519dc1;org.gtk.Gtk3theme.ZorinGrey-Dark=96eab6e5f0a3fda62b7fee51524178f0b7f71dffe5aa4f3c74b4974f2da43338;org.gtk.Gtk3theme.ZorinGrey-Light=2e60073f4472cc56ee2d539718bc5b4fb62ed9c0b2fa6530221d2c2e99f9cab6;org.gtk.Gtk3theme.ZorinOrange-Dark=9a932c3eb66caa8e3748259ff6203e9c2548cf0fe694bc941f13ab3c42bd2b7f;org.gtk.Gtk3theme.ZorinOrange-Light=c1aa11390171af1907b148d4fb7dbbd39e88f18a13e72a5246dae70b5715fb28;org.gtk.Gtk3theme.ZorinPurple-Dark=e8a8198ea2e051bfd14a40ad0e8691ca7ed231c3aad6303dee666087d9661677;org.gtk.Gtk3theme.ZorinPurple-Light=0c39f5310ac721ba5fa4ef0b7b20e917bd849611d95f2945b18f0785803f0106;org.gtk.Gtk3theme.ZorinRed-Dark=5daecc4bf4bd347bf723a89a4d37fca2e323c130802bbe5654b82f00283182b3;org.gtk.Gtk3theme.ZorinRed-Light=9abcca0b278bd45f8a7726586adc8ca0fa1def0d179e38c617d29e5f2b30872a;org.freedesktop.Platform.VAAPI.Intel=79019aa750ebe1785498b220b3610e3956a96a39effc5d2fe20db6bc7db1e7a8;org.freedesktop.Platform.openh264=50b21d3fc221e861a8573f642bd3e582453b68c8be9962614461ee4d1b0ea38e;org.freedesktop.Platform.GL.default=995cd00d78b0a21218da9d054f3476f88a558c45e9caaf0758feed1ab851d2f9
branch=stable
arch=x86_64
flatpak-version=1.14.4
session-bus-proxy=true
system-bus-proxy=true
[Context]
shared=network;ipc;
sockets=x11;
devices=dri;
filesystems=xdg-config/GIMP;xdg-config/gtk-3.0;/tmp;xdg-run/gvfsd;host;xdg-run/gvfs;
[Session Bus Policy]
org.kde.kwin.Screenshot=talk
org.gtk.vfs.*=talk
org.gnome.Shell.Screenshot=talk
org.freedesktop.FileManager1=talk
[Environment]
ALSA_CONFIG_PATH=/usr/share/alsa/alsa-flatpak.conf
GI_TYPELIB_PATH=/app/lib/girepository-1.0
GST_PLUGIN_SYSTEM_PATH=/app/lib/gstreamer-1.0:/usr/lib/extensions/gstreamer-1.0:/usr/lib/x86_64-linux-gnu/gstreamer-1.0
XDG_DATA_DIRS=/app/share:/usr/share:/usr/share/runtime/share:/run/host/user-share:/run/host/share
ALSA_CONFIG_DIR=/usr/share/alsa
__EGL_EXTERNAL_PLATFORM_CONFIG_DIRS=/etc/egl/egl_external_platform.d:/usr/lib/x86_64-linux-gnu/GL/egl/egl_external_platform.d:/usr/share/egl/egl_external_platform.d
PYTHONUSERBASE=/var/data/python
> fatal error: Segmentation fault
Stack trace:
/app/lib/libgimpbase-2.0.so.0(gimp_stack_trace_print+0x4be)[0x7f1edba8c38e]
gimp-2.10(+0xfa06e)[0x55acbe02406e]
gimp-2.10(+0xfa65c)[0x55acbe02465c]
gimp-2.10(+0xfacce)[0x55acbe024cce]
/usr/lib/x86_64-linux-gnu/libc.so.6(+0x3ee80)[0x7f1edac32e80]
gimp-2.10(gimp_message_box_set_primary_text+0x82)[0x55acbe1d2382]
gimp-2.10(+0x14d277)[0x55acbe077277]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0x14a)[0x7f1edaf5e6fa]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x2e3dc)[0x7f1edaf743dc]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x2fe61)[0x7f1edaf75e61]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x41)[0x7f1edaf7be31]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x93)[0x7f1edaf7bef3]
gimp-2.10(gimp_container_remove+0xf3)[0x55acbe319103]
gimp-2.10(+0x46e7cc)[0x55acbe3987cc]
gimp-2.10(gimp_container_clear+0x64)[0x55acbe318c74]
gimp-2.10(+0x3f02f5)[0x55acbe31a2f5]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_object_unref+0x7e)[0x7f1edaf6512e]
gimp-2.10(+0x14d1fe)[0x55acbe0771fe]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x1cdd7)[0x7f1edaf62dd7]
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x3dd37)[0x7f1edafe9d37]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x1d20b)[0x7f1edaf6320b]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_object_run_dispose+0x34)[0x7f1edaf66d94]
gimp-2.10(+0x14d18f)[0x55acbe07718f]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0x14a)[0x7f1edaf5e6fa]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x2e3dc)[0x7f1edaf743dc]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x2fe61)[0x7f1edaf75e61]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x41)[0x7f1edaf7be31]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x93)[0x7f1edaf7bef3]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0x14a)[0x7f1edaf5e6fa]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x2e3dc)[0x7f1edaf743dc]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x2fe61)[0x7f1edaf75e61]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x41)[0x7f1edaf7be31]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x93)[0x7f1edaf7bef3]
/app/lib/libgtk-x11-2.0.so.0(+0xa2c09)[0x7f1edbc59c09]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0x14a)[0x7f1edaf5e6fa]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x2e520)[0x7f1edaf74520]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x2fe61)[0x7f1edaf75e61]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x41)[0x7f1edaf7be31]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x93)[0x7f1edaf7bef3]
/app/lib/libgtk-x11-2.0.so.0(+0xa19b9)[0x7f1edbc589b9]
/app/lib/libgtk-x11-2.0.so.0(+0x1553f3)[0x7f1edbd0c3f3]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0x14a)[0x7f1edaf5e6fa]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x2ea68)[0x7f1edaf74a68]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x2f661)[0x7f1edaf75661]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x41)[0x7f1edaf7be31]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x93)[0x7f1edaf7bef3]
/app/lib/libgtk-x11-2.0.so.0(+0x280dd4)[0x7f1edbe37dd4]
/app/lib/libgtk-x11-2.0.so.0(gtk_propagate_event+0x15b)[0x7f1edbd0a4cb]
/app/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x31b)[0x7f1edbd0a83b]
/app/lib/libgdk-x11-2.0.so.0(+0x67fe8)[0x7f1edbb5dfe8]
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x60647)[0x7f1edb00c647]
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x62767)[0x7f1edb00e767]
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_loop_run+0x127)[0x7f1edb00f117]
gimp-2.10(app_run+0x2ed)[0x55acbe0239fd]
gimp-2.10(main+0x36f)[0x55acbe02331f]
/usr/lib/x86_64-linux-gnu/libc.so.6(+0x2808a)[0x7f1edac1c08a]
/usr/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x8b)[0x7f1edac1c14b]
gimp-2.10(_start+0x25)[0x55acbe0234c5]
`
|
|
|
|