with imgix and BurstyAI?
The imgix API offers dynamic image processing and optimization. You can manipulate images on-the-fly by changing query parameters in the image URL, enabling a myriad of transformations like resizing, cropping, adjusting quality, format conversion, and applying filters. Integrating imgix with Pipedream allows you to automate workflows that involve image manipulation, optimization for different devices and contexts, and the dynamic delivery of images.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
imgix: {
type: "app",
app: "imgix",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.imgix.com/api/v1/sources`,
headers: {
Authorization: `Bearer ${this.imgix.$auth.api_key}`,
"Accept": `application/json`,
"Content-Type": `application/vnd.api+json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
burstyai: {
type: "app",
app: "burstyai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.burstyai.com/burstyai/storage/url`,
headers: {
Authorization: `Bearer ${this.burstyai.$auth.api_key}`,
"accept": `application/json`,
},
params: {
fileList: `xxx/yyy.jpg`, //Comma-separated s3 object IDs used to fetch corresponding download URLs,
//e.g. for a s3 object ID as @url{xxx/yyy.jpg}@, the parameter value shall
//be xxx/yyy.jpg only, excluding @url{}@ is a must.
},
})
},
})