Declined
Last Updated: 02 Apr 2020 14:11 by ADMIN
Ben Hayat
Created on: 01 Apr 2020 16:24
Category: UI for Blazor
Type: Feature Request
2
image component

I'd like to request a native Blazor Image Component that allows to provide different parameters to control the image.

This could also help to connect it to the upload component, for user to see the image while still in browser and make some changes, i.e resizing, cropping, Black/White, before sending it to server to be stored.

Thanks!
..Ben

1 comment
ADMIN
Marin Bratanov
Posted on: 02 Apr 2020 14:11

Hello Ben,

If you need a component that exposes parameters to control an image, you should wrap a simple <img /> tag and expose the logic you need. I do not see this as a component that we should be working on, because you can us the standard razor (blazor) logic on the parameters of the standard <img /> tag.

On connecting to an Upload component - the Upload component sends a file to a server endpoint, it is not a file selector dialog that puts the file in the Blazor app code. If you want such a thing you can take a peek at our examples - we have such a FileSelector implemented for some of our Document Processing demos - you can use it as base for getting the image data into Blazor to do a preview (make sure to also review the related JS Interop). You would then have to upload the file to your server in your own code, though, which would also let you manipulate the image before uploading.

 

Regards,
Marin Bratanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.