tag:blogger.com,1999:blog-8885167082319491081.post1127075618223914889..comments2008-11-10T20:09:42.391-05:00Comments on digital sanitation engineering: Python, PIL and PNG metadata, take 2nickghttp://www.blogger.com/profile/04659163622120256748noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-8885167082319491081.post-77428427801948460052008-10-27T09:32:00.000-04:002008-10-27T09:32:00.000-04:002008-10-27T09:32:00.000-04:00Good for people to know.Good for people to know.Eddahttp://tonyeinsurance.blogspot.comnoreply@blogger.comtag:blogger.com,1999:blog-8885167082319491081.post-16765005758661314022008-05-19T02:44:00.000-04:002008-05-19T02:44:00.000-04:002008-05-19T02:44:00.000-04:001.1.6 as opposed to 1.6, I take it.1.1.6 as opposed to 1.6, I take it.Nick Phillipshttp://www.blogger.com/profile/07474593732659170772noreply@blogger.comtag:blogger.com,1999:blog-8885167082319491081.post-56553242145583255932007-09-30T13:25:00.000-04:002007-09-30T13:25:00.000-04:002007-09-30T13:25:00.000-04:00Hi Taylor,Saving the PNG with a new bit depth is a...Hi Taylor,<BR/><BR/>Saving the PNG with a new bit depth is a little different than what I'm talking about in this article. But, if you just need to convert to grayscale, look at PIL.Image.convert.<BR/><BR/>Beyond that I would recommend using ImageMagick's convert function. Changing bit depth gets tricky since you might need to quantize colors.nickghttp://www.blogger.com/profile/04659163622120256748noreply@blogger.comtag:blogger.com,1999:blog-8885167082319491081.post-24448868072001536962007-09-26T20:09:00.000-04:002007-09-26T20:09:00.000-04:002007-09-26T20:09:00.000-04:00Hey there...I'm actually trying to save out a PNG ...Hey there...<BR/><BR/>I'm actually trying to save out a PNG at a new bitdepth using PIL and Python with no success so far. Is this at all related to what you're exploring here? Have any suggestions?Taylorhttp://www.blogger.com/profile/17992775320337684601noreply@blogger.comtag:blogger.com,1999:blog-8885167082319491081.post-81208597496714576352007-09-14T12:01:00.000-04:002007-09-14T12:01:00.000-04:002007-09-14T12:01:00.000-04:00Hi, thanks for the comment. I have not explored me...Hi, thanks for the comment. I have not explored metadata for other image types very much. For JPEG images, I know http://www.adobe.com/products/xmp/ and http://www.disc-info.org/ are widely used so some tool must exist for them.<BR/><BR/>I'll take a look at what PIL offers here and report back.nickghttp://www.blogger.com/profile/04659163622120256748noreply@blogger.comtag:blogger.com,1999:blog-8885167082319491081.post-21564928272819368962007-09-12T01:50:00.000-04:002007-09-12T01:50:00.000-04:002007-09-12T01:50:00.000-04:00Thanks for this one. Any idea on how to carry out ...Thanks for this one. Any idea on how to carry out the same trick for jpegs and tiffs? The JpegImagePlugin module doesn't have an equivalent JpegInfo function, and there is no TiffImagePlugin module at all ...Edwardhttp://www.blogger.com/profile/14309607979821676525noreply@blogger.com