Files
OBLITERATUS/vendor/gradio/patch.json

36 lines
1.7 KiB
JSON

{
"schema_version": 1,
"upstream_commit": "d6972ed9d1185634cea083e0263839543d5ceb8d",
"changes": {
"gradio/processing_utils.py": [
{
"before": "def encode_pil_to_bytes(pil_image, format=\"png\"):\n",
"after": "def encode_pil_to_bytes(pil_image, format=\"png\"):\n # Downstream backport of Gradio PR #14005: reject lossy I-mode PNG encoding.\n if format.lower() == \"png\" and pil_image.mode == \"I\":\n raise OSError(\n \"Cannot save a 32-bit integer (I-mode) image as PNG without losing data. \"\n \"If all pixel values are between 0 and 65535, explicitly convert the \"\n \"image with image.convert('I;16') before returning it. Otherwise, use \"\n \"a format such as TIFF to preserve the 32-bit integer values.\"\n )\n"
}
],
"gradio-6.31.0.dist-info/METADATA": [
{
"before": "Version: 6.31.0\n",
"after": "Version: 6.31.0+obliteratus.1\n"
},
{
"before": "Classifier: Programming Language :: Python :: 3.10\n",
"after": ""
},
{
"before": "Requires-Python: >=3.10\n",
"after": "Requires-Python: >=3.11\n"
},
{
"before": "Requires-Dist: pillow<13.0,>=8.0\n",
"after": "Requires-Dist: pillow<14.0,>=13.0\n"
},
{
"before": "Description-Content-Type: text/markdown\n\n",
"after": "Description-Content-Type: text/markdown\n\nDownstream OBLITERATUS security backport: Python >=3.11, Pillow >=13,<14, and Gradio PR #14005 I-mode PNG rejection. This is not an upstream Gradio release. See the included BACKPORT.txt for provenance.\n\n"
}
]
}
}