Issue #2868638 by Berdir, woprrr: CropEffect::transformDimensions() reads the file from disk, which is slow