The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Hot answers tagged

12

To remove shadows and grain from the background we can chose a threshold for values of transparency and of opacity when using the "Color to Alpha" tool in Gimp 2.10: Simply drag the sliders until you are happy with the result. On a white background your image will then look like this: Alternatively you can make a colour selection with the select by colour ...


10

You can clean the picture first, for instance using Levels: the big peak on the right is the original background. This shows that the background is not pure white. If you use C2A without preprocessing, you have to aim for this color. The white handle is dragged to the left (left edge of the background peak), so that most of the background becomes pure white....


7

Could I suggest the "really, really obvious empirical method"? Get a sheet of A4. Hold it up to the screen. Change the image zoom scale until it matches. Forget DPI & pixel density. You just want it "the same apparent size". Unless you have a screen with a physical pixel density of 350 & at least 3840x2160, you cannot achieve a complete 1:1 image ...


7

Theoretically lens distortion can be reversed if the distortion is one to one i.e. it doesn't mix to any point light from several points of undistorted image. Of course some resolution loss can occur when the image is resampled. Somewhere new pixels are interpolated to stretch an area and elsewhere an area can be squeezed to smaller number of pixels. To be ...


6

I see that those answers are a bit old. This instructions are for Gimp 2.10. Once you have created your layer, right click on it. Choose Edit Layer Atribute. Then a dialog appears Alter the offset values to the position you want your layer on the background image.


6

Make sure that the screen definition as seen by Gimp is the real one: Edit>Preferences>Interface>Display>Monitor resolution (in 2.8: Edit>Preferences>Display>Monitor resolution). This part is the most often overlooked. If necessary, calibrate it(*). Make sure that the print definition (ie, the DPI for the printer) is correct: Image>...


5

A simple solution for GIMP 2.10 (both under Linux and Windows): Go to "Edit → Preferences". In the Preferences dialog, go to "Interface → Icon Theme". From the dropdown at the bottom, choose "Use icon size from the theme" or "Custom icon size" (and in the latter case, choose your icon size with the slider below that). The problem you describe happens ...


5

If your symbols are amenable to Unicode characters with a suitable font (emojis, dingbats, etc...), then you can use the text-along-path function (or, to make things a lot easier, the ofn-text-along-path script). The text input fields take anything from your clipboard so you can copy symbols from your web browser open on some Unicode page. If you have one ...


4

The following linked script-fu works in GIMP 2.10.2 I assume also in the latest 2.10.8 Link: https://www.gimp-forum.net/attachment.php?aid=360 Copy and paste the file named arrow-set-size.scm in you scripts folder, and restart GIMP In a document, create a path using the Paths tool with a start and end point Click Tools > Arrow-Set-Size. Make ...


4

In Gimp: Just use the Brightness/Contrast tool to increase contrast (up to 66 in the image below):


4

Use Inkscape which is meant to edit SVG graphics With Gimp (if the SVG is only the beginning for a final raster image). Several solutions (they assume that you have ticked the "Import paths` option in the SVG open dialog): If you do File>Open and select an SVG file, you can change the resolution, and this changes the size of the imported image. So you ...


4

In your initial image you have 38 values. All the color adjustments are going to stretch this range between 256 values. But all the pixels with a given value are going to be mapped to the same new value, so you have 38 values spread in the 0..255 range, which means that assuming a strictly linear stretch, pixels with near values are now separated by 7 values,...


4

You guessed right. Use blending mode Split or Erase inside a layer group to make holes to the generally visible image (=a gradient fill in this example). The background can be seen through the holes. Edit the text to change the holes. The dotted rectangle is GIMP's indicator for the size of the selected layer. It can be switched off in the View menu. Be ...


4

Inkscape is a vector art tool - your photo is raster - use GIMP for photo-editing. There are hundreds of tutorials out there for removing items from a photo in GIMP - I'll give you a link here to see one using the method I'll quickly overview herein. !) If you're unsure of your accuracy, you might either make a layer copy first or limit your area of effect ...


4

Gimp can definitely do this. use Color>Desaturate>Desaturate (yes, twice) to make sure you image is gray(otherwise some parts can take a color in the processing that follows). Then you can try Colors>Auto>Stretch contrast or Colors>Auto>Stretch contrast HSV. If this is not sufficient, use the Levels tool. You will likely get a histogram that ...


4

Krita (=freeware) can be used as well in Windows, Linux and Mac. The problem is common. Typical case I have met is the following: A hobbyist has a drawing. He has taken a photo of it and asks me to help to make it clean. Here's the photo: This is actually quite good photo. It's sharp. It has reasonably high resolution at least for onscreen watching. It's ...


4

Difficult image, for several reasons: it has been "optimized". In a GIF, you can go from one frame to the next in two ways: (replace): the whole image is replaced by the contents of the new frame (combine): the frame contains only the changes from the previous one, and just overlays the image. Since there is no way to make pixels transparent again, this ...


4

OK - no blowing up - but a simple basic comment: If you downscale a raster graphic (made of pixels) this doesn't make the pixels smaller, this decreases the number of pixels you use in your raster to make up the graphic. Hence your intended target size - 64x32 - is a per-edge-pixel-COUNT - as in, it will be 64 pixels wide by 32 pixels tall. This means ...


4

You can use a layer mask to achieve an edit like that. Paste the screen shot and then transform (Shift+T). Make sure none of the Constrain or Pivot options are checked in the tool options, so that you can freely distort the screen shot to fit the phone Click and drag the corner handles to fit the phone screen. Note: the Image Opacity slider in the tool ...


4

To expand on @BillKerr comment, "Lock brush to view" scales the brush with the zoom: the ratio brush size/window area remains constant, so that at high zoom factors you don't get a brush that is bigger than your image window. In effect this shrinks the brush as you zoom in. If course if you start with a 3px brush, at 3800% zoom it is 3/38=0.1 pixel and is ...


4

Using Filter>Distorts>Polar coordinates I assume the real goal is to map the image to a sector, and that the path is not really necessary. If we apply the Polar coordinates filter to a square image: We get this: The final image is the same size as the initial image The whole image is wrapped on a full circle (360°) The height of the image is mapped on a ...


3

There are no "Gimp" fonts. The fonts are on your system. Google for some Font Manager on your operating system, and choose the one that has previews. On Windows I use the font manager that comes with Corel Draw, but there a some interesting free tools: xiles.net Nexus font has a nice interface, can make some groups of your favorite fonts and preview all ...


3

My answer is very much like the previous answer. I still provide it because the above did not directly lead to success. So you have two files: file1.jpeg and file2.jpeg. They can be different formats than jpeg, and they do not need both to have the same format. So file2.png would be fine too. As a matter of background you can think of the Gimp image as a ...


3

To improve on @Billy Kerr's answer (this is a new account so I can't comment on his answer) by providing the latest of the scrip by programmer_ceds (original version by Berengar W. Lehr) and more detailed instructions: Get the latest version of the Draw Curved or Straight Arrows script. The file will be named arrow.zip (or similar). Unzip the downloaded zip ...


3

In fact there are a range of tools for extracting and extrapolating "texture maps" for 3D modeling textures based in a single input photo, and they can create heightmaps, reliefmaps, base colour maps etc etc. I think this might get you the results you want. I would first run a perspective correction, and then apply such a tool. The one I use most (...


3

Simple way Layer>Transparency>Add alpha channel (if grayed the alpha channel is already there) `Layer>Transparency>Alpha to selection Select>Shrink by N/2 pixels (N being the span of the feathering) Select>Feather by N pixels Select>Invert Edit>Clear or [delete] For more precise control Layer>Mask>Add layer mask and initialize to ...


3

All edits which are destructive (except for layer masking which is non-destructive) can potentially impact image quality in GIMP. By destructive I mean any physical changes to actual pixels. Obviously it would depend on what exactly you are doing. However, fear not. If you work on a copy of the original image, then it doesn't matter what you do to it. You ...


3

No, when you save an XCF, the undo stack isn't saved with it. Note that the undo stack is anyway the state of layers, not how you obtained it. What you really want is non destructive editing (so you could edit the text, and whatever processing downstream would automatically be repeated), which is in the works for Gimp V3.


3

There are two possibilities I can think of that might be to blame, although there may be more. Check the colour mode by clicking Image > Mode. Sounds like you might be in Indexed colour mode. It should be in RGB colour. You have Stroke Line set to "Pattern". Change it to "Solid color" instead.


3

Here's a method using GIMP, in just 2 steps Click Colors > Levels and create a levels adjustment like this, by clicking and dragging the little triangles in the input levels to the positions as shown. This will darken the text. Click Colors > Colorize, choose a red colour, and move the Lightness slider until you get the result you want


Only top voted, non community-wiki answers of a minimum length are eligible