Skip to content

Commit

Permalink
Merge pull request #46 from imgix/Updates-for-trim-alpha
Browse files Browse the repository at this point in the history
[SUPPORT-1216] Updates for trim-alpha and trim=alpha
  • Loading branch information
vuryanh authored Jan 15, 2025
2 parents db69dc0 + cc54e8f commit f3896af
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "imgix-url-params",
"version": "11.27.1",
"version": "11.28.0",
"homepage": "https://github.com/imgix/imgix-url-params",
"authors": ["Jason Eberle <[email protected]>"],
"description": "Organized, machine-friendly documentation of imgix's URL parameters",
Expand Down
27 changes: 25 additions & 2 deletions dist/parameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}(this, function () {

return {
"version": "11.27.1",
"version": "11.28.0",
"parameters": {
"ar": {
"display_name": "aspect ratio",
Expand Down Expand Up @@ -3396,6 +3396,28 @@ return {
"url": "https://docs.imgix.com/apis/rendering/fill/transparency",
"short_description": "Adds checkerboard behind images which support transparency."
},
"trim-alpha": {
"display_name": "trim alpha",
"category": "trim",
"available_in": [
"url",
"graph"
],
"expects": [
{
"type": "number",
"suggested_range": {
"min": 0,
"max": 255
}
}
],
"depends": [
"trim=alpha"
],
"url": "https://docs.imgix.com/apis/rendering/trim/trim-alpha",
"short_description": "Specifies a trim alpha on a trim operation."
},
"trim-color": {
"display_name": "trim color",
"category": "trim",
Expand Down Expand Up @@ -3532,7 +3554,8 @@ return {
"type": "string",
"possible_values": [
"auto",
"color"
"color",
"alpha"
]
}
],
Expand Down
27 changes: 25 additions & 2 deletions dist/parameters.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "11.27.1",
"version": "11.28.0",
"parameters": {
"ar": {
"display_name": "aspect ratio",
Expand Down Expand Up @@ -3380,6 +3380,28 @@
"url": "https://docs.imgix.com/apis/rendering/fill/transparency",
"short_description": "Adds checkerboard behind images which support transparency."
},
"trim-alpha": {
"display_name": "trim alpha",
"category": "trim",
"available_in": [
"url",
"graph"
],
"expects": [
{
"type": "number",
"suggested_range": {
"min": 0,
"max": 255
}
}
],
"depends": [
"trim=alpha"
],
"url": "https://docs.imgix.com/apis/rendering/trim/trim-alpha",
"short_description": "Specifies a trim alpha on a trim operation."
},
"trim-color": {
"display_name": "trim color",
"category": "trim",
Expand Down Expand Up @@ -3516,7 +3538,8 @@
"type": "string",
"possible_values": [
"auto",
"color"
"color",
"alpha"
]
}
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "imgix-url-params",
"version": "11.27.1",
"version": "11.28.0",
"description": "Organized, machine-friendly documentation of imgix's URL parameters",
"main": "dist/manifest.json",
"scripts": {
Expand Down

0 comments on commit f3896af

Please sign in to comment.