j vickroy wrote:
> Thanks much for this information and also for taking the additional time
> to try the optipng tool. It is very helpful.
>
> Since the above mentioned PNG generation is one step in a "near"
> real-time products generation system, I was hoping to avoid the addition
> of anothe
Eric Firing wrote:
You can post-process the image with something like ImageMagick.
Another alternative is to use PIL -- you can grab the matplotlib buffer,
make a PIL image out of it, and use PIL to convert to an 8-bit palleted
image.
For that matter, you could probably bypass MPL, and use nump
>> You can post-process the image with something like ImageMagick.
>>
>> Another alternative is to use PIL -- you can grab the matplotlib buffer,
>> make a PIL image out of it, and use PIL to convert to an 8-bit palleted
>> image.
>>
>> For that matter, you could probably bypass MPL, and use numpy
On 07/22/2010 03:40 PM, j vickroy wrote:
> Christopher Barker wrote:
>> Jim Vickroy wrote:
>>
>>> The attachment is a simple script that creates a 2D array of unsigned,
>>> 8-bit integers and uses matplotlib to save it as a PNG file.
>>>
>>> Unfortunately, the PNG file is much larger than expected
Christopher Barker wrote:
Jim Vickroy wrote:
The attachment is a simple script that creates a 2D array of unsigned,
8-bit integers and uses matplotlib to save it as a PNG file.
Unfortunately, the PNG file is much larger than expected -- apparently
because it is True-Color; on my MS Windows
Jim Vickroy wrote:
> The attachment is a simple script that creates a 2D array of unsigned,
> 8-bit integers and uses matplotlib to save it as a PNG file.
>
> Unfortunately, the PNG file is much larger than expected -- apparently
> because it is True-Color; on my MS Windows machine, bit depth, f
Hello,
Apologies for reposting my question from yesterday ("save image as
color-mapped 8-bit rather than true-color"). I am hoping this
reposting clarifies what I am trying to accomplish.
The attachment is a simple script that creates a 2D array of unsigned,
8-bit integers and uses matplot