mirotomi
Posts: 4
Joined: Wed Aug 10, 2016 9:05 am

JPEG module

Fri Aug 12, 2016 9:55 am

In Python 2 there is a (deprecated) module for IRIX, called jpeg. I would like to use a module like that (its syntax reminds me of zlib module) in Python (preferably 3.x) on Raspbian. I mean, I would like to choose the level of compression (that is, the quality) with one command ( like jpeg.compress(data, 8) ) and decompress the image with the other command and then compare the decompressed image with the original. Is something like that available in Python? Or what are the options.

User avatar
davef21370
Posts: 897
Joined: Fri Sep 21, 2012 4:13 pm
Location: Earth But Not Grounded

Re: JPEG module

Fri Aug 12, 2016 6:58 pm

Google "python PIL" and look at the Image module.
Apple say... Monkey do !!

Return to “Python”