Blog

New API feature: Image Flipping

New API feature: Image Flipping

Today, we have pushed a quick and simple update to our image processing API - Image Flipping. With that operation you can flip (or mirror) your images horizontally, vertically or both. We have also updated all our official integrations so you can make use of image flipping right away.

A newly introduced top-level flip hash takes two, self explanatory, boolean parameters: horizontal and vertical:

{
    "flip": {
        "horizontal": true,
        "vertical": true
    }
}

Here’s a quick example of image flipping from within our Node integration:

const Optidash = require("optidash");

/**
* Instantiate `opti`
*/

const opti = new Optidash("your-api-key");

/**
* Provide a publicly available image URL with fetch(string) method
* and flip the image horizontally
*/

opti
    .fetch("https://www.website.com/image.jpg")
    .flip({
        horizontal: true
    })
    .toJSON((err, meta) => {
        if (err) {
            return console.log(err);
        }
    });

Have questions about using image flipping or requests for other features? Do not hesitate to contact us anytime.

Ready to try Optidash?

Start optimizing your images smarter. Integrate in minutes.

Create Free Account Get In Touch

This website uses cookiesBy using Optidash, you agree to our Cookie Policy.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.