You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
content: "Supported formats: JPEG, PNG, GIF, WEBP, BMP\nMaximum file size: 16 MB\nMinimum dimensions: 50 x 50 (smaller images may not be able to generate alt text).",
17
16
},
18
17
async: {
19
-
propDefinition: [
20
-
alttextify,
21
-
"async",
22
-
],
18
+
type: "boolean",
19
+
label: "Async",
20
+
description: "Whether to add the image in the background or immediately (synchronously). If async is set to true, the API response will always be successful with an empty response body.",
21
+
default: false,
23
22
},
24
23
image: {
25
24
type: "string",
26
-
label: "Image Path",
27
-
description: "The path to the image file in the `/tmp` directory. [See the documentation on working with files](https://pipedream.com/docs/code/nodejs/working-with-files/#writing-a-file-to-tmp)",
25
+
label: "Image",
26
+
description: "The URL of the file or path to the file saved to the `/tmp` directory. [See the documentation on working with files](https://pipedream.com/docs/code/nodejs/working-with-files/#writing-a-file-to-tmp)",
28
27
},
29
28
lang: {
30
-
propDefinition: [
31
-
alttextify,
32
-
"lang",
33
-
],
29
+
type: "string",
30
+
label: "Language",
31
+
description: "The language for the alt text. Supported language codes are accepted. If not provided, the account's default language is used.",
32
+
default: "en",
34
33
},
35
34
maxChars: {
36
-
propDefinition: [
37
-
alttextify,
38
-
"maxChars",
39
-
],
35
+
type: "integer",
36
+
label: "Max Characters",
37
+
description: "Maximum length of the generated alt text.",
40
38
},
41
39
assetId: {
42
-
propDefinition: [
43
-
alttextify,
44
-
"assetId",
45
-
],
40
+
type: "string",
41
+
label: "Asset ID",
42
+
description: "The unique identifier for the asset.",
43
+
optional: true,
46
44
},
47
45
keywords: {
48
-
propDefinition: [
49
-
alttextify,
50
-
"keywords",
51
-
],
46
+
type: "string[]",
47
+
label: "Keywords",
48
+
description: "List of keywords/phrases for SEO-optimized alt text. Only one or two will be used per alt text, but all are considered. Keywords must be in English, even for alt text in other languages.",
49
+
optional: true,
52
50
},
53
51
ecommerceRunOCR: {
54
-
propDefinition: [
55
-
alttextify,
56
-
"ecommerceRunOCR",
57
-
],
52
+
type: "boolean",
53
+
label: "Ecommerce Run OCR",
54
+
description: "Flag to indicate if OCR should be run on the product.",
58
55
},
59
56
ecommerceProductName: {
60
-
propDefinition: [
61
-
alttextify,
62
-
"ecommerceProductName",
63
-
],
57
+
type: "string",
58
+
label: "Ecommerce Product Name",
59
+
description: "The name of the product in the image.",
60
+
optional: true,
64
61
},
65
62
ecommerceProductBrand: {
66
-
propDefinition: [
67
-
alttextify,
68
-
"ecommerceProductBrand",
69
-
],
63
+
type: "string",
64
+
label: "Ecommerce Product Brand",
65
+
description: "The brand of the product in the image.",
66
+
optional: true,
70
67
},
71
68
ecommerceProductColor: {
72
-
propDefinition: [
73
-
alttextify,
74
-
"ecommerceProductColor",
75
-
],
69
+
type: "string",
70
+
label: "Ecommerce Product Color",
71
+
description: "The color of the product in the image.",
72
+
optional: true,
76
73
},
77
74
ecommerceProductSize: {
78
-
propDefinition: [
79
-
alttextify,
80
-
"ecommerceProductSize",
81
-
],
75
+
type: "string",
76
+
label: "Ecommerce Product Size",
77
+
description: "The size of the product in the image.",
Copy file name to clipboardExpand all lines: components/alttextify/alttextify.app.mjs
+15-54Lines changed: 15 additions & 54 deletions
Original file line number
Diff line number
Diff line change
@@ -4,63 +4,24 @@ export default {
4
4
type: "app",
5
5
app: "alttextify",
6
6
propDefinitions: {
7
-
async: {
8
-
type: "boolean",
9
-
label: "Async",
10
-
description: "whether to add the image in the background or immediately (synchronously). If async is set to true, the API response will always be successful with an empty response body.",
11
-
default: false,
12
-
},
13
-
lang: {
14
-
type: "string",
15
-
label: "Language",
16
-
description: "The language for the alt text. Supported language codes are accepted. If not provided, the account's default language is used.",
17
-
default: "en",
18
-
},
19
-
maxChars: {
20
-
type: "integer",
21
-
label: "Max Characters",
22
-
description: "Maximum length of the generated alt text.",
23
-
},
24
7
assetId: {
25
8
type: "string",
26
9
label: "Asset ID",
27
-
description: "The unique identifier for the asset.",
28
-
optional: true,
29
-
},
30
-
keywords: {
31
-
type: "string[]",
32
-
label: "Keywords",
33
-
description: "List of keywords/phrases for SEO-optimized alt text. Only one or two will be used per alt text, but all are considered. Keywords must be in English, even for alt text in other languages.",
34
-
optional: true,
35
-
},
36
-
ecommerceRunOCR: {
37
-
type: "boolean",
38
-
label: "Ecommerce Run OCR",
39
-
description: "Flag to indicate if OCR should be run on the product.",
40
-
},
41
-
ecommerceProductName: {
42
-
type: "string",
43
-
label: "Ecommerce Product Name",
44
-
description: "The name of the product in the image.",
45
-
optional: true,
46
-
},
47
-
ecommerceProductBrand: {
48
-
type: "string",
49
-
label: "Ecommerce Product Brand",
50
-
description: "The brand of the product in the image.",
51
-
optional: true,
52
-
},
53
-
ecommerceProductColor: {
54
-
type: "string",
55
-
label: "Ecommerce Product Color",
56
-
description: "The color of the product in the image.",
57
-
optional: true,
58
-
},
59
-
ecommerceProductSize: {
60
-
type: "string",
61
-
label: "Ecommerce Product Size",
62
-
description: "The size of the product in the image.",
63
-
optional: true,
10
+
description: "The ID of the asset for retrieving alt text.",
0 commit comments