PMXBOT Log file Viewer

Help | Karma | Search:

#pil logs for Friday the 18th of September, 2020

(Back to #pil overview) (Back to channel listing) (Animate logs)
[01:11:14] <travis-ci> radarhere/Pillow#6776 (39 - 93c43ee : Andrew Murray): The build passed.
[01:11:15] <travis-ci> Change view : https://github.com/radarhere/Pillow/compare/f6398a44edd4...93c43ee4baf1
[01:11:15] <travis-ci> Build details : https://travis-ci.org/radarhere/Pillow/builds/728195337
[13:35:20] <travis-ci> radarhere/Pillow#6777 (39 - 42b90ec : Andrew Murray): The build passed.
[13:35:20] <travis-ci> Change view : https://github.com/radarhere/Pillow/compare/93c43ee4baf1...42b90ece692f
[13:35:20] <travis-ci> Build details : https://travis-ci.org/radarhere/Pillow/builds/728327662
[21:37:56] <laertus> hellow, i'm planning on writing a program that reads in an audio file in wav format, taking the data portion of the file (which consists of numbers in the range of -32767 to 32767) and putting it in to to a signed 16-bit tiff, then manipulating the tiff as a regular image file in various external programs, reading tiff back in, extracting the data from the tiff and creating a new wav file
[21:38:35] <laertus> it seems like pillow might be the right thing to use with respect to getting this data in to a tiff file and extracting it ouf of the tiff file
[21:39:55] <laertus> so i'm wondering if someone could point me to the relevant part of the pillow docs that describe how i can insert/extract raw data into/out-of a pillow image data structure
[21:43:23] <laertus> hmm.. i just found ImageFile.set_as_raw()
[21:43:48] <laertus> that looks useful.. though i'm not sure if it expects the "raw" data to already be in tiff format
[21:44:51] <laertus> also, i don't see any corresponding function to extract the raw data out of an image file
[22:06:51] <laertus> looks like fromstring() and tostring() might be what i need
[22:08:33] <laertus> oh nooo... NotImplementedError("tostring() has been removed.
[22:11:57] <laertus> but there is a PIL.Image.frombytes()
[22:12:53] <laertus> but that might be a little too low-level for me