PMXBOT Log file Viewer

Help | Karma | Search:

#pil logs for Tuesday the 25th of March, 2014

(Back to #pil overview) (Back to channel listing) (Animate logs)
[16:51:07] <adamginsburg> howdy folks; I'm encountering an IOError("cannot identify image file") with a TIFF image: http://sci.esa.int/science-e-media/img/ee/Herschel_Carina.tif
[16:51:27] <adamginsburg> any tips on how I might go about reading the image?
[17:10:11] <wiredfool> adamginsburg: I love that picture
[17:11:03] <adamginsburg> wiredfool: I'm applying for more observations of that region and I want to use it in my observing proposal, but I need to read it into python first so I can use its metadata properly
[17:11:04] <wiredfool> The basic problem is that it's 16 bit per channel, which is an image mode that we don't support
[17:11:11] <adamginsburg> ach, dangit
[17:11:17] <adamginsburg> can I use imagemagick to convert it, perhaps?
[17:11:41] <wiredfool> imagemagick seems to work with it
[17:11:46] <wiredfool> I just used it to display
[17:11:48] <wiredfool> and identify
[17:12:55] <adamginsburg> convert -depth 8? (1st google result: http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=16146)
[17:14:15] <wiredfool> convert -depth 8 Herschel_Carina.tif Herschel_Carina-8bit.tif works for em
[17:14:35] <adamginsburg> thanks!