[Gimp-user] Error while executing script (Script Stop Working in Windows 2.6.3)
I had been using a script that worked fine in gimp 2.4, but when I tried to recently use this script in Windows 2.6.3 I got the following error: http://my.opera.com/capnhud/albums/showpic.dml?album=309313picture=8928433 The script that I was using is this: ; Script to create a gradient from an image of a gradient ; Rob Antonishen (define (script-fu-gradient-from-image img inLayer inSegments inSmooth inName) (let* ( (img (car (gimp-image-duplicate img))) ;create a duplicate (width (car (gimp-image-width img))) (height (car (gimp-image-height img))) (segments (truncate inSegments)) (colors (+ segments (if (= inSmooth TRUE) 1 0))) (theGradient ) (counter 0) ) ; it begins here (gimp-image-undo-group-start img) ;flatten inage and get drawable (layer) (set! inLayer (car (gimp-image-merge-visible-layers img 1))) ; blur then resize to number of colors by 1 (gimp-image-scale img colors 1) ;create new gradient (set! theGradient (car (gimp-gradient-new inName))) (gimp-context-set-gradient theGradient) ;subdivide (gimp-gradient-segment-range-split-uniform theGradient 0 0 segments) (while ( counter segments) (gimp-gradient-segment-set-left-color theGradient counter (car (gimp-image-pick-color img inLayer counter 0 FALSE FALSE 0)) 100) (gimp-gradient-segment-set-right-color theGradient counter (car (gimp-image-pick-color img inLayer (+ counter (if (= inSmooth TRUE) 1 0)) 0 FALSE FALSE 0)) 100) (set! counter (+ counter 1)) ) ;done (gimp-image-undo-group-end img) (gimp-image-delete img) ) ) (script-fu-register script-fu-gradient-from-image Image/Colors/Gradient from Image... Dreate a gradient from an image of a gradient. Rob Antonishen Rob Antonishen 2008 SF-IMAGE image 0 SF-DRAWABLE drawable 0 SF-ADJUSTMENT Segments in the gradient (list 25 2 1024 1 10 0 SF-SLIDER) SF-TOGGLE Smooth Gradient TRUE SF-STRING Gradient Name Gradient From Image what is the correct type for argument 3? ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] text color
Hi! Click with the text-tool on the text-layer to activate it and look at the settings - there you can change the color. hope this helps, tina Von: schoappied schoapp...@gmail.com Datum: Fri, 12 Dec 2008 22:10:51 +0100 An: Gimp-user@lists.XCF.Berkeley.EDU Betreff: [Gimp-user] text color Hi, How do I change the inserted text color? Thanks, \s ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] text color
Am Freitag, den 12.12.2008, 22:10 +0100 schrieb schoappied: Hi, How do I change the inserted text color? http://docs.gimp.org/en/gimp-tool-text.html Regards, Tobias ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] GAP for version 2.6.2
Alchemie foto\\grafiche fotocom...@yahoo.it wrote: From: Olivier Lecarme About Image: Video - Frames Modify, the entry Function - Apply filter on layer(s) simply does not work, the list of filters does not pop up. Maybe that happened for another reason and is not a bug: that GAP plugin does not work on layers of same imagine but only on frames Frames for GAP are a series of imagines (of one or more layers ) named with a progressive number of six digits(i.e First frame may be image_01)..all frames need to be in the same folder. Then the Frame modify should be called from the FIRST frame (ie whatever_01 ..not from whatever 00040 ) then chosen filter is applied to the chosen layers of the frames (i.e to all BG layers, all the top layers) Yes of course, I had an image called IMG_0001.xcf, I duplicated the frame 10 times, and then I called the tool. Moreover, this tool works on layers of a multi-frame image. Clearly there is a bug in version 2.6.2 that did not occur in version 2.4. -- Olivier Lecarme ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] Having serious problems with profiling my monitor
Last year, I managed to profile my Samsung 226CW monitor using an Eye-One LT under Fedora 7 and the argylcms programs. When I told gimp what the display profile was, the results looked plausible. At that time I was using an early version of gimp 2.4. But my monitor dimmed somewhat, and I wanted to redo the calibration/profiling. But it doesn't seem to be working. I also tried the same thing with a laptop running Ubuntu 8.04, and had similar problems. The process produces a calibration (look up table) which is loaded into the video card and also a profile which a program such as gimp can use to tell the display how to interpret colors. There are two ways to tell gimp about the display profile, but it doesn't seem to matter which I use. What happens on both machines is that gimp seems to be negating the calibration (look up table) in the video card and then perhaps applying some profiling to the result. So what I get with a gray scale is the whatever tint the screen had without the look up table loaded; red-magenta for the Fedora machine and blue-cyan for the laptop display. So either I keep doing something entirely idiotic, or gimp color management is doing the wrong thing. The versions of gimp I've been having this problem with are 2.4% and up. My current Fedora version is 2.6.3. Supposedly Eye of Gnome can also use a display profile, and it in fact it doesn't show such an effect. The gray scales look plausible, but they might anyway, just with the calibration loaded in the video card and no profiling. But, if Eye of Gnome allows for color management, I would expect it to say something about it and possibly allow some configuration, and I can't see any indication that it is doing that. Is there some other method independent of gimp to check whether the profiling is working? I've since discovered that inkscape also has color management. It behaves the same way, so the problem is not specifically a gimp problem. It could be a problem with lcms, argyllcms, my measurement devices (although it seems unlikely they are both failing the same way), or the way I am going about making the profiles. With respect to the latter, I've tried a variety of approaches, and the phenomena occur both with my Smasung226W on a Fedora desktop and an Ubuntu laptop using its screen. As I noted above, the problem seems to be that the profile is overcorrecting the calibration lut loaded in the video card, thus moving colors back towards the uncalibrated monitor. And that means a red-magenta tint for one machine and a blue-cyan tint for the other. Any suggestions would be appreciated. -- Leonard Evens l...@math.northwestern.edu Mathematics Department, Northwestern University ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] Error while executing script (Script Stop Working in Windows 2.6.3)
D.Jones (aka) Capnhud wrote: (colors (+ segments (if (= inSmooth TRUE) 1 0))) [snip] (while ( counter segments) (gimp-gradient-segment-set-left-color theGradient counter (car (gimp-image-pick-color img inLayer counter 0 FALSE FALSE 0)) 100) (gimp-gradient-segment-set-right-color theGradient counter (car (gimp-image-pick-color img inLayer (+ counter (if (= inSmooth TRUE) 1 0)) 0 FALSE FALSE 0)) 100) (set! counter (+ counter 1)) ) [snip] what is the correct type for argument 3? The procedure database indicates that a FLOAT (ie. a numerical value) is expected for argument 3 of gimp-image-pick-color. Your problem is due to invalid use of the = operator in the two if statements shown above. Your code has (if (= inSmooth TRUE) 1 0) where in Smooth is a boolean value provided by the SF-TOGGLE. The = operator is for use when comparing numbers, not booleans. Since inSmooth is a boolean, change your if statement to read (if inSmooth 1 0) -- Cheers! Kevin. http://www.ve3syb.ca/ |What are we going to do today, Borg? Owner of Elecraft K2 #2172 |Same thing we always do, Pinkutus: | Try to assimilate the world! #include disclaimer/favourite | -Pinkutus the Borg ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
[Gimp-user] Free select tool
How do I remove this black stuff surrounding an image that appears when I try to cut out an image with free select tool to paste onto another picture? -- dragon77 ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] Free select tool
dragon77 wrote: How do I remove this black stuff surrounding an image that appears when I try to cut out an image with free select tool to paste onto another picture? Make sure the layer has an alpha channel. ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user