Skip to main content

Notifications

Community site session details

Community site session details

Session Id : m+O7D5f2hMduOyueR/eFom
Power Automate - Using Flows
Unanswered

convert HEIC to JPG

Like (0) ShareShare
ReportReport
Posted on 18 Nov 2022 16:18:05 by

Hi, i want to convert .heic files to .jpg files using power automate.

I use therefore the these steps:

  1. When a file is created
  2. Convert file (to JPG)
  3. Create file

The converting process is working, but i only get something like a preview file (Input ~3MB HEIC file, Output ~90KB jpg File).
I get the same bad quality if i use .png or .jpg files with similar original file size.
So there is a huge image quality loss, are there any settings how good the quality should be, or how I can influence the image quality.

  • DerekMStrout Profile Picture
    2 on 06 Jun 2023 at 13:31:16
    Re: convert HEIC to JPG

    Hi there - I am attempting the same conversion process you describe and am also only able to create a 'preview' or thumbnail-sized version of the original HEIC file. I assume that's the "(preview)" part of the Power Automate action Create file using path (preview). Have you found a solution that results in a full-size .JPG file?

  • PowerPyro Profile Picture
    4 on 11 Apr 2023 at 13:27:39
    Re: convert HEIC to JPG

    Hi Nadia-Emily, and thank you for your response. However, I get an error message stating: "The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['headers/x-ms-file-name-encoded']' is of type 'String'. The result must be a valid array." 

    Pictures of the flow and test is attached. What am I doing wrong?

  • nadia-emily Profile Picture
    2 on 07 Apr 2023 at 13:15:58
    Re: convert HEIC to JPG

    Hello,

    You can definitely convert HEIC to JPG files using Power Automate. Here are the steps you can follow:

    1. Begin by creating a new Flow in Power Automate and select the "When a file is created or modified (properties only)" trigger.
    2. Next, select the folder where your HEIC files are stored.
    3. Add an "Apply to each" action and select the "Convert file" action.
    4. In the "Convert file" action, select the "File content" from the "File content" field, and then select "JPEG" as the "Output file type."
    5. Lastly, add an action to save the converted file to your desired location.

    Once you have set up the flow, Power Automate will automatically convert any newly added HEIC files to JPEG format and save them to your desired location. I hope this helps! Let me know if you have any further questions or concerns.

  • PowerPyro Profile Picture
    4 on 20 Jan 2023 at 14:11:08
    Re: convert HEIC to JPG

    Hi! Really interested in how you managed to make this flow. I'm not making much sense of the documentation (yes I am a complete novice). 
    Do you mind sharing your action and expressions for the convert file step?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow
Loading started