gimp | Read-only mirror of https : //gitlab.gnome.org/GNOME/gimp
kandi X-RAY | gimp Summary
kandi X-RAY | gimp Summary
This is an unstable development release, an intermediate state on the way to the next stable release: GIMP 3. GIMP 2.99 may or may not do what you expect. Save your work early and often. If you want a stable version, please use GIMP 2.10 instead. If you think you found a bug in this version, please make sure that it hasn’t been reported earlier and that it is not just new stuff that is still being worked on and obviously not quite finished yet. If you want to hack on GIMP, please read the file devel-docs/README.md. For detailed installation instructions, see the file INSTALL.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gimp
gimp Key Features
gimp Examples and Code Snippets
Community Discussions
Trending Discussions on gimp
QUESTION
I am implementing a MQTT communication. I want to send CAN frames over MQTT through a graphical interfaces (realized in python). I am able to send messages from the GUI to one topic and I am able to see messages arrived on the same topic (using paho library) when I use the board. The function is below and the topic is diagnostic_request/topic:
...ANSWER
Answered 2021-Jun-04 at 15:16Taking the approach of "write the test first".....
QUESTION
I am using this tutorial for instance segmentation in PyTorch. The test data the tutorial uses includes images and accompanying image masks from a dataset available here. I have an example of one of the image masks from that data set here (example data for this question). That mask looks like this by default in the dataset:
The tutorial uses this code:
...ANSWER
Answered 2021-Jun-07 at 07:07Following is an example how to create a grayscale image representing classes for a segmentation task or similar.
On some black background, draw some shapes with fill values in the range of 1, ..., #classes
. For visualization purposes, this mask is plotted as perceived as a regular grayscale image as well as scaled to the said value range – to emphasize that the mask looks all black in general, but there's actual content in it. This mask is saved as a lossless PNG image, and then opened using Pillow, and converted to mode P
. Last step is to set up a proper palette for the desired number of colors, and apply that palette using Image.putpalette
.
QUESTION
I am trying to render a chart but encounter a problem: The elements appear in browsers (Chrome, Firefox) but not in traditional image viewers (Eyes of GNOME, GIMP, Inkscape).
At first, I thought that it was because image viewers are incapable of rendering fonts, until I came across an asciinema's thumbnail, which is displayed perfectly by Eyes of GNOME:
Question: Why does this happen and how to fix this?
...ANSWER
Answered 2021-May-28 at 07:32The reason is in nested SVGs:
QUESTION
I wrote some code for a Linux system to read/write bitmap files.
I transfered this code to Windows, and attempted to compile it with Visual Studio 2019.
I tested my program by opening a bitmap file and saving a copy of it. I found that only the first few lines of the bitmap image were written to file and the rest of the file was blank. (Black image color.)
I was extremely confused by this so wrote an even simpler program which just dumps out the integer values of bytes in the file.
I ran this on a 32 x 32 bitmap image file, where the file was saved from GIMP, with 24 bits per pixel format (R8 G8 B8), and "Do not write colorspace information" set in compatiablity options.
I found that the below code prints data up to about i = 500
, and then it prints zeros for the rest of the file.
The file looks like this:
It clearly does not contain large regions of zeros.
Edit: I edited the below code to add an output file. The screenshot below the code shows the output produced. ...ANSWER
Answered 2021-May-24 at 20:03Make sure you open your file in binary mode.
QUESTION
My question is how exactly alpha addition works?
Like when you add 0.5 and 0.5 alpha you don't get 1.0 alpha, you get ~0.75 alpha.
(This works regardless of language or even program, it works like this in e.g. gimp too)
So what are the two alpha values that exactly give 1.0 alpha?
...ANSWER
Answered 2021-May-22 at 09:51They add like percentages. Your first 0.5 gives you 50%, and your second 0.5 gives you 50% of the remaining 50%, i.e. a further 25% - making 75% in total, i.e. 0.75
They will only add to 1.0 if one of them is 1. So, if you want a fully opaque result, you might paste the combined images onto a fully opaque background.
QUESTION
I've implemented the stackblur algorithm (by Mario Klingemann) in Rust, and rewrote the horizontal pass to use iterators rather than indexing. However, the blur needs to be run twice to achieve full strength, comparing against GIMP. Doubling the radius introduces halo-ing.
...ANSWER
Answered 2021-May-21 at 06:28Note that what you have implemented is a regular box filter, not stackblur (which uses a triangle filter). Also, filtering twice with a box of radius R
is equivalent to filtering once with a triangle of radius 2*R
, which explains why you get the expected result when running blur_horiz
twice.
QUESTION
I would like to show/hide a grid on a tkinter
canvas, as seen in Gimp for instance.
I have this code:
...ANSWER
Answered 2021-May-16 at 19:35Try something like this:
QUESTION
I am trying to get the second last value in each row of a data frame, meaning the first job a person has had. (Job1_latest is the most recent job and people had a different number of jobs in the past and I want to get the first one). I managed to get the last value per row with the code below:
first_job <- function(x) tail(x[!is.na(x)], 1)
first_job <- apply(data, 1, first_job)
...ANSWER
Answered 2021-May-11 at 13:56You can get the value which is next to last non-NA value.
QUESTION
I'm installing a remote network of spherical/360-degree cameras and need to have the images they produce all aligned with something (north). The problem is, the cameras might end up being mounted facing any random direction, so I need to shift/offset (horizontally) the image, and wrap whatever ends up outside the bounds of the image to the other side.
After taking a sample image after installation of each camera, I will know the correct pixel value to offset the image and will be able to specify the offset value on a per-camera basis.
The first half of this article explains how to do this in Photoshop (Filter menu > Other > Offset, specify an offset pixel value, and then enable the "wrap around" option). Photoshop offsets the image by the defined number of pixels, and any excess is automatically moved to the other side of the image to fill in the gap created by shifting the image.
I just need to automate the offsetting of the image and wrap the excess around to the other side of the image so that no part of the image is actually lost, in a Linux (Raspbian) environment, via the command line. I am not able to use a GUI to do this as we're talking about millions of images in the long-term.
I tried doing this with Imagemagick's geometry offset tool (convert -geometry +0+100 R0011996.JPG
), but a) I couldn't figure out how to actually use it, and b) there doesn't seem to be an option like the "wrap around" option in Photoshop.
I just realised The GIMP has an equivalent tool and a command-line interface and tried that, but couldn't find any decent documentation. I found the Procedure Browser, which said to use "gimp-drawable-offset". I tried the following, but it failed:
...ANSWER
Answered 2021-May-12 at 09:58Thanks to Xenoid, who answered in a comment. The solution is simple:
QUESTION
I'm trying to use python-fu in GIMP. I would like pdb.file_glob to return an array of image files in the format I specify. I tried:
...ANSWER
Answered 2021-May-11 at 20:13The doc of all PDB functions can be found via the Python-fu console. Hit the Browse...
button and then enter your search in the filter bar at the top of the left pane. This documentation is dynamic, it includes the documentation of any callable plugin/script (as long as authors have written some of course)
The PDB functions for Python are a direct mapping of the script-fu API. In this specific case file_glob()
was very recently added to the script-fu API because there is nothing in the base TinyScheme language to do it. In Python, you are better off using the standard Python API, os.walk()
or glob.glob()/glob.iglob()
.
In any case such functions only do simple pattern matching, if you want several extensions you want something like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gimp
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page