Re: image reduction script

2006-03-26 Thread Philippe Martin
Kamilche wrote: > Be sure and use mode = P instead of RGB, like you have in your other > code. P is for palettized images. Don't palettize if you're storing as > JPG, only if you're storing as PNG or some other format that can handle > 256 color images. My problem is this: 1) If I use a save to

Re: image reduction script

2006-03-26 Thread Kamilche
Be sure and use mode = P instead of RGB, like you have in your other code. P is for palettized images. Don't palettize if you're storing as JPG, only if you're storing as PNG or some other format that can handle 256 color images. -- http://mail.python.org/mailman/listinfo/python-list

Re: image reduction script

2006-03-26 Thread Philippe Martin
Kamilche, I am posting the code in another thread but am not certain that convert does anything to the picture color depth ... still searching in the doc. Philippe Kamilche wrote: > > To reduce the color depth of an image in PIL: > im = im.convert(mode="P", palette=Image.ADAPTIV

Re: image reduction script

2006-03-26 Thread Philippe Martin
Thanks, I'll give it a shot. Philippe Kamilche wrote: > > To reduce the color depth of an image in PIL: > im = im.convert(mode="P", palette=Image.ADAPTIVE) -- http://mail.python.org/mailman/listinfo/python-list

Re: image reduction script

2006-03-25 Thread Kamilche
To reduce the color depth of an image in PIL: im = im.convert(mode="P", palette=Image.ADAPTIVE) -- http://mail.python.org/mailman/listinfo/python-list

Re: image reduction script

2006-03-25 Thread Philippe Martin
Larry, I actually did not find what I needed in PIL (missed it ?) but found this package quite usefull: http://www.imagemagick.org/script/index.php Philippe Larry Bates wrote: > Philippe Martin wrote: >> Hi, >> >> I need to write a script to reduce the resolution/color depth of an image >>

Re: image reduction script

2006-03-24 Thread Larry Bates
Philippe Martin wrote: > Hi, > > I need to write a script to reduce the resolution/color depth of an image > (ex: .jpg) based on a target size. > > The point is for the target picture to still be "understandable" - yet I > target getting down to 5K. > > Are there libraries out there that could h

image reduction script

2006-03-24 Thread Philippe Martin
Hi, I need to write a script to reduce the resolution/color depth of an image (ex: .jpg) based on a target size. The point is for the target picture to still be "understandable" - yet I target getting down to 5K. Are there libraries out there that could help me start ? Thanks Philippe -- ht