Image transform is turning my jpegs dark
Setting 'preserveImageColorProfiles' => true, in craft/config/general.php solved the problem.

https://craftcms.com/docs/config-settings#preserveImageColorProfiles

Note that you need to be running at least Craft 2.6.2778 for this config setting to work.