• Glenn Jocher's avatar
    Fix for corrupt JPEGs auto-fix PR (#4560) · e899d6e8
    Glenn Jocher 提交于
    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.
    e899d6e8
datasets.py 41.7 KB