Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Can i call resize from code for an external image?

$
0
0
If you have the image and want to serve it using your own url and not through media(...)?h=100&action=crop, then you're a bit on your own, since the Composite.Core.WebClient.Media.ImageResizer.GetResizedImage expects an IMediaFile instance.

What you can do is to create a class that implements the IMediaFile interface, just like this class does and then create an instance of that classpass to Composite.Core.WebClient.Media.ImageResizer.GetResizedImagemage.

I can't promise that it will work, but its worth a try.

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>