Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for corrupt JPEGs auto-fix PR (ultralytics#4560)
Auto-fix corrupt JPEGs PR introduced a bug whereby the f.seek() operation read all of the bytes in the image, resulting in the PIL image having nothing to read upon the .save() operation. Fix was to re-open the image using PIL before saving.
- Loading branch information