[Gimp-user] what is dpi, ppi and lpi

2002-04-11 Thread Amit Mukherjee

Hi,
 Can anyone tell me the difference between dpi, ppi and 
lpi ? If my intention is to print a picture measuring 
8"x10", at what resolution should I scan ?

Thanks
Amit


Get fast and easy Internet access through 
http://www.netkracker.com

___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user



[Gimp-user] what is optical resolution

2002-04-11 Thread Amit Mukherjee

Hi,
 Can anyone explain to me what optical resolution means. I 
am looking at the product specification of an Epson scanner 
and it says that the optical resolution is 1600x3200 dpi. 
What does this mean ?

The software that comes with the scanner I have gives me a 
choice to scan upto 9600 dpi. How do I know whether this 
value is the optical resolution or the software 
interpolated resolution ?

Thanks
Amit


Get fast and easy Internet access through 
http://www.netkracker.com

___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user



[Gimp-user] Re: gimp-by-color-select trouble

2002-04-11 Thread Nathan Hackett

If I change the last parameter to gimp-by-color-select (sample-merged) to 
false, then it works.  Now if I can figure out how to put all the hair that I 
pulled out back in, I'll be in good shape.

/Nathan.


On Thursday 11 April 2002 11:43 am, Nathan Hackett wrote:
> I am writting a script-fu that uses the gimp-by-color-select function.  The
> trouble I am having is that the function only works the way that I expect
> when the drawable that I pass to it has an open display.  If the drawable
> has no open display then the result is that it selects the entire image,
> not just the color that I want.
>
> Example -
>
> The following script works as predicted:
>
> (define (redglow inImage inLayer)
>   (let*
>   (
>   ; define local vars
>(
>(thePaste)
>(bounds)
>(x)
>(y)
>)
>   ; the script
> (gimp-by-color-select inLayer '(255 255 80) 60 2 1 0 0 1)
> (set! bounds (gimp-selection-bounds inImage))
> (set! x (cadr bounds))
> (set! y (caddr bounds))
> (gimp-edit-copy inLayer)
> (gimp-selection-grow inImage 2)
> (gimp-selection-feather inImage 4)
> (gimp-palette-set-background '(255 80 255))
> (gimp-edit-fill inLayer 1)
> (set! thePaste (car(gimp-edit-paste inLayer 0)))
> (gimp-layer-set-offsets thePaste x y)
> (gimp-floating-sel-anchor thePaste)
> )
> )
>
> However, the following script does not produce the same result:
>
> (define (redglow inImage inLayer)
>   (let*
>   (
>  ; define local vars
>(theImage (car (file-png-load 0 "buttons/n_button_0_2.png"
> "buttons/n_button_0_2.png")))
>(theLayer (aref (cadr (gimp-image-get-layers theImage)) 0) )
>(thePaste)
>(bounds)
>(x)
>(y)
>)
>   ; do it
> (gimp-by-color-select theLayer '(255 255 80) 60 2 1 0 0 1)
> (set! bounds (gimp-selection-bounds theImage))
> (set! x (cadr bounds))
> (set! y (caddr bounds))
> (gimp-edit-copy theLayer)
> (gimp-selection-grow theImage 2)
> (gimp-selection-feather theImage 4)
> (gimp-palette-set-background '(255 80 255))
> (gimp-edit-fill theLayer 1)
> (set! thePaste (car(gimp-edit-paste theLayer 0)))
> (gimp-layer-set-offsets thePaste x y)
> (gimp-floating-sel-anchor thePaste)
> )
> )
>
> Unless I add "(gimp-display-new theImage)" before the call to
> gimp-by-color-select, then it works again.  This solution is not optimal
> since I am hoping to run this in batch mode with no displays.
>
> I have searched gimp.org deja.com etc., but I can't find any reference to a
> similar problem.  Any hints on what I am doing wrong would be much
> appreciated.
>
> I am using gimp 1.2.2 from the FreeBSD 4.5 ports collection.
>
> Thanks,
>
> /Nathan.
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user



[Gimp-user] gimp-by-color-select trouble

2002-04-11 Thread Nathan Hackett

I am writting a script-fu that uses the gimp-by-color-select function.  The 
trouble I am having is that the function only works the way that I expect 
when the drawable that I pass to it has an open display.  If the drawable has 
no open display then the result is that it selects the entire image, not just 
the color that I want.

Example - 

The following script works as predicted:

(define (redglow inImage inLayer)
  (let*
  (
; define local vars
   (
   (thePaste)
   (bounds)
   (x)
   (y)
   )
; the script
(gimp-by-color-select inLayer '(255 255 80) 60 2 1 0 0 1)
(set! bounds (gimp-selection-bounds inImage))
(set! x (cadr bounds))
(set! y (caddr bounds))
(gimp-edit-copy inLayer)
(gimp-selection-grow inImage 2)
(gimp-selection-feather inImage 4)
(gimp-palette-set-background '(255 80 255))
(gimp-edit-fill inLayer 1)
(set! thePaste (car(gimp-edit-paste inLayer 0)))
(gimp-layer-set-offsets thePaste x y)
(gimp-floating-sel-anchor thePaste)
)
)

However, the following script does not produce the same result:

(define (redglow inImage inLayer)
  (let*
  (
 ; define local vars
   (theImage (car (file-png-load 0 "buttons/n_button_0_2.png" 
"buttons/n_button_0_2.png")))
   (theLayer (aref (cadr (gimp-image-get-layers theImage)) 0) )
   (thePaste)
   (bounds)
   (x)
   (y)
   )
; do it
(gimp-by-color-select theLayer '(255 255 80) 60 2 1 0 0 1)
(set! bounds (gimp-selection-bounds theImage))
(set! x (cadr bounds))
(set! y (caddr bounds))
(gimp-edit-copy theLayer)
(gimp-selection-grow theImage 2)
(gimp-selection-feather theImage 4)
(gimp-palette-set-background '(255 80 255))
(gimp-edit-fill theLayer 1)
(set! thePaste (car(gimp-edit-paste theLayer 0)))
(gimp-layer-set-offsets thePaste x y)
(gimp-floating-sel-anchor thePaste)
)
)

Unless I add "(gimp-display-new theImage)" before the call to 
gimp-by-color-select, then it works again.  This solution is not optimal 
since I am hoping to run this in batch mode with no displays.

I have searched gimp.org deja.com etc., but I can't find any reference to a 
similar problem.  Any hints on what I am doing wrong would be much 
appreciated.

I am using gimp 1.2.2 from the FreeBSD 4.5 ports collection.

Thanks,

/Nathan.
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user



[Gimp-user] removing background

2002-04-11 Thread Seth Burgess

Nikolai,

>How can I do with gimp to remove the purple color fully and convert the 
>borders where the object is merging with the background into pixels that has 
>Alpha values over yellow color instead of plain orange color ? 

Very nice description of a classic imaging problem.

Luckily, this is precisely what the color to alpha plug-in was designed to
handle.  Filters | Color | Color To Alpha, select your purple color, let it
run, and wholah·

The major drawback is that it doesn't only operate on "border" pixels - it
operates on every single pixel in the image (or current selection).  This
means:
1) If you have a real life background like from a photo, you probably don't
have a solid color to remove
2) If your foreground has any component of the color you're trying to remove,
that will be removed too.

#2 is  worked around by repainting "under" the image with the same color you
just removed. For #1... you can keep selecting colors that don't get hit and
re-running it, but my suggestion is to get it close and do the rest of the
touchup by hand.

Happy GIMPing,

Seth Burgess
[EMAIL PROTECTED]

__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user