Skip to content

Commit 8a69712

Browse files
authored
Merge pull request #54 from imgix/adds_bg-remove-transparency-threshold
Adds `bg-remove-transparency-threshold`
2 parents 8fe2598 + bfcb215 commit 8a69712

File tree

4 files changed

+52
-4
lines changed

4 files changed

+52
-4
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "imgix-url-params",
3-
"version": "11.33.0",
3+
"version": "11.34.0",
44
"homepage": "https://github.com/imgix/imgix-url-params",
55
"authors": ["Jason Eberle <[email protected]>"],
66
"description": "Organized, machine-friendly documentation of imgix's URL parameters",

dist/parameters.js

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}(this, function () {
1616

1717
return {
18-
"version": "11.33.0",
18+
"version": "11.34.0",
1919
"parameters": {
2020
"ar": {
2121
"display_name": "aspect ratio",
@@ -119,6 +119,29 @@ return {
119119
"url": "https://docs.imgix.com/apis/rendering/background/background-removal-semi-transparency",
120120
"short_description": "Enables background removal while retaining semi-transparent areas."
121121
},
122+
"bg-remove-transparency-threshold": {
123+
"display_name": "background transparency threshold",
124+
"category": "background",
125+
"available_in": [
126+
"url",
127+
"graph",
128+
"output"
129+
],
130+
"expects": [
131+
{
132+
"type": "unit_scalar",
133+
"unit": "ratio",
134+
"min": 0,
135+
"max": 1
136+
}
137+
],
138+
"aliases": [
139+
"bg-remove-transparency-threshold"
140+
],
141+
"default": 0.2,
142+
"url": "https://docs.imgix.com/apis/rendering/background/bg-remove-transparency-threshold",
143+
"short_description": "Sets the threshold for background removal based on transparency. Transparency in an image below or equal to the threshold will skip the entire background removal process"
144+
},
122145
"bg-remove": {
123146
"display_name": "background removal",
124147
"category": "background",
@@ -4329,6 +4352,7 @@ return {
43294352
},
43304353
"aliases": {
43314354
"background-removal-semi-transparency": "bg-remove-semi-transparency",
4355+
"bg-remove-transparency-threshold": "bg-remove-transparency-threshold",
43324356
"background-remove": "bg-remove",
43334357
"background-replace-negative-prompt": "bg-replace-neg-prompt",
43344358
"background-replace": "bg-replace",

dist/parameters.json

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "11.33.0",
2+
"version": "11.34.0",
33
"parameters": {
44
"ar": {
55
"display_name": "aspect ratio",
@@ -103,6 +103,29 @@
103103
"url": "https://docs.imgix.com/apis/rendering/background/background-removal-semi-transparency",
104104
"short_description": "Enables background removal while retaining semi-transparent areas."
105105
},
106+
"bg-remove-transparency-threshold": {
107+
"display_name": "background transparency threshold",
108+
"category": "background",
109+
"available_in": [
110+
"url",
111+
"graph",
112+
"output"
113+
],
114+
"expects": [
115+
{
116+
"type": "unit_scalar",
117+
"unit": "ratio",
118+
"min": 0,
119+
"max": 1
120+
}
121+
],
122+
"aliases": [
123+
"bg-remove-transparency-threshold"
124+
],
125+
"default": 0.2,
126+
"url": "https://docs.imgix.com/apis/rendering/background/bg-remove-transparency-threshold",
127+
"short_description": "Sets the threshold for background removal based on transparency. Transparency in an image below or equal to the threshold will skip the entire background removal process"
128+
},
106129
"bg-remove": {
107130
"display_name": "background removal",
108131
"category": "background",
@@ -4313,6 +4336,7 @@
43134336
},
43144337
"aliases": {
43154338
"background-removal-semi-transparency": "bg-remove-semi-transparency",
4339+
"bg-remove-transparency-threshold": "bg-remove-transparency-threshold",
43164340
"background-remove": "bg-remove",
43174341
"background-replace-negative-prompt": "bg-replace-neg-prompt",
43184342
"background-replace": "bg-replace",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "imgix-url-params",
3-
"version": "11.33.0",
3+
"version": "11.34.0",
44
"description": "Organized, machine-friendly documentation of imgix's URL parameters",
55
"main": "dist/manifest.json",
66
"scripts": {

0 commit comments

Comments
 (0)