Tag Info

Hot answers tagged

3

It’s a few lines in Python: from PIL import Image import numpy A = […] convert = lambda string: [int(string[i:i+2],base=16) for i in (1,3,5)] B = numpy.array([map(convert,line) for line in A], dtype=numpy.uint8) image = Image.fromarray(B, mode="RGB") image.save("image.png") A short explanation: convert is a function that converst an HTML colour ...


3

You can do this easily using the <canvas> element and some JavaScript... A is already in JS format! var canvas = document.querySelector("canvas"), // Select our canvas element ctx = canvas.getContext("2d"), // Save the context we're going to use width = A[0].length, // Get the width of the array height = A.length, // Get the height of the ...


3

First, let me begin by saying I'm less familiar with Gimp than I am with Photoshop, but the concept works the same way. This is the best method I've found to easily create detailed masks. Step 1: Prepare Mask Boost the contrast between lights and darks. Desaturate and adjust curves. Step 2: Create Mask Select all and paste layer into layer mask. ...


3

Alright I'll make this with limited screenshots since I don't use Gimp but I would hope this all exists in Gimp: Convert to Black and White If Gimp has it, tweak particularly the Yellow when converting to Black and White to remove a lot of it. (Update: Hue/Saturation... Yellow before we convert to B/W via Takkat in comments) Then adjust the levels to ...


3

Uncheck brush option in Edit- Preferences - Tool options- Paint options shared between tools


2

Since Photoshop is an option, it can be a viable solution to show the outer dimensions of selected area. Activate Wand instrument (shortcut 'w') (leave settings to default, since rectangles are sharp and contrast), show info panel (shortcut F8). Set 'Ruler Units' to 'Percent' in Info panel's options (duplicates the setting in Preferences / Rulers & ...


1

Select and copy the image to put it on your clipboard, then use the bucket fill tool with the pattern option, selecting the clipboard pattern. If you want to keep the image around for further use, you can always save it as a pattern.


1

You can actually try just layer->transparency->color to alpha and pick a medium color from the paper tone. This will make just that tone transparent, and preserve the texture noise, so that you can add other colors behind and still "feel" like it is paper. To further remove "whiteish" pixels, just repeat the process picking one of the remaining tones ...


1

To scale a selection we can not use the Select > Shrink... tool, as this will only change the dimensions of the selection but not selected area. To scale a selected image area we can do the following: Select area to scale. Create a "floating selection" with Select > Float Shift+Ctrl+L. Select the floating selection. Choose the scale tool (Shift+T) to open ...


1

My approach would be as follows: with the selection you have, toggle quick mask mode run the Erode filter as many times as necessary on that mask You'll notice that the clear, selected parts of the mask will become smaller. finally, toggle quick mask mode again to switch back to the selection You can now either invert the selection and cut the ...


1

GIMP is quite good in PNG compression, but not the best. To get a basic idea about PNG optimization, read File size and optimization software chapter in "Portable Network Graphics" article on Wikipedia. I have optimized thousands of PNGs and I recommend these tools for a lossless optimization: PNGOUT, ZopfliPNG. If you want to make your files even ...


1

Resizing raster images always results in some quality loss. The degree is subjective and scaling up tends to highlight flaws while scaling down is more forgiving. The browser will render an EPS "scaled down" better than opening it in GIMP and later scaling it down because an EPS is not typically a raster image. It is stored as "math" and only gets rendered ...


1

If the browser truly does it better, resize in HTML and then screen shot it.


1

Resize your raster image in several steps. At each step divide the width and height by 2 (or lower) and apply some sharpening.



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