Manual:$wgUseTinyRGBForJPGThumbnails

Details
When this variable is true and JPGs use the sRGB ICC profile, swaps it for the more lightweight (and free) TinyRGB profile when generating thumbnails.