How to Change Image DPI (Dots per Inch) in Power Automate

Cloudmersive
4 min readJan 17, 2025

--

The DPI (Dots per Inch) of an image doesn’t affect its display quality on our screen, but it does impact the way an image prints. Higher DPI values will generally result in a slightly more crisp, higher-quality printed image, while lower DPI values will stretch the image out, resulting in a slightly lower-quality printed image.

Changing Image DPI in Power Automate

Like most file processing operations, changing image DPI is easy to handle in Power Automate when the need arises. We can simply use a specialized Cloudmersive Document Conversion connector action to set custom DPI values for any image and then save the result (or overwrite the original image) in our folder system.

Let’s take a quick look at an example flow that changes the DPI of an image using the Cloudmersive Document Conversion connector in Power Automate.

Create an Instant cloud flow

Since we’re only changing the DPI of a single image, we’ll start by creating an Instant cloud flow.

Add a Get file content action

We’ll begin our flow with a Get file content action that retrieves our image file contents.

Search for Cloudmersive connectors

Next, we’ll add a new action and search for Cloudmersive connectors.

We’re looking for the Cloudmersive Document Conversion connector (shown above) with the green logo.

Locate the Change image DPI action

Once we find it, we’ll click “See more” to view the full actions list, and we’ll search for an action called Change image DPI (the actions list is organized alphabetically, so we’ll notice this option towards the top).

Create a Cloudmersive connection

After we select this action, we’ll create our Cloudmersive connection. This requires an API key, which we can get for free by creating a free account on the Cloudmersive website. For reference, free API keys allow up to 800 API calls/month with no commitment, and I’m using a free API key in this walkthrough.

Configure the Change image DPI request

To configure our request parameters, we’ll first provide our image file bytes & a file name (this can be any string) in the bottom two parameters.

After that, we’ll enter a custom DPI value in the New DPI parameter. The image I’m using is currently set at 300 DPI; I’m interested in printing it a bit larger at the expense of some quality, so I’m reducing the DPI to 200.

Create (or update) the image

Now we’ll add a Create file action to our flow (alternatively, we can use an Update file action if we’d like to overwrite the original image instead of creating a new one).

We’ll use OutputContent from our Change image DPI action to set the contents of our new file.

Run a test

We’ll now save and test our flow.

Just like that, we’ve adjusted our image DPI!

Assuming our original DPI was 300 (like my example), when we print this image, it’ll be around 50% larger than the original image would’ve been with the original DPI setting.

Conclusion

In this article, we learned how to set up a Power Automate flow that changes the DPI of an image using a combination of OneDrive and Cloudmersive Document Conversion connectors.

As a quick note, we can perform the identical process for files in a SharePoint folder by using comparable SharePoint connector actions (i.e., Get file content and Create file).

--

--

Cloudmersive
Cloudmersive

Written by Cloudmersive

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

No responses yet