code: def get_shrunk_data(shrink_info):
      
      out_url = shrink_info['output']['url']
      try:
          return requests.get(out_url).content
      except HTTPError as err:
          if err.code != 404:
              raise
  
          exc = ValueError("Unable to read png file \"{0}\"".format(out_url))
          exc.__cause__ = err
          raise exc
docs: Read shrunk file from tinypng.org api.