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
// throw new Error(`Resource '${this.options.generateImages!.attachmentResource}' not found`);
57
+
// }
58
+
// this.attachmentResource = resource;
59
+
// const field = resource.columns.find(c => c.name === this.options.generateImages!.attachmentFieldName);
60
+
// if (!field) {
61
+
// throw new Error(`Field '${this.options.generateImages!.attachmentFieldName}' not found in resource '${this.options.generateImages!.attachmentResource}'`);
// throw new Error(`Plugin for attachment field '${this.options.attachments!.attachmentFieldName}' not found in resource '${this.options.attachments!.attachmentResource}', please check if Upload Plugin is installed on the field ${this.options.attachments!.attachmentFieldName}`);
69
+
// }
70
+
71
+
// if (!plugin.pluginOptions.storageAdapter.objectCanBeAccesedPublicly()) {
72
+
// throw new Error(`Upload Plugin for attachment field '${this.options.attachments!.attachmentFieldName}' in resource '${this.options.attachments!.attachmentResource}'
73
+
// uses adapter which is not configured to store objects in public way, so it will produce only signed private URLs which can not be used in HTML text of blog posts.
74
+
// Please configure adapter in such way that it will store objects publicly (e.g. for S3 use 'public-read' ACL).
fillFieldsFromImages?: Record<string,string>,// can analyze what is on image and fill fields, typical tasks "find dominant color", "describe what is on image", "clasify to one enum item, e.g. what is on image dog/cat/plant"
8
+
generateImages?: Record<string,string>,// can generate from images or just from another fields, e.g. "remove text from images", "improve image quality", "turn image into ghibli style"
0 commit comments