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 Automate / How to resize/compress...
Power Automate
Answered

How to resize/compress SharePoint list attachment images in Power Automate

(0) ShareShare
ReportReport
Posted on by 3

Hi Community,

 

We’re looking for a supported way to resize or compress images inside Power Automate so our flow can safely store them in SQL without exceeding the Service Bus message size limit (~8–8.5 MB).

 

End-to-end setup

 

  •  

    Power Apps (canvas app): users take photos in the app.


  •  

    SharePoint Online: the app writes to a SharePoint list; photos are saved as list attachments on each item (not a document library).


  •  

    Power Automate (cloud flow): we read the attachments, get file content, convert images to base64, and call a SQL stored procedure.


  •  

    SQL / Reporting: images land in SQL and are used in Paginated Reports.



  •  
 

The problem

 

Phone photos can be modest as files (e.g., ~3.26 MB), but once they pass through the flow they inflate:

 

  •  

    Base64 adds ~33%.


  •  

    Some actions treat content as text/UTF-16, roughly doubling again.

    Result: the payload can exceed ~8–8.5 MB, so the flow fails (often at the SQL step).



  •  
 

What we already tried

 

  •  

    We changed our SQL side to accept varbinary(max) and attempted to pass binary rather than base64. This did not solve it because the payload becomes too large earlier in the flow (before SQL), i.e., during file handling/conversion.


  •  

    We’d like to reduce image size before any step that would push the payload over the limit.



  •  
 

What we’re hoping to find

 

  1.  

    Is there any first-party (Microsoft) way in Power Automate to resize or compress images that are SharePoint list attachmentsbefore we convert/persist them? (Action, expression, or supported API.)


  2.  

    If not natively possible, which third-party connectors are reliable for in-flow image resize/compress (e.g., Encodian, Plumsail, Cloudmersive, Muhimbi)? Any pros/cons or recommended settings (e.g., longest side ~1600 px, JPEG quality 0.6–0.7; avoid upscaling small images).


  3.  

    If the recommended pattern is to move images into a document library (so they become drive items) and then work with Microsoft Graph/SharePoint image renditions or thumbnails, do you have a simple, robust flow pattern for:

     

    •  

      copying list attachments to a library,


    •  

      storing a reference back on the list item, and


    •  

      obtaining a smaller rendition for SQL?



    •  


  4.  
 

Constraints / goals

 

  •  

    Prefer first-party capabilities; we can consider 3rd-party if that’s the only viable route.


  •  

    Keep UX the same (Power Apps → list attachments), unless the library pattern is clearly the supported path.


  •  

    Keep final images < ~3 MB raw so base64/text overhead won’t exceed limits.


  •  

    Final destination is SQL for Paginated Reports.



  •  
 

Any proven patterns, sample flows, or official guidance would be greatly appreciated. Thanks!

Categories:
I have the same question (0)
  • Verified answer
    takolota1 Profile Picture
    4,974 Moderator on at
    If you all have a Microsoft Azure account then you can use a Function App to do this with files & call it with a premium HTTP connector. This template includes something to compress images or pdfs: https://community.powerplatform.com/galleries/gallery-posts/?postid=a5255ced-dc08-f011-bae3-6045bdf03fcb

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard