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

Notifications

Announcements

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

(1) ShareShare
ReportReport
Posted on by 351
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
    VASANTH KUMAR BALMADI Profile Picture
    266 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard