What about the picture license? Are we allowed to include it? If not sure please create your own.
ok, i will create some random png image with big zTXt section and update pull request
Fixed #19457 - ImageField size detection fails for some files even wh…
…en PIL could succeed
@apollo13 pull request updated with new image now.
it's generated with this script https://github.com/moljac024/scripts/blob/master/other/konify.pl and contains 10KB from my /dev/urandom within it's metadata. so it's free from any copyrights now.
i also added check to except block to ensure that we are ignoring only "truncated stream" errors and reraise other exceptions from zlib.
also, i know that checking error code with str.startswith() is at least strange, but it looks like we have no other choice, because zlib does not save it anywhere else and return only formatted string with error description.
or i'm missing something?