[Gimp-user] how do I find the pathname of a selected font?
Hi. I've got lots of fonts in quiet a few directories. I'm using a particular font in an image I'm editing. I want to discover the pathname of this font. It looks like the name of the font that gimp displays in the font text settings pane doesn't corrospond to the filename of the actual font, so the solution isn't as simple as navigating to my main font directory and grepping for it. Can gimp give me enough information on the font to allow me to find it? -- bobdobbs (via gimpusers.com) ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
[Gimp-user] focus blur
Hello all-- I have a jpg which I would like to blur the background (focus blur I guess) - But I would like the blur to be gradual - when I have done this in the past the line between blurred and unblurred is too sharp. I have tried the feather selection, but it doesn't seem to work very well. Any suggestions ?? Thanks -- Frankbea...@videotron.ca pgpdasGs8hoim.pgp Description: PGP signature ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] focus blur
On Fri, Oct 1, 2010 at 7:36 PM, Frank McCormick wrote: Hello all-- I have a jpg which I would like to blur the background (focus blur I guess) - But I would like the blur to be gradual - when I have done this in the past the line between blurred and unblurred is too sharp. I have tried the feather selection, but it doesn't seem to work very well. Any suggestions ?? Guess what... http://sudakyo.hp.infoseek.co.jp/gimp/fblur/focusblur_e.html http://www.registry.gimp.org/node/8236 (older WIndows build) Alexandre Prokoudine http://libregraphicsworld.org ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] focus blur
On Fri, 01 Oct 2010 19:58:14 +0400 Alexandre Prokoudine alexandre.prokoud...@gmail.com wrote: On Fri, Oct 1, 2010 at 7:36 PM, Frank McCormick wrote: Hello all-- I have a jpg which I would like to blur the background (focus blur I guess) - But I would like the blur to be gradual - when I have done this in the past the line between blurred and unblurred is too sharp. I have tried the feather selection, but it doesn't seem to work very well. Any suggestions ?? Guess what... http://sudakyo.hp.infoseek.co.jp/gimp/fblur/focusblur_e.html http://www.registry.gimp.org/node/8236 (older WIndows build) Looks like what I needThanks !! -- Frankbea...@videotron.ca ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] focus blur
On 01/10/2010 17:36, Frank McCormick wrote: Hello all-- I have a jpg which I would like to blur the background (focus blur I guess) - But I would like the blur to be gradual - when I have done this in the past the line between blurred and unblurred is too sharp. I have tried the feather selection, but it doesn't seem to work very well. Any suggestions ?? Thanks A slightly more manual method using a filter I wrote, where you can select what part of the image remains completely sharp... 1) get and install my WrapMap filter (requires python support) from http://sourceforge.net/projects/gimp-wrapmap/. I suggest you play with it a bit to get acquainted first. 2) duplicate your sharp image (let's call it the 'Sharp layer) to another layer ((Blurred), and blur it to the maximum blur you want to get. Put it on top. 3) add a layer to that image (the Map, which should as wide as your transition area (for performance reasons, avoid being bigger that 200 pixels). This layer can also be in a separate image... 4) fill Map with a left to right gradient, black to white. 5) In Sharp select the part that should be kept sharp (lasso selection, scissors, whatever suits you) 6) That's where is starts being a bit clever: add a layer mask to Blurred 7) select the layer mask, fill the selection with black 8) still on the layer mask, apply the Wrap Map filter. It wil wrap the gradient in Map around your selection. 9) So now your layer mask has a full black spot corresponding the the sharp part of the picture, surrounded by a black to white area which is your blur transition 10) Put Blurred on top, and make Map invisible if it's in the same image, and you are done. 11) Using the the various color tools (curves, levels, contrast, threshold) on the layer mask, you may alter the linearity of the gradient and so adjust how the blur progression happens. An example is available here; http://dl.free.fr/cnRwtXe8s PS: If you need a transition significantly wider than 200 pixels, I suggest that you prepare the selection/blur map on a scaled down image (you can apply WrapMap on a plain layer in this case), then scale up the layer to the right dimension, and copy/paste it to the layer mask. If you don't know how top copy/paste to a layer mask, it's explained here: http://blog.irisquest.net/2008/02/gimp-using-image-layer-layer-mask ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] how do I find the pathname of a selected font?
On Fri, Oct 1, 2010 at 2:13 AM, bobdobbs for...@gimpusers.com wrote: It looks like the name of the font that gimp displays in the font text settings pane doesn't corrospond to the filename of the actual font, so the solution isn't as simple as navigating to my main font directory and grepping for it. I had a similar problem - I had a directory containing tons of fonts that were all very badly named. I wrote this snippet to rename the files based on the actual font name (family_style.ttf) so I could find them and install as needed: http://pastebin.com/GB6PKBim BE WARNED: this changes the file names *in place* - there is absolutely no safety net. You might consider copying your font dir to a temporary location and then running the script there instead. For me it worked well - that whole directory is named correctly now, but I make no guarantees (may kick puppies, eat kittens, etc. ;) Also it only will do TTF files, and probably only works on linux. You need python-imaging and python-magic as well. Another possibility would be to modify this script to output the filename and the font name on the same line - that way you could pipe that through grep and see which file matches which font. HTH, Chris ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] how do I find the pathname of a selected font?
On Fri, Oct 1, 2010 at 12:15 PM, Chris Mohler cr33...@gmail.com wrote: Another possibility would be to modify this script to output the filename and the font name on the same line After rereading that script, I saw it was quite easy to modify so it only lists the font name and file name on the same line: http://pastebin.com/ztbgPJhZ I only tested it once but it seems to work OK. On a fairly stock Ubuntu I only had to install python-magic. Chris ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] how do I find the pathname of a selected font?
Hi, cr33...@gmail.com (2010-10-01 at 1228.05 -0500): On Fri, Oct 1, 2010 at 12:15 PM, Chris Mohler cr33...@gmail.com wrote: Another possibility would be to modify this script to output the filename and the font name on the same line After rereading that script, I saw it was quite easy to modify so it only lists the font name and file name on the same line: http://pastebin.com/ztbgPJhZ I only tested it once but it seems to work OK. On a fairly stock Ubuntu I only had to install python-magic. In Unix based systems it would be worth to try with symlinks: keep the original named files somewhere, make the apps see symlinks that have usable names and point to the real files; or even hardlinks, if same partition. GSR ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] How to clean the photo of the paper with drawing?
On Thu 30-Sep-2010 at 18:59 +0200, Milan Vancura wrote: I tried to find tips how to clean a photo of the drawing but with no success. I have a photo of a paper with drawing (usually a combination of heavy lines by marker and thin pencil ones) and want to improve the image for printing. So I want to get white background of 100% of the image (no shadows) and still have all details of drawing kept. Even if they are sometimes lighter than shadows in different part of the image. For example a dark shadow in the cormer and light pencil line in the middle. This is what I do: Duplicate the layer and remove all the dark lines/text with the Dilate filter, repeat until they are all gone. Gaussian Blur this duplicated layer with a large radius. Effectively you want to subtract this duplicated layer from the original, do this by setting the layer Mode to Grain Extract, then Flatten. The result will have an even grey background, adjust the Levels to make it white again. This works very well, I use it for cleaning up photos of sketches, whiteboards etc... There is an alternative method using a Convolution Matrix, but it doesn't get such good results for me. -- Bruno ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] how do I find the pathname of a selected font?
On Fri, 2010-10-01 at 09:13 +0200, bobdobbs wrote: I've got lots of fonts in quiet a few directories. I'm using a particular font in an image I'm editing. I want to discover the pathname of this font. It looks like the name of the font that gimp displays in the font text settings pane doesn't corrospond to the filename of the actual font, so the solution isn't as simple as navigating to my main font directory and grepping for it. Can gimp give me enough information on the font to allow me to find it? No, but the tools that come with fontconfig can. There's the fc-list command-line utility that can list all available fonts with their filenames. Try fc-list : family style file. For details see the fc-list manual page. Sven ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] how do I find the pathname of a selected font?
bobdobbs (for...@gimpusers.com) wrote: I've got lots of fonts in quiet a few directories. I'm using a particular font in an image I'm editing. I want to discover the pathname of this font. It looks like the name of the font that gimp displays in the font text settings pane doesn't corrospond to the filename of the actual font, so the solution isn't as simple as navigating to my main font directory and grepping for it. Can gimp give me enough information on the font to allow me to find it? Not exactly Gimp, but try this: si...@mezzanine:~$ fc-list DejaVu Sans : file /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-BoldOblique.ttf: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-BoldOblique.ttf: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed.ttf: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Oblique.ttf: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-ExtraLight.ttf: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-Bold.ttf: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-Oblique.ttf: Hope this helps, Simon -- si...@budig.de http://simon.budig.de/ ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
[Gimp-user] How do I delete to transparency?
I'm foolish. I should have realised this. Thank you. On 30.09.2010 05:39, bobdobbs wrote: Hi all. I'd like to delete in such a way that transparency remains. I've found that this is the default when I'm working on images that I've created myself. But if I'm working on an image that I've downloaded or gotten from another source, I can't predict the behaviour of functions that remove pixels. In my immediate case, I've got a icon with a white background. I want to remove the background. However, when I try to remove the white pixels, the result is black pixels. How can I figure out what the result of deletion operations on pixels will be? How can I consistantly remove colour, leaving transparency? short answer: always add an alpha channel to the layer, either using the layers dialog or via Layers-Transparency-Add Alpha Channel [1]. The alpha channel determines the transparency for each pixel. The absence of an alpha channel means that all pixels are fully opaque and hence they get deleted to background color [2]. regards, peter [1] http://docs.gimp.org/2.6/en/gimp-layer-alpha-add.html [2] http://docs.gimp.org/2.6/en/gimp-image-combining.html#gimp-layer-properties -- bobdobbs (via gimpusers.com) ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user