Manually specify the recompression size to prevent the app from freezing.