libjxl / bench

Testing of various jxl implementations in terms of conformance, speed, compression, ...
https://libjxl.github.io/bench/
BSD 3-Clause "New" or "Revised" License
3 stars 4 forks source link

scripts/wrap_png.py: check if file exists before calling getsize #24

Closed Traneptora closed 3 months ago

Traneptora commented 3 months ago

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.

mo271 commented 3 months ago

Thanks!