PMXBOT Log file Viewer

Help | Karma | Search:

#pil logs for Monday the 29th of April, 2013

(Back to #pil overview) (Back to channel listing) (Animate logs)
[19:06:01] <jawr> hey, i'm getting the following error: Not a valid numbers of quantization tables. Should be between 2 and 4.
[19:06:15] <jawr> when trying: file_fd.save(file_io, format('JPEG'))
[19:06:51] <wiredfool> what version are you using
[19:07:29] <jawr> PIL-1.1.7-py2.7.egg-info
[19:07:48] <jawr> try an update?
[19:08:19] <wiredfool> well, my first though with any strange jpeg stuff is more than one version of pil/pillow installed
[19:08:38] <jawr> aha
[19:08:48] <wiredfool> is file_fd a Image object?
[19:09:29] <jawr> yeah
[19:10:14] <jawr> could it be an issue with reading/writing to that dir/file?
[19:10:33] <wiredfool> what's file_io"
[19:10:42] <jawr> file_io = StringIO.StringIO()
[19:10:47] <wiredfool> ok
[19:11:17] <wiredfool> is it one specific jpeg that doesn't work,
[19:11:22] <wiredfool> or is it any jpeg?
[19:13:56] <jawr> right, think i have figured it
[19:14:10] <wiredfool> and is format('JPEG') returning something like JPEG?
[19:14:18] <jawr> one of the users is uploading .png files :/
[19:14:26] <jawr> and it's thinking they are JPEG
[19:14:30] <wiredfool> that might do it
[19:16:03] <jawr> hmm, some jpeg files still doing it also
[19:16:07] <jawr> let me try reinstall PIL
[19:16:16] <wiredfool> especially if the save is triggering a read of the underlying image, and you're specifying the file format somehow, and it's reading a png as jpg
[20:21:54] <jawr> thanks for your help btw wiredfool
[20:22:05] <wiredfool> sure thing