Incorrect check for base64 data in image loader
zkolter opened this issue · comments
Zico Kolter commented
The processing of input images in base64 format assumes that base64 strings will always end with '=' or '==':
Line 90 in 0cd1bdd
This isn't a valid test of base64 data, though. If the content has a multiple of 3 bytes, there won't be any trailing '='. This will cause the library to try to open a file with the filename of the base64 string in these cases.