Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Unanswered

Drawing on an image in a Canvas app and saving it to SharePoint

(0) ShareShare
ReportReport
Posted on by 2

Hello everyone.

I am looking for advice regarding a functionality I am currently working on.

As part of the app I am developing, I have to give users a way to draw on pictures they have previously taken and save the result in SharePoint. Unless I missed something, it's currently impossible to do so directly with canvas. Therefore, I tried doing the next best thing.

 

1- As these photos have to be stocked with and without alterations, I first send them to my SharePoint.

 

2- I set up a gallery that allows to select the SharePoint pictures and to have them on the app screen, under a drawing control with a transparent background.

 

3- I then added to this the screenshot PCF (https://pcf.gallery/screenshot-pcf/) in the hope of completing this function.

 

Right after I started boasting about my novel solution to my coworkers, I realized that the screenshot PCF does not capture images, and I don't really understand why.

 

Here is a screenshot of my setup with my gallery, drawing, image and screenshot controls

Screenshot Tool 1.PNG

And here is another screen with the screenshot taken by my the previous control and a label with the content of the image file I believe to be in a base64 string format. As you can see on the picture, the big image and the miniatures of my gallery do not appear in the screenshot taken in my app.

Screenshot Tool 2.PNG

 

Finally, here is my question :

Can anyone tell me how to capture images using the screenshot PCF or, even better, has an alternative way to draw on an image in a Canvas app and save the result in SharePoint ?

 

 

A good day to all of you,

Seb

 

  • Seb B Profile Picture
    2 on at
    Re: Drawing on an image in a Canvas app and saving it to SharePoint

    I did, sort of..

    Turns out the library used in the screenshot PCF only recognizes a certain type of images. So if you want it to work, it has to be with a Base64 image. This limitation is quite problematic, unless you're up for modifying the PCF screenshot.

    Now for the good news : you can display a picture you just took with canvas, draw over it and take a screenshot. This should work in most cases.

     

    Hope this helps.

  • infernaldaze Profile Picture
    2 on at
    Re: Drawing on an image in a Canvas app and saving it to SharePoint

    Hi,

     

    Did you find a solution for this? Having the same issue myself.

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 109 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 82 Super User 2025 Season 1

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 72

Overall leaderboard