n1k0/npAssetsOptimizerPlugin — pull request #6 by j0k3r (2012-01-04 16:08:43+00:00)
Title: jpg optimization kills the jpg

I don't know why but the jpg optimization breaks the image. After the optimization I cannot (and my script too) access the image again.
The mime type seems to be modified and the image is corrupt :-/

The problem seems to be when replacing the current image by the optimized one.
So, I use the same way of the png copy file for the jpg one (ie: copy instead of $this->replaceFile). And the optimization works again !

I also modified the sfFinder to retrieve insensitive extension.