Skip to content

Commit ebc2a55

Browse files
authored
Merge pull request #78 from imagekit-developer/release-please--branches--master--changes--next
release: 5.1.2
2 parents 88e81bc + f229851 commit ebc2a55

File tree

8 files changed

+24
-10
lines changed

8 files changed

+24
-10
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
- name: Get GitHub OIDC Token
6464
if: github.repository == 'stainless-sdks/imagekit-python'
6565
id: github-oidc
66-
uses: actions/github-script@v6
66+
uses: actions/github-script@v8
6767
with:
6868
script: core.setOutput('github_token', await core.getIDToken());
6969

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "5.1.1"
2+
".": "5.1.2"
33
}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 48
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-84f0d75048a9268981a84800b4190e3691997ce57dcfc0876f38a5b3fce6bacd.yml
33
openapi_spec_hash: 35607d4e850c8a60524223ff632c83bb
4-
config_hash: aeb6eb949d73382270bbd8bbf2e4cf2a
4+
config_hash: 47cb702ee2cb52c58d803ae39ade9b44

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## 5.1.2 (2026-01-29)
4+
5+
Full Changelog: [v5.1.1...v5.1.2](https://github.com/imagekit-developer/imagekit-python/compare/v5.1.1...v5.1.2)
6+
7+
### Bug Fixes
8+
9+
* **docs:** fix mcp installation instructions for remote servers ([df26dbd](https://github.com/imagekit-developer/imagekit-python/commit/df26dbdccce2814bbf30ee94853883a266211586))
10+
* **tests:** update subtitle overlay references from "l-subtitle" to "l-subtitles" ([11fb58a](https://github.com/imagekit-developer/imagekit-python/commit/11fb58a82c0ff8eb5bdf4bf779b15ea85046604a))
11+
12+
13+
### Chores
14+
15+
* **ci:** upgrade `actions/github-script` ([a75c01b](https://github.com/imagekit-developer/imagekit-python/commit/a75c01be5c51bdee1531f89b45519af872bb8c59))
16+
317
## 5.1.1 (2026-01-20)
418

519
Full Changelog: [v5.1.0...v5.1.1](https://github.com/imagekit-developer/imagekit-python/compare/v5.1.0...v5.1.1)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "imagekitio"
3-
version = "5.1.1"
3+
version = "5.1.2"
44
description = "The official Python library for the ImageKit API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/imagekitio/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "imagekitio"
4-
__version__ = "5.1.1" # x-release-please-version
4+
__version__ = "5.1.2" # x-release-please-version

src/imagekitio/lib/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def _process_overlay(overlay: Overlay) -> str:
296296
parsed_overlay.append(_process_input_path(video_input, video_encoding))
297297

298298
elif overlay_type == "subtitle":
299-
parsed_overlay.append("l-subtitle")
299+
parsed_overlay.append("l-subtitles")
300300

301301
subtitle_input = cast(str, overlay.get("input", ""))
302302
if not subtitle_input:

tests/custom/url_generation/test_overlay.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def test_should_generate_url_with_subtitle_overlay_from_input_file(self):
122122
transformation_position="path",
123123
transformation=[{"overlay": {"type": "subtitle", "input": "subtitle.srt"}}],
124124
)
125-
expected = "https://ik.imagekit.io/test_url_endpoint/tr:l-subtitle,i-subtitle.srt,l-end/base-video.mp4"
125+
expected = "https://ik.imagekit.io/test_url_endpoint/tr:l-subtitles,i-subtitle.srt,l-end/base-video.mp4"
126126
assert url == expected
127127

128128
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
238238
},
239239
],
240240
)
241-
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"
241+
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"
242242
assert url == expected
243243

244244
# Overlay encoding tests
@@ -379,7 +379,7 @@ def test_should_use_base64_encoding_when_explicitly_specified_for_subtitle_overl
379379
transformation_position="path",
380380
transformation=[{"overlay": {"type": "subtitle", "input": "sub.srt", "encoding": "base64"}}],
381381
)
382-
expected = "https://ik.imagekit.io/demo/tr:l-subtitle,ie-c3ViLnNydA%3D%3D,l-end/sample.mp4"
382+
expected = "https://ik.imagekit.io/demo/tr:l-subtitles,ie-c3ViLnNydA%3D%3D,l-end/sample.mp4"
383383
assert url == expected
384384

385385
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
390390
transformation_position="path",
391391
transformation=[{"overlay": {"type": "subtitle", "input": "/sub.srt", "encoding": "plain"}}],
392392
)
393-
expected = "https://ik.imagekit.io/demo/tr:l-subtitle,i-sub.srt,l-end/sample.mp4"
393+
expected = "https://ik.imagekit.io/demo/tr:l-subtitles,i-sub.srt,l-end/sample.mp4"
394394
assert url == expected
395395

396396
def test_should_properly_encode_overlay_text_when_transformations_are_in_query_parameters(self):

0 commit comments

Comments
 (0)