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 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,980 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

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard