diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b298b66..facd5ed 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,7 +63,7 @@ jobs: - name: Get GitHub OIDC Token if: github.repository == 'stainless-sdks/imagekit-python' id: github-oidc - uses: actions/github-script@v6 + uses: actions/github-script@v8 with: script: core.setOutput('github_token', await core.getIDToken()); diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 473ec8b..2b80f8a 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "5.1.1" + ".": "5.1.2" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 1fdb990..414ca0a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 48 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-84f0d75048a9268981a84800b4190e3691997ce57dcfc0876f38a5b3fce6bacd.yml openapi_spec_hash: 35607d4e850c8a60524223ff632c83bb -config_hash: aeb6eb949d73382270bbd8bbf2e4cf2a +config_hash: 47cb702ee2cb52c58d803ae39ade9b44 diff --git a/CHANGELOG.md b/CHANGELOG.md index 4bdf7d5..3576498 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 5.1.2 (2026-01-29) + +Full Changelog: [v5.1.1...v5.1.2](https://github.com/imagekit-developer/imagekit-python/compare/v5.1.1...v5.1.2) + +### Bug Fixes + +* **docs:** fix mcp installation instructions for remote servers ([df26dbd](https://github.com/imagekit-developer/imagekit-python/commit/df26dbdccce2814bbf30ee94853883a266211586)) +* **tests:** update subtitle overlay references from "l-subtitle" to "l-subtitles" ([11fb58a](https://github.com/imagekit-developer/imagekit-python/commit/11fb58a82c0ff8eb5bdf4bf779b15ea85046604a)) + + +### Chores + +* **ci:** upgrade `actions/github-script` ([a75c01b](https://github.com/imagekit-developer/imagekit-python/commit/a75c01be5c51bdee1531f89b45519af872bb8c59)) + ## 5.1.1 (2026-01-20) Full Changelog: [v5.1.0...v5.1.1](https://github.com/imagekit-developer/imagekit-python/compare/v5.1.0...v5.1.1) diff --git a/pyproject.toml b/pyproject.toml index 81c1340..e7f3a3f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "imagekitio" -version = "5.1.1" +version = "5.1.2" description = "The official Python library for the ImageKit API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/imagekitio/_version.py b/src/imagekitio/_version.py index b2e2ff2..dc37ce2 100644 --- a/src/imagekitio/_version.py +++ b/src/imagekitio/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "imagekitio" -__version__ = "5.1.1" # x-release-please-version +__version__ = "5.1.2" # x-release-please-version diff --git a/src/imagekitio/lib/helper.py b/src/imagekitio/lib/helper.py index 72b5afb..c8e440f 100644 --- a/src/imagekitio/lib/helper.py +++ b/src/imagekitio/lib/helper.py @@ -296,7 +296,7 @@ def _process_overlay(overlay: Overlay) -> str: parsed_overlay.append(_process_input_path(video_input, video_encoding)) elif overlay_type == "subtitle": - parsed_overlay.append("l-subtitle") + parsed_overlay.append("l-subtitles") subtitle_input = cast(str, overlay.get("input", "")) if not subtitle_input: diff --git a/tests/custom/url_generation/test_overlay.py b/tests/custom/url_generation/test_overlay.py index b69595f..f436743 100644 --- a/tests/custom/url_generation/test_overlay.py +++ b/tests/custom/url_generation/test_overlay.py @@ -122,7 +122,7 @@ def test_should_generate_url_with_subtitle_overlay_from_input_file(self): transformation_position="path", transformation=[{"overlay": {"type": "subtitle", "input": "subtitle.srt"}}], ) - expected = "https://ik.imagekit.io/test_url_endpoint/tr:l-subtitle,i-subtitle.srt,l-end/base-video.mp4" + expected = "https://ik.imagekit.io/test_url_endpoint/tr:l-subtitles,i-subtitle.srt,l-end/base-video.mp4" assert url == expected def test_should_generate_url_with_solid_color_overlay_using_background_color(self): @@ -238,7 +238,7 @@ def test_should_generate_url_with_multiple_complex_overlays_including_nested_tra }, ], ) - expected = "https://ik.imagekit.io/test_url_endpoint/tr:l-text,i-Every%20thing,lx-10,ly-20,lfo-center,lso-5,leo-15,ldu-10,w-bw_mul_0.5,fs-20,ff-Arial,co-0000ff,ia-left,pa-5,al-7,tg-b,bg-red,r-10,rt-N45,fl-h,lh-20,l-end:l-image,i-logo.png,lx-10,ly-20,lfo-center,lso-5,leo-15,ldu-10,w-bw_mul_0.5,h-bh_mul_0.5,rt-N45,fl-h,l-text,i-Nested%20text%20overlay,l-end,l-end:l-video,i-play-pause-loop.mp4,lx-10,ly-20,lfo-center,lso-5,leo-15,ldu-10,w-bw_mul_0.5,h-bh_mul_0.5,rt-N45,fl-h,l-end:l-subtitle,i-subtitle.srt,lx-10,ly-20,lfo-center,lso-5,leo-15,ldu-10,bg-red,co-0000ff,ff-Arial,fol-2_A1CCDD50,fsh-A1CCDD_3,l-end:l-image,i-ik_canvas,bg-FF0000,lx-10,ly-20,lfo-center,lso-5,leo-15,ldu-10,w-bw_mul_0.5,h-bh_mul_0.5,al-0.5,bg-red,e-gradient,r-max,l-end/base-image.jpg" + expected = "https://ik.imagekit.io/test_url_endpoint/tr:l-text,i-Every%20thing,lx-10,ly-20,lfo-center,lso-5,leo-15,ldu-10,w-bw_mul_0.5,fs-20,ff-Arial,co-0000ff,ia-left,pa-5,al-7,tg-b,bg-red,r-10,rt-N45,fl-h,lh-20,l-end:l-image,i-logo.png,lx-10,ly-20,lfo-center,lso-5,leo-15,ldu-10,w-bw_mul_0.5,h-bh_mul_0.5,rt-N45,fl-h,l-text,i-Nested%20text%20overlay,l-end,l-end:l-video,i-play-pause-loop.mp4,lx-10,ly-20,lfo-center,lso-5,leo-15,ldu-10,w-bw_mul_0.5,h-bh_mul_0.5,rt-N45,fl-h,l-end:l-subtitles,i-subtitle.srt,lx-10,ly-20,lfo-center,lso-5,leo-15,ldu-10,bg-red,co-0000ff,ff-Arial,fol-2_A1CCDD50,fsh-A1CCDD_3,l-end:l-image,i-ik_canvas,bg-FF0000,lx-10,ly-20,lfo-center,lso-5,leo-15,ldu-10,w-bw_mul_0.5,h-bh_mul_0.5,al-0.5,bg-red,e-gradient,r-max,l-end/base-image.jpg" assert url == expected # Overlay encoding tests @@ -379,7 +379,7 @@ def test_should_use_base64_encoding_when_explicitly_specified_for_subtitle_overl transformation_position="path", transformation=[{"overlay": {"type": "subtitle", "input": "sub.srt", "encoding": "base64"}}], ) - expected = "https://ik.imagekit.io/demo/tr:l-subtitle,ie-c3ViLnNydA%3D%3D,l-end/sample.mp4" + expected = "https://ik.imagekit.io/demo/tr:l-subtitles,ie-c3ViLnNydA%3D%3D,l-end/sample.mp4" assert url == expected def test_should_use_plain_encoding_when_explicitly_specified_for_subtitle_overlay(self): @@ -390,7 +390,7 @@ def test_should_use_plain_encoding_when_explicitly_specified_for_subtitle_overla transformation_position="path", transformation=[{"overlay": {"type": "subtitle", "input": "/sub.srt", "encoding": "plain"}}], ) - expected = "https://ik.imagekit.io/demo/tr:l-subtitle,i-sub.srt,l-end/sample.mp4" + expected = "https://ik.imagekit.io/demo/tr:l-subtitles,i-sub.srt,l-end/sample.mp4" assert url == expected def test_should_properly_encode_overlay_text_when_transformations_are_in_query_parameters(self):