ROThumbnailGenerator icon indicating copy to clipboard operation
ROThumbnailGenerator copied to clipboard

Will be the web site link ever supported?

Open yarodevuci opened this issue 9 years ago • 1 comments

yarodevuci avatar Nov 17 '16 21:11 yarodevuci

Yeah this would be a nice extension. Maybe I am gonna add a solution for that. You could already try to write your own implementation. With the following code you can add your own implementations:

class WebImageThumbnailGenerator : ROThumbnailGenerator {

    var supportedExtensions:Array<String> = ["png", "jpg", "jpeg"]

    func getThumbnail(url:NSURL) -> UIImage {
        // Here fetch the image and return it
    }
}

// Add it
ROThumbnail.sharedInstance.addThumbnailGenerator(webImageThumbnailGenerator)

prine avatar Nov 22 '16 08:11 prine