web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Adjust maximum image size
Power Apps
Suggested Answer

Adjust maximum image size

(2) ShareShare
ReportReport
Posted on by 353
Hi All,
 
I have an application to generate field visit reports. I upload photographs in several image boxes, which I then send embedded in the body of an email using Power Automate and HTML code.
The problem is that sometimes when the images are large, an error occurs. Is it possible to somehow take the photographs that are uploaded and reduce their size so that it is the maximum allowed by P. Apps?.
 
Thanks,
 
Francisco
Categories:
I have the same question (0)
  • Suggested answer
    Trait007 Profile Picture
    303 on at

    Yes, you can reduce the size of uploaded images in PowerApps before sending them via email. Here are a few approaches:

     

    1. Use PowerApps Inbuilt Compression (Recommended)

     

    PowerApps provides an inbuilt function to resize images before saving or sending them.

     

    •  

      When using an Add Picture control (Image1), set its OnChange property to:

       
      ClearCollect(
          colCompressedImages, 
          { 
              ImageData: UploadedImage1.Image,
              CompressedImage: Substitute(JSON(UploadedImage1.Image, JSONFormat.IncludeBinaryData), """", "")
          }
      )
      

    •  

      Use CompressedImage in Power Automate instead of the raw image.



    •  
     
     

    2. Reduce Image Resolution Before Sending

     

    Instead of embedding full-sized images, you can adjust their size using the Resize function:

     
    Resize(UploadedImage1, 500, 500)
    
     

    This resizes the image to 500x500 pixels, reducing file size.

     
     

    3. Convert Image to Base64 with Lower Quality

     

    If using JSON format to send images, reduce image quality:

     
    JSON(Resize(UploadedImage1, 500, 500), JSONFormat.IncludeBinaryData)
    
     

    This keeps the image under control while keeping it embeddable in HTML.

     
     

    4. Use Power Automate for Further Compression

     

    If images are still too large:

     

    • Save them to OneDrive/SharePoint first.

    • Use a Power Automate "Compress Image" action (if using AI Builder or third-party APIs).

    • Retrieve the compressed version for email.


    •  

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 493 Most Valuable Professional

#2
11manish Profile Picture

11manish 479

#3
Haque Profile Picture

Haque 328

Last 30 days Overall leaderboard