Please scroll down to roentarre's post:
Are the Pentax *ist DS JPGs too highly compressed?
In above discussion Godfrey also writes:
"The *ist DS produces JPEG files that are equal or a little better in quality then the ones I get out of my Canon 10D in comparable situations on the default settings. Once I tailor settings on both cameras to suit my needs, the results are as good as identical."