+1  A: 

There are some quirks with scaling with CIImage. Will this post by Dan Wood help?

Diederik Hoogenboom
yeah, i've tried this, but it is something different. I'm not sure why i'm getting green net over the sunset in jpeg.
A: 

That's definitely a CoreImage bug. File it at bugreport.apple.com

NSResponder
mm..well, probably. i'll try. But it won't solve my issue :)
+1  A: 

My understanding is that due to its nature, the hardware Core Image renderer has some odd quirks when rendering for anything but on-screen display. So, you are recommended to use the software renderer for other situations.

http://developer.apple.com/mac/library/qa/qa2005/qa1416.html

Mike Abdullah