I need to convert a 32 bit TIFF f开发者_如何学Cile (or the corresponding int32 array) to another format that Tkinter can display (like gif fe)
How do I do that? Converting the array to int16 or so completely blurs the picture...
PIL is your best friend.
You can use PIL, Image Magick, or GraphicsMagick
GraphicsMagic and ImageMagick are command-line programs and have python versions. I use Graphics Magic because it is simple. ImageMagick is almost a command-line version of photoshop...
精彩评论