I often work through a list of many images in two or three versions that I want to combine. I know I can use Gimp's menu to open images as layers, but I would like to do this from my file manager (here on Linux, dolphin): select the images -> open with -> Gimp as layers
Is this somehow possible to add to the context menu of dolphin? If so, how?
(
To explain:
I have a large list with fileA.png, fileA-v1.png, fileA-v2.png, fileB.png, fileB-v1.png ...
I have this list open in dolphin.
Right now I select e.g. the 3 fileA versions, open with -> Gimp, have 3 windows, copy ...v1 and ...v2 as layers to the original, close v1 and v2, do the work in the now layered image, save that, delete v1 and v2 in dolphin... open the next set...
I do this from dolphin because the files stay selected, I can delete the versions I don't need anymore directly and thus keep track of which images still have to be worked, without the need to remember the last file name. While in Gimp's dialog I cannot delete files, must remember which files come next, and must scroll down in the list to select them.
So it would be nice if I somehow could have a possibility to open dolphin-selected files directly as layers. It would save me the steps of copying and closing windows.
)
I am trying to use the PhotoLab Curve Batch script in GIMP to apply a curve to a batch of images in a folder. However, I am getting a "RuntimeError: 実行時エラー" error when running the script in certain folders, but it works fine in other folders. Details:
GIMP version: 2.10
Script version: 2.0
Operating system: Windows 10
Error message:
Code:
Traceback (most recent call last):
File "C:\Users\xxx\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.py", line 741, in response
dialog.res = run_script(params)
File "C:\Users\xxx\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.py", line 362, in run_script
return apply(function, params)
File "C:\Users\xxx\AppData\Roaming\GIMP\2.10\plug-ins\photolab_curvebatch.py", line 150, in python_fu_curvebatch_xtns
process_files( filepathnames, curvefilename );
File "C:\Users\xxx\AppData\Roaming\GIMP\2.10\plug-ins\photolab_curvebatch.py", line 126, in process_files
pdb.gimp_curves_spline( imglayer, HISTOGRAM_RED, len(icurvered), icurvered )
RuntimeError: 実行時エラー
The script works fine in some folders, but not in others.
The files in the problematic folders are all JPEG images.
I have tried changing the curve file, but the error persists.
Questions:
What could be the cause of this error?
How can I fix this error?
Additional information:
I have attached a sample image from the problematic folder.
I would appreciate any help in resolving this issue. Thank you.
If you followed my font journey (hihi ) in other posts: I have extracted a font sprite but it's not a perfect square.
What plugin or gimp operation I can apply to this image to make it a perfect square (it should be a 8x8 pixel square). So as a result the shape of the A is changed so it fits the perfect square (that's the goal!)
The black at the left and the bottom is PART of the square, because it's spacing for the font. It should not be removed.
This image is a separate layer of my image and I have layers for A -> Z and 0 -> 9. They all need to be adjusted.
- from this image I generate layers: each layer is a square of the image. So the layers have the symbols as you see them (wrong orientation).
- I need an existing plugin or plugin code to flip the layers so they are in correct orientation. How can I do this with existing plugin or plugin code or gimp operation?
(only for A -> Z and 0 -> 9)
This is not a real GIMP question but related to using the python used by GIMP.
I have windows 10, only GIMP is installed and I didn't install any python. Still I can use python in GIMP, so this means somewhere GIMP has python included?
Where is it?
I installed visual studio code and the python extension
Dynamics are a way to change some brush charactertistic(s) in the fly using more hints than just the pointer position. The hints are:
Pressure: the pressure on the stylus (this requires an adequately configured tablet)
Velocity: how fast the pointer moves
Direction: where the pointer goes
Tilt: inclination of the stylus, on advanced tablets
Wheel/rotation: I don't know what that is but I assume this is also for advanced tablets
Random: not a physical input, just a random value between 0 and 100%
Fade: the distance since the beginning of the stroke, as a percent of the Fade length configured in the paint tool (this repeats)
In practice with a mouse the only usable ones are Direction, Random, and Fade (and Velocity if you are really skilled).
These hints can be applied to the following characteristics:
Opacity: from 0 to 100% of configured opacity
Size: from 0 to 100% of the configured brush size
Angle: from 0° to 360°: warning: the median setting is 180°, which is an upside-down brush, so for some mapping it is useful to use an upside-down brush.
Color: a color is sampled from the active gradient
Hardness
Force
Aspect ratio: from "0" (circular brush) to whatever is configured for the brush
Spacing: from 200% spacing to the configured spacing
Rate
Flow
Jitter
You define all this by editing/creating a Dynamics (as with other Gimp resources, you cannot edit the standard one, you have to make a copy first).
The first thing to do in a Dynamic is to define the mapping matrix. To control a given characteristic using a given hint, you just check the box that is at the intersection of the "hint" and the "characteristic". The example below associates Size with Random (so the size is random), and the Color with Fade (so the color is taken from a gradient as the pointer advances). A hint can apply to several characteristics (so you could have random size and color) and a characteristic can depend on several hints (but good luck predicting how this behaves).
You can define more finely how the hint is applied to change the characteristic by changing the mapping curve:
For instance, in the image above, the red-green part of the gradient is mapped to smaller part of the input range than the green-blue part, while the blue-red is not mapped at all, so the output favors mostly the green-blue part.
Gimp comes if a collection of pre-set dynamics, a very useful one is Track direction, where the brush angle is rotated according to the stroke direction, so the brush keeps the same orientation relative to the stroke instead of remaining upright all along.
Something I hardly use when using a brush or anything else. Because I have no idea about it. Just track direction and dynamics off.
I have never seen a Tutorial on them except the one Pix made at GC recently. But have no idea how to create new ones - and/or use them.
I may use them more or may not if someone could come up with a tutorial on them - maybe explain them etc. please.
Since it's not possible to debug a plugin on windows (maybe it can on linux?) I want to make a way to 'pause' execution of a plugin. Why I want to do that? I want to check in gimp if some code was executed correctly.
For example: I add an alpha channel to a layer in the code, and I then want to 'pause' and check in gimp if it's added by right clicking the layer. And then continue my code.
Is there a way I can pause the code by showing a message box (after the code line I want it to stop) or something that needs to be closed before the code continues? Or another way? Keyboard input is not possible I think?
Please note I'm making a plugin WITHOUT GUI.