From f442796ce9894a3bc799b4245f798e37e2fcd678 Mon Sep 17 00:00:00 2001 From: Remco Koopmans Date: Thu, 2 Jul 2026 17:12:24 +0200 Subject: [PATCH 1/4] feat: add JXL to supported file formats --- README.md | 2 +- tinify/_typed.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 23944a7..eeb99c9 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ tinify.from_file("image.png").convert( ```python # Convert to smallest format converted = tinify.from_file("image.png").convert( - type=["image/webp", "image/webp"] + type=["image/webp", "image/avif", "image/jxl"] ) extension = converted.result().extension converted.to_file("image." + extension) diff --git a/tinify/_typed.py b/tinify/_typed.py index 6e51a8a..fc1a6da 100644 --- a/tinify/_typed.py +++ b/tinify/_typed.py @@ -5,7 +5,7 @@ class ResizeOptions(TypedDict,total=False): width: Optional[int] height: Optional[int] -ConvertTypes = Literal['image/webp', 'image/jpeg', 'image/png', "image/avif", "*/*"] +ConvertTypes = Literal['image/webp', 'image/jpeg', 'image/png', "image/avif", "image/jxl", "*/*"] class ConvertOptions(TypedDict, total=False): type: Union[ConvertTypes, List[ConvertTypes]] From 5026819820a813d7df60785ab9f3aec715aa05a3 Mon Sep 17 00:00:00 2001 From: Remco Koopmans Date: Thu, 2 Jul 2026 17:13:59 +0200 Subject: [PATCH 2/4] feat: update classifier to include python 3.14 --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index b843144..fd55554 100644 --- a/setup.py +++ b/setup.py @@ -52,5 +52,6 @@ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", ), ) From 9fe417b844019eec68769b9235d44a6558df2588 Mon Sep 17 00:00:00 2001 From: Remco Koopmans Date: Thu, 2 Jul 2026 17:15:46 +0200 Subject: [PATCH 3/4] chore: release 1.7.2 --- CHANGES.md | 5 +++++ tinify/version.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index d7d1a9a..4092e15 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,8 @@ +## 1.7.2 + +* Add JXL to supported image types +* Update package classifier to support python 3.14 + ## 1.7.1 * Use only a GET request when no body, otherwise POST diff --git a/tinify/version.py b/tinify/version.py index deb97f3..8adfee4 100644 --- a/tinify/version.py +++ b/tinify/version.py @@ -1 +1 @@ -__version__ = '1.7.1' \ No newline at end of file +__version__ = '1.7.2' From 807ead1b728c5faa89678fffcd813f1b6e7fba06 Mon Sep 17 00:00:00 2001 From: Remco Koopmans Date: Thu, 2 Jul 2026 17:44:52 +0200 Subject: [PATCH 4/4] chore: bump pypy to 3.11 --- .github/workflows/ci-cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 5f8c8b3..76b4b5d 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -12,7 +12,7 @@ jobs: matrix: python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14", - "pypy-2.7", "pypy-3.10" + "pypy-2.7", "pypy-3.11" ] os: [ubuntu-latest, macOS-latest, windows-latest]