Abid A
Abid A

Reputation: 7858

PIL quality issue

I'm creating a thumbnail for an image using the following code:

im = Image.open('original.jpg')
im.thumbnail((600,473), Image.ANTIALIAS)
im.save('original_thumbnail.jpg', quality=95)

Original Image Original Image

Thumbnail

Thumbnail

As you can see, the quality of the thumbnail is unlike the original. I'm guessing it has something to do with the color profile attached to the original image not being copied over but that's a just guess. Any ideas on how to resolve this?

Upvotes: 2

Views: 311

Answers (1)

Igor Hatarist
Igor Hatarist

Reputation: 5442

Here's the similar question previously asked on SO: https://stackoverflow.com/a/8544762/974317

Seems that PyCMS - a module that provides color profile management - should work for you.

Upvotes: 2

Related Questions