We want to to compress / resize images being uploaded from the camera or gallery. For Example If the user uploading the 4MB picture that need to be converted in to 50 KB, Height : 100 CM, Width : 100 CM
Requesting can you please suggest me the best possible options and best practices
Hi MR,
For the source destination I've just created a folder in OneDrive to save the file to be used later.
E.g. /Images/[Your File name].jpg
Regards,
Jonathan
Hi @JonathanTeo ,
I am very new to power automate so is it possible for you to explain a bit more of how you did that? I am not sure what I should put as the file destination for the Upload File from URL action. I would really appreciate your help!
Thank you,
MR
It looks like the end of the URL of the thumbnail generation specifies the max dimensions of the file like this: Published&width=800&height=800
I've played around with changing the values and it seems to work just editing the values and the resulting image will scale to it up to the size of the original. So that can be used to specify whatever dimensions you want for more control over that.
Hi Blake,
If I recall correctly the "Large" thumbnail size has a max resolution of 800 x 800.
We are also using it for a relatively similar use case. In general, the image quality looks decent enough to me for the large sized thumbnail but for the medium/small sizes I find it insufficient for viewing clear details.
You can try it out by generating the thumbnails of different sizes for the same image to test out the quality if it fits your requirements.
Hi @JonathanTeo ,
This solution sounds just what I need, whats the image quality like on the other end for the receiver of the email? We will be sending images of hazards or things that need repair so will need to retain some quality.
Look forward to hearing your response.
Cheers
B
Although this is an old thread, I've found a way to compress the images by using the Get File Thumbnail action connector.
You can use the "Get File Thumbnail" to generate a URL Dynamic content.
From here you can use the "Upload file from URL" action to generate a smaller down-sized image.
You can then get the file content from the uploaded file and do any other actions you require.
Although there's some limitations with specifying the exact size you want, looks like you can choose only a few specific thumbnail sizes.
Using this you should be able to downsize most images to a manageable size without premium actions or third party connectors.
Hi there,
You could do this using a connect, like Encodian:
https://support.encodian.com/hc/en-gb/articles/360018591034-Resize-an-Image
Or, you could achieve this through Power Automate Desktop. Either way, you'll end up needing an Encodian license (if you are using more than a certain # per month) or a premium license (for unattended bots.)
Are these choices feasible?
Cheers,
Rhia