[Gimp-user] palette mapping

2004-10-17 Thread Fernando Sancho
Hi all.

I'm new to the list. I have joined because I need help.

I'm making a gimp-python scipt to create cross stitch patterns from an
image. Reading list's archives i've founded this
http://www.mail-archive.com/[EMAIL PROTECTED]/msg01127.html

I don't know if Carol has completed his idea. By now, i'm evaluating
how much work can make gimp by itself.

The feature that i can't find in gimp is to map an image with a custom
palette (DMC Floss colors). Gimp only allows me to convert from RGB to
Indexed mode, but it doesn't allow to choose a custom pallete with
more than 256 colours, and doesn't allow to choose the maximum number
of colours.

Any help?

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


Re: [Gimp-user] palette mapping

2004-10-17 Thread Carol Spears
On Sun, Oct 17, 2004 at 05:52:14PM +0200, Fernando Sancho wrote:
 
 I'm making a gimp-python scipt to create cross stitch patterns from an
 image. Reading list's archives i've founded this
 http://www.mail-archive.com/[EMAIL PROTECTED]/msg01127.html
 
 I don't know if Carol has completed his idea. By now, i'm evaluating
 how much work can make gimp by itself.
 
the story of the counted cross stitch program is long and involves a few
lost websites and hard disks.


 The feature that i can't find in gimp is to map an image with a custom
 palette (DMC Floss colors). Gimp only allows me to convert from RGB to
 Indexed mode, but it doesn't allow to choose a custom pallete with
 more than 256 colours, and doesn't allow to choose the maximum number
 of colours.
 
one thing, the gimp palettes are just lists of numbers in a text file,
not an image.  so you can easily make up your own palette.

i had a pallete like this in which Jeff Trefftz improved upon.  the gimp
can use and displace palettes with any number of entries.  the indexing
dialog can only use palettes with 256 colors or less.  it is not gimp,
it is the laws of indexing.  i dont even think it is a copyright
problem, i think this is a math problem.

i just found a cross stitch script-fu online, but it was through a
moderated mail lists archives.  i have to look at it to see if i can
share it or not.

making your own script to do this is a great thing to learn to script
gimp with.  the first time i got gimp to use the pixelize filter from a
script was a neat feeling.  the problem with this script is that you
have to figure out how to choose the best color from the dmc palette.
if you ask for help, they will show you physics papers about color
spaces -- i dont suggest this.

i hope i answered your question,

carol

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


[Gimp-user] Gimp-print border

2004-10-17 Thread Gary Montalbine
I am using gimp 2.0.4 with gimp-print 4.2. Mandrake 10.1 with an 
hpdeskjet 5550.

Off and on for the past year I have tried to figure out how to 
change the default margins in gimp-print. I have searched, googled 
read the archives and have not found a way to change the default 
margins. I particulary find the .5 left margin troublesome. I have 
the latest HP driver installed.

I hope there is an easy solution. I have lots of pictures with 
uneven borders.

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


Re: [Gimp-user] palette mapping

2004-10-17 Thread Joao S. O. Bueno Calligaris

Hi Fernando!

I am even working on a script to do this these days, - map a palette 
to an image based on value information (not nearest color - as the 
GIMP does, but buy color value: black is mapped to first color in 
palette and so on).

Unfortunattely, the GIMP can only handle indexed images with 256 
colors.

My script _can_ map a palette to an RGB image, but currently, as I 
said, I am using the pixel Value to do that - and there are only 256 
color values allowed  in  8bit RGB . :-(.  For Value here I mean the 
Pixl Value in HSV color model, which is MAX (R,G,B)

Moreover, I use a trick with the the GIMP curves tool to do that, aand 
the curves tool will also only use 256 colors.

How many colors do you need? if less then 512, I can think of a trick 
whicth I could tune my script to do automatically - using another 
component besides pixel Value - possibly the Red channel - to have 
more than 256 target colors.

This would map, again, in palette order.
If you want the nearest color, the better thing to do is to get 
yourself a Patch to the gimp core, in which an image is mapped to a 
palette, but remains RGB, using the same algorithims thgat are there 
already.

I think I could provide sucha  a patch, that would hardly make it into 
the official GIMP. It would be a thing for your use only, at least 
for a while. That would use some of my work time - so, what I mean, 
is, how much do you need this? 

BTW, all my scritps are gimp-python. I will mail you my palette 
mapping  script in private anyway - at least you can study it.



Unfortunnately, the GIMP 
On Sunday 17 October 2004 13:52, Fernando Sancho wrote:
 Hi all.

 I'm new to the list. I have joined because I need help.

 I'm making a gimp-python scipt to create cross stitch patterns from
 an image. Reading list's archives i've founded this
 http://www.mail-archive.com/[EMAIL PROTECTED]/msg011
27.html

 I don't know if Carol has completed his idea. By now, i'm
 evaluating how much work can make gimp by itself.

 The feature that i can't find in gimp is to map an image with a
 custom palette (DMC Floss colors). Gimp only allows me to convert
 from RGB to Indexed mode, but it doesn't allow to choose a custom
 pallete with more than 256 colours, and doesn't allow to choose the
 maximum number of colours.

 Any help?

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


Re: [Gimp-user] Gimp-print border

2004-10-17 Thread Patrick Shanahan
* Gary Montalbine [EMAIL PROTECTED] [10-17-04 18:32]:
... 
 Off and on for the past year I have tried to figure out how to change
 the default margins in gimp-print. I have searched, googled read the
 archives and have not found a way to change the default margins. I
 particulary find the .5 left margin troublesome. I have the latest HP
 driver installed.
 
 I hope there is an easy solution. I have lots of pictures with uneven
 borders.

lpoptions
man lpoptions

my results for epson stylus photo 925

job-sheets=none,none ImageableArea=Letter PageRegion=Letter
PageSize=Letter PaperDimension=Letter PrintoutMode=Normal.Gray
Contrast=1.000 Cyan=1.000 Density=1.000 Magenta=1.000 Yellow=1.000
_kde-filters=true cpi=12 lpi=10 page-bottom=36 page-left=11
page-right=18 page-top=7 position=top-left stpBrightness=1.000
stpGamma=1.600 stpSaturation=1.00

page-bottom=36
page-left=11
page-right=18
page-top=7

magrin widths are in points (pt) where
  1 pt = 1/72 = 0.35 mm

Options set with the lpoptions command are used by the lp and lpr
commands when submitting jobs.  (the lpoptions command is unique to
CUPS).

You didn't say what print system you employe.
-- 
Patrick ShanahanRegistered Linux User #207535
http://wahoo.no-ip.org@ http://counter.li.org
HOG # US1244711   Photo Album:  http://wahoo.no-ip.org/photos
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


[Gimp-user] My new Howto on batch color correction using script-fu

2004-10-17 Thread Marcus Bryner
Hey all,

Maybe someone on this list is interested in this:  Here is a new step by step 
howto on batch color modifications (i.e. getting proper white balance) using 
GIMP script-fu.  

http://schweizerhof.docbryner.com/~marcus/slidestodigital/howto.html

I've been using a slide duplicator to convert 1000's of slides to digital 
using a Canon A70 camera, then running them through GIMP to correct for 
proper white balance.   I started writing the howto just for myself for 
future reference, but the project evolved  

Anyone know other good places to post this where someone might be interested?
Let me know if anyone finds this useful!  :)

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


Re: [Gimp-user] My new Howto on batch color correction using script-fu

2004-10-17 Thread Malcolm Tredinnick
On Sun, 2004-10-17 at 20:10 -0700, Marcus Bryner wrote:
 Hey all,
 
 Maybe someone on this list is interested in this:  Here is a new step by step 
 howto on batch color modifications (i.e. getting proper white balance) using 
 GIMP script-fu.  
 
 http://schweizerhof.docbryner.com/~marcus/slidestodigital/howto.html
 
 I've been using a slide duplicator to convert 1000's of slides to digital 
 using a Canon A70 camera, then running them through GIMP to correct for 
 proper white balance.   I started writing the howto just for myself for 
 future reference, but the project evolved  
 
 Anyone know other good places to post this where someone might be interested?
 Let me know if anyone finds this useful!  :)

Your webserver is serving up this document as text/plain (rather than
text/html), so it is hard to read at the moment (i.e. littered with HTML
tags). You may wish to fix that. :-)

Cheers,
Malcolm



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


Re: [Gimp-user] My new Howto on batch color correction using script-fu

2004-10-17 Thread Patrick Shanahan
* Malcolm Tredinnick [EMAIL PROTECTED] [10-17-04 22:35]:
 ... 
 Your webserver is serving up this document as text/plain (rather than
 text/html), so it is hard to read at the moment (i.e. littered with
 HTML tags). You may wish to fix that. :-)

Hum, looks fine in Firefox and Konqueror

-- 
Patrick ShanahanRegistered Linux User #207535
http://wahoo.no-ip.org@ http://counter.li.org
HOG # US1244711   Photo Album:  http://wahoo.no-ip.org/photos
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user