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
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
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
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
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
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
>>
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
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