Class: ImageGateway

ImageGateway(options)

new ImageGateway(options)

API for retrieving image thumbnails for a given page

Parameters:
Name Type Description
options Object

Configuration options

Source:

Methods

(static) findSizeBucket(size) → {number}

Gets the first size larger than or equal to the provided size

Parameters:
Name Type Description
size number
Source:
Returns:
Type
number

getThumb(title) → {jQuery.Deferred}

Get thumbnail via the API and cache it. Return the result from the cache if exists.

Parameters:
Name Type Description
title string

Url of image

Source:
Returns:

with the image info

Type
jQuery.Deferred