This is a migrated thread and some comments may be shown as answers.

ImageBrowserController not working

3 Answers 240 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 30 Sep 2016, 06:06 PM

The current examples available online to implement an ImageBrowserController by extending EditorImageBrowserController do not work. Is there any documentation available for hooking this up for .NET Core?

 

Thank you.

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 04 Oct 2016, 01:43 PM
Hi Adam,

This is a known limitation discussed in this help article:

The Thumbnails view of the ImageBrowser is not supported because the System.Drawing namespace is not part of ASP.NET Core. However, a third-party library can be used for the server-side processing of images.


Regards,
Rumen
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Baracskai
Top achievements
Rank 1
answered on 24 Apr 2019, 01:48 PM

Hello,

Now the System.Drawing namespace can be installed via Nuget. ( Install-Package System.Drawing.Common )

I try to override the generate thumbnail method, but I cannot find example from the expected response. I try lot of version, but I cannot find the proper solution. The thumbnail image not showing, I see the loader forever.

This is one of my attempt (I use fix path for testing):

public override IActionResult Thumbnail(string path)
   {
       VirtualFileResult f = File("http://localhost:57939/TelerikUp/le_thumb.jpg", "application/octet-stream");
       return f;
   }

 

Thank you for help!

0
Joana
Telerik team
answered on 29 Apr 2019, 06:42 AM
Hello Baracskai,

The Thumbnail configuration makes separate requests for each image and the response should contain the thumbnail image file. You could find an example implementation below: 

https://github.com/telerik/ui-for-aspnet-mvc-examples/blob/master/editor/database-image-browser/DatabaseImageBrowser/Controllers/ImageBrowserController.cs#L73

In addition, you might find useful the following article, as well as, our demo that shows the ImageBrowser in action:

https://docs.telerik.com/aspnet-core/html-helpers/editors/editor/image-browser

https://demos.telerik.com/aspnet-core/editor/imagebrowser

Regards,
Joana
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Editor
Asked by
Adam
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Baracskai
Top achievements
Rank 1
Joana
Telerik team
Share this question
or