Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Figured out how to bisect properly. I uploaded my script and logs to http://kegel.com/imagemagick/slow/bisect.tgz
I had to edit it each run to hard code the revision I wanted to test, but that wasn't too bad.
The culprit seems to be r971, and the likely hunk within that commit seems to be
Without that fix the quality of the image would be '0' instead of '96'. And it looks like the png coder will think that the quality is 75 instead of 96 and that will result in a different compression. I haven't tested this yet but that really looks like unwanted behavior.
Edit:
The png encoder really uses the quality of the jpeg to determine the compression. A patch for ImageMagick 6.8.6-9 Beta will available by sometime tomorrow. Thanks.