ShortPixel is an image optimizer that improves website performance by resizing, compressing and serving images from CDN. Optimized images are smaller and visually similar with the original images.
Go to siteThe ShortPixel API is a powerful tool for optimizing images and PDFs to improve website load times and performance without sacrificing quality. With the ShortPixel API on Pipedream, you can build automated workflows that trigger image optimization processes, handle optimized data, and integrate this functionality with other apps. Pipedream's serverless platform allows for creating scalable and maintenance-free workflows, turning manual image optimization into automated, seamless operations.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
shortpixel: {
type: "app",
app: "shortpixel",
}
},
async run({steps, $}) {
return await axios($, {
url: `http://api.shortpixel.com/v2/api-status.php`,
params: {
key: `${this.shortpixel.$auth.api_key}`,
},
})
},
})
Automated Website Image Optimization: Set up a workflow where every new image uploaded to your cloud storage (like AWS S3) is automatically sent to ShortPixel for optimization, then the optimized image is saved back in the storage with improved load times for your website's visitors.
Scheduled Bulk Image Optimization: Create a workflow that periodically scans a specific folder in your Google Drive or Dropbox for new images, sends them to ShortPixel for optimization, and then replaces the original with the optimized versions or stores them in a separate "optimized" folder.
Dynamic Email Campaigns with Optimized Images: Integrate ShortPixel in a workflow where images uploaded to a CMS are optimized and then dynamically inserted into outgoing email campaigns via an email service like SendGrid, ensuring fast-loading emails that enhance user engagement and conversion rates.
ShortPixel uses API keys for authentication. When you connect your ShortPixel account, Pipedream securely stores the keys so you can easily authenticate to ShortPixel APIs in both code and no-code steps.
Sign in and copy your API key from the API Keys page.