David Guest wrote:
> Dear Digerati
> 
> I have an increasing number of large raw tiff images (mostly hand
> scrawled discharge summaries) that are accessed through the Windows
> picture viewer. They are housed on a samba share and are starting to
> chew up significant disc space. I would like to shrink them, preferably
> with a command line tool.
> 
> I note tiffcp (http://www.die.net/doc/linux/man/man1/tiffcp.1.html)
> supports compression but would appreciate advice about the best way to
> proceed to get a reduced image that is still visible in Windows.

David,

Given that you are a Pythonista, I would recommend that you have a look
at PIL (Python Imaging Library) - a very mature and capable library
written and maintained by Frederick Lundh of Secret Labs AB in chilly
Sweden - see http://www.pythonware.com/products/pil/

Compressing an existing image is no harder than:

Import Image
im = Image.open("/home/dguest/image.tif")
im.save("/home/dguest/image.png")

However PIL has methods to do image manipulation as well, such as edge
detection and contrast enhancement, and even de-speckling I think. You
can even make artistic collages of all those discharge summaries and
specialist reports if you like.

Tim C

_______________________________________________
Gpcg_talk mailing list
[email protected]
http://ozdocit.org/cgi-bin/mailman/listinfo/gpcg_talk

Reply via email to