@@ -61,6 +61,16 @@ This will, in general, enhance the clarity of the image by bringing out darker d
61
61
| ----- | :---: | :------: | :-------: | :-------: | :-----: |
62
62
| sigma | Float | x | 0.3 | 1000 | n/a |
63
63
64
+ ### ` Colorspace `
65
+
66
+ Output colourspace e.g. srgb, rgb, cmyk, lab, b-w ...
67
+
68
+ #### ** Options**
69
+
70
+ | Key | Type | Optional | Min Value | Max Value | Default |
71
+ | ----- | :------------------------------------------------------------------: | :------: | :-------: | :-------: | :-----: |
72
+ | width | Enum([ Colorspace] ( /storage-image-processing-api/types/interpolator ) ) | x | n/a | n/a | n/a |
73
+
64
74
### ` Composite `
65
75
66
76
Composite an image over the base image. The image to composite must be the same size
@@ -74,13 +84,13 @@ If both `top` and `left` options are provided, they take precedence over `gravit
74
84
| Key | Type | Optional | Min Value | Max Value | Default |
75
85
| ------------- | :----------------------------------------------------------: | :------: | :-------: | :-------: | :-----: |
76
86
| input | string | x | n/a | n/a | n/a |
77
- | blend | Enum([ Blend] ( /storage-image-processing-api/types/blend ) ) | ✓ | n/a | n/a | n/a |
87
+ | blend | Enum([ Blend] ( /storage-image-processing-api/types/blend ) ) | x | n/a | n/a | n/a |
78
88
| gravity | Enum([ Gravity] ( /storage-image-processing-api/types/gravity ) ) | ✓ | n/a | n/a | n/a |
79
89
| top | Integer | ✓ | n/a | n/a | n/a |
80
90
| left | Integer | ✓ | n/a | n/a | n/a |
81
91
| tile | Boolean | ✓ | n/a | n/a | n/a |
82
- | premultiplied | string | ✓ | n/a | n/a | n/a |
83
- | density | Integer | ✓ | n/a | n/a | 72 |
92
+ | premultiplied | string | x | n/a | n/a | n/a |
93
+ | density | Integer | x | n/a | n/a | 72 |
84
94
85
95
### ` Convolve `
86
96
@@ -142,8 +152,8 @@ Zero-indexed offset in pixels from the top edge.
142
152
| ------ | :-----: | :------: | :-------: | :-------: | :-----: |
143
153
| top | Integer | ✓ | n/a | n/a | 0 |
144
154
| left | Integer | ✓ | n/a | n/a | 0 |
145
- | width | Integer | x | n/a | n/a | 0 |
146
- | height | Integer | x | n/a | n/a | 0 |
155
+ | bottom | Integer | ✓ | n/a | n/a | 0 |
156
+ | right | Integer | ✓ | n/a | n/a | 0 |
147
157
148
158
### ` Flatten `
149
159
@@ -193,7 +203,7 @@ when applying a gamma correction.
193
203
194
204
| Key | Type | Optional | Min Value | Max Value | Default |
195
205
| -------- | :----: | :------: | :-------: | :-------: | :-----: |
196
- | gamma | String | ✓ | 1.0 | 3.0 | 1.0 |
206
+ | gamma | String | x | 1.0 | 3.0 | 1.0 |
197
207
| gammaOut | String | ✓ | 1.0 | 3.0 | n/a |
198
208
199
209
### ` Grayscale `
@@ -226,7 +236,7 @@ Apply the linear formula a \* input + b to the image (levels adjustment)
226
236
227
237
| Key | Type | Optional | Min Value | Max Value | Default |
228
238
| --- | :---: | :------: | :-------: | :-------: | :-----: |
229
- | a | Float | ✓ | n/a | n/a | 1 .0 |
239
+ | a | Float | ✓ | n/a | n/a | 0 .0 |
230
240
| b | Float | ✓ | n/a | n/a | 0.0 |
231
241
232
242
### ` Median `
@@ -241,9 +251,9 @@ e.g. a size of 15 on a 500x500 image adds around 1.5s to processing time.
241
251
242
252
#### ** Options**
243
253
244
- | Key | Type | Optional | Min Value | Max Value | Default |
245
- | ---- | :----- : | :------: | :-------: | :-------: | :-----: |
246
- | size | Integer | ✓ | 1 | 1000 | 3 |
254
+ | Key | Type | Optional | Min Value | Max Value | Default |
255
+ | ---- | :---: | :------: | :-------: | :-------: | :-----: |
256
+ | size | Float | ✓ | 1 | 1000 | 3 |
247
257
248
258
### ` Modulate `
249
259
@@ -260,12 +270,9 @@ Transforms the image using brightness, saturation and hue rotation.
260
270
261
271
#### ** Options**
262
272
263
- | Key | Type | Optional | Min Value | Max Value | Default |
264
- | ---------- | :-----: | :------: | :-------: | :-------: | :-----: |
265
- | brightness | Integer | ✓ | 1 | 1000 | 3 |
266
- | saturation | Integer | ✓ | 1 | 1000 | 3 |
267
- | hue | Integer | ✓ | 1 | 1000 | 3 |
268
- | lightness | Integer | ✓ | 1 | 1000 | 3 |
273
+ | Key | Type | Optional | Min Value | Max Value | Default |
274
+ | ---- | :---: | :------: | :-------: | :-------: | :-----: |
275
+ | size | Float | ✓ | 1 | 1000 | 3 |
269
276
270
277
### ` Negate `
271
278
@@ -304,16 +311,12 @@ How the image should be resized to fit both provided dimensions.
304
311
305
312
#### ** Options**
306
313
307
- | Key | Type | Optional | Min Value | Max Value | Default |
308
- | ------------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------: | :-------: | :-------: | :-----: |
309
- | width | Enum([ operationResizeFit] ( /storage-image-processing-api/types/operationResizeFit ) ) | ✓ | n/a | n/a | n/a |
310
- | height | Enum([ operationResizeFit] ( /storage-image-processing-api/types/operationResizeFit ) ) | ✓ | n/a | n/a | n/a |
311
- | fit | Enum([ operationResizeFit] ( /storage-image-processing-api/types/operationResizeFit ) ) | ✓ | n/a | n/a | n/a |
312
- | position | Enum([ operationResizePosition] ( /storage-image-processing-api/types/operationResizePosition ) ) / Enum([ operationResizeStrategy] ( /storage-image-processing-api/types/operationResizeStrategy ) ) / / Enum([ imageGravity] ( /storage-image-processing-api/types/imageGravity ) ) | ✓ | n/a | n/a | n/a |
313
- | kernel | Enum([ operationResizeKernel] ( /storage-image-processing-api/types/operationResizeKernel ) ) | ✓ | n/a | n/a | n/a |
314
- | background | String | ✓ | n/a | n/a | n/a |
315
- | withoutEnlargement | Boolean | ✓ | n/a | n/a | n/a |
316
- | fastShrinkOnLoad | Boolean | ✓ | n/a | n/a | n/a |
314
+ | Key | Type | Optional | Min Value | Max Value | Default |
315
+ | ----------------------- | :------------------------------------------------------------------------------------------: | :------: | :-------: | :-------: | :-----: |
316
+ | operationResizeFit | Enum([ operationResizeFit] ( /storage-image-processing-api/types/operationResizeFit ) ) | x | n/a | n/a | n/a |
317
+ | operationResizePosition | Enum([ operationResizePosition] ( /storage-image-processing-api/types/operationResizePosition ) ) | x | n/a | n/a | n/a |
318
+ | operationResizeKernel | Enum([ operationResizeKernel] ( /storage-image-processing-api/types/operationResizeKernel ) ) | x | n/a | n/a | n/a |
319
+ | operationResizeStrategy | Enum([ operationResizeStrategy] ( /storage-image-processing-api/types/operationResizeStrategy ) ) | x | n/a | n/a | n/a |
317
320
318
321
### ` Rotate `
319
322
@@ -337,7 +340,7 @@ The use of rotate implies the removal of the EXIF Orientation tag, if any.
337
340
338
341
| Key | Type | Optional | Min Value | Max Value | Default |
339
342
| ----- | :-----: | :------: | :-------: | :-------: | :-----: |
340
- | angle | Integer | ✓ | n/a | n/a | auto |
343
+ | angle | Integer | ✓ | n/a | n/a | n/a |
341
344
342
345
### ` Sharpen `
343
346
@@ -359,14 +362,17 @@ Separate control over the level of sharpening in "flat" and "jagged" areas is av
359
362
360
363
### ` Text `
361
364
362
- A string of text that will be rendered over your image.
365
+ Sharpen the image. When used without parameters, performs a fast, mild sharpen of the output image.
366
+
367
+ When a sigma is provided, performs a slower, more accurate sharpen of the L channel in the LAB colour space.
368
+
369
+ Separate control over the level of sharpening in "flat" and "jagged" areas is available.
363
370
364
371
#### ** Options**
365
372
366
373
| Key | Type | Optional | Min Value | Max Value | Default |
367
374
| --------------- | :--------------------------------------------------------------: | :------: | :-------: | :-------: | :-------------: |
368
- | value | String | x | n/a | n/a | 30px sans-serif |
369
- | font | String | ✓ | n/a | n/a | 30px sans-serif |
375
+ | font | String | ✓ | 0.01 | 1000 | 30px sans-serif |
370
376
| textAlign | Enum([ textAlign] ( /storage-image-processing-api/types/textAlign ) ) | ✓ | n/a | n/a | n/a |
371
377
| textColor | Integer | ✓ | n/a | n/a | white |
372
378
| backgroundColor | String | ✓ | n/a | n/a | n/a |
@@ -377,7 +383,7 @@ A string of text that will be rendered over your image.
377
383
| borderColor | String | ✓ | n/a | n/a | black |
378
384
| wrap | Boolean | ✓ | n/a | n/a | n/a |
379
385
| maxWidth | Integer | ✓ | n/a | n/a | n/a |
380
- | blend | Enum([ Blend] ( /storage-image-processing-api/types/blend ) ) | ✓ | n/a | n/a | over |
386
+ | blend | Enum([ Blend] ( /storage-image-processing-api/types/blend ) ) | ✓ | n/a | n/a | 0 |
381
387
| gravity | Enum([ Gravity] ( /storage-image-processing-api/types/gravity ) ) | ✓ | n/a | n/a | n/a |
382
388
| top | Integer | ✓ | n/a | n/a | n/a |
383
389
| left | Integer | ✓ | n/a | n/a | n/a |
@@ -417,7 +423,7 @@ An alpha channel if present will be unchanged by the operation.
417
423
418
424
| Key | Type | Optional | Min Value | Max Value | Default |
419
425
| --------- | :-----: | :------: | :-------: | :-------: | :-----: |
420
- | threshold | Integer | ✓ | 0 | n/a | 10 |
426
+ | threshold | Integer | ✓ | 0 | n/a | n/a |
421
427
422
428
export const EXTENSION_URL =
423
429
' https://europe-central2-dev-extensions-testing.cloudfunctions.net/ext-storage-image-processing-api-ri3r-handler/process' ;
0 commit comments