The Photo API for developers: Resize, compress, sharpen, blur and transform photos at scale.
Go to siteimport { axios } from "@pipedream/platform"
export default defineComponent({
props: {
change_photos: {
type: "app",
app: "change_photos",
}
},
async run({steps, $}) {
const data = {
"url": `https://pipedream.com/s.v0/app_13GhYE/logo/orig`,
"grayscale": true,
}
return await axios($, {
method: "post",
url: `https://www.change.photos/api/change`,
headers: {
Authorization: `Bearer ${this.change_photos.$auth.api_key}`,
"content-type": `application/json`,
"accept": `application/json`,
},
data,
})
},
})
Transforms an image with various effects and optimizations. See the documentation
change.photos uses API keys for authentication. When you connect your change.photos account, Pipedream securely stores the keys so you can easily authenticate to change.photos APIs in both code and no-code steps.