I think you're right. In addition, the *quality *attribute is not such an 
easy-peasy as I thought.

Some clarification from Stack Overflow: 
LINK<http://stackoverflow.com/questions/4354543/determining-jpg-quality-in-python-pil>

Need to dig deeper. Thanks, anyway.

On Thursday, June 20, 2013 11:24:55 PM UTC+2, Paolo valleri wrote:
>
> I am not sure but the quality option could be for jpeg only.
> Paolo
> On Thursday, June 20, 2013 5:06:06 PM UTC+2, lesssugar wrote:
>>
>> A bit of offtopic but maybe someone knows what's going on. I'm using this 
>> thumbnail generating slice I found:
>>
>> LINK<http://www.web2pyslices.com/slice/show/1522/generate-a-thumbnail-that-fits-in-a-box>
>>
>> All works fine but the problem I face is the thumbnails quality. I upload 
>> really high-quality images and the generated thumbs are definitely not HQ.
>>
>> I tried adding *quality=90 *argument to these lines of "smarthumb.py":
>> *
>> *
>> img.thumbnail(box, Image.ANTIALIAS)
>>
>> and
>>
>> img.save(request.folder + 'uploads/' + thumb)
>>
>> respectively:
>>
>> img.save(request.folder + 'uploads/' + thumb, quality=90)
>> and 
>> img.save(request.folder + 'uploads/' + thumb, quality=90)
>>
>> -- no effect. Any ideas?
>>
>>
>>
>>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to