Skip to content

Conversation

@etienned
Copy link
Contributor

@etienned etienned commented Mar 8, 2013

Alex,

Basically what need to be test is:

  1. is it compiling correctly?
  2. open a JPEG image saved from Photoshop (so it's quantization tables will not be from libjpeg), check the quantization table (im.quantization), then save this image with:
im.save('new_name.jpg', quality='keep')

Reopen this new image and compare the quantization table to the first one, they should be identical.

Sorry for not having proper tests.

@aclark4life aclark4life merged commit 55f2dc7 into python-pillow:master Mar 8, 2013
@aclark4life
Copy link
Member

Thanks!

@savyan
Copy link

savyan commented Jul 4, 2013

I am a beginner to pillow and python. I am trying to specify a present quantization table, but when i try the following code:

im1=Image.open('lena.jpg')
qt1=im1.quantization
print 'The qtable of lena.jpg'
print qt1 
im2.save("lena1.jpg", qtables="low")
im3=Image.open('lena1.jpg')
print 'The qtable of lena1.jpg'
qt3=im3.quantization
print qt3

but the output of qt3 and qt1 are same. means it is not loading the preset value "low". Why?

@aclark4life
Copy link
Member

@savyan This type of question is best asked/answered on stackoverflow with the python and python-imaging-library tags e.g. http://stackoverflow.com/search?q=pil

@savyan
Copy link

savyan commented Jul 4, 2013

thank you for the guidance.

@d-schmidt
Copy link
Contributor

@savyan

im2.save("lena1.jpg", quality="low")

@savyan
Copy link

savyan commented Jul 5, 2013

On Friday 05 July 2013 06:00 PM, David Schmidt wrote:

@savyan https://github.com/savyan

|im2.save("lena1.jpg", quality="low")
|


Reply to this email directly or view it on GitHub
#77 (comment).

@david Schidt
Thanks done it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants