Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts/wrap_png.py: check if file exists before calling getsize
On some platforms (e.g. Linux), os.file.getsize throws an exception rather than returning zero if the file doesn't exist. We check for this as well before we spit out a dummy ICC profile, or numpy will report no frame data on those files. Signed-off-by: Leo Izen <[email protected]>
- Loading branch information