new ImageGateway(options)
API for retrieving image thumbnails for a given page
Parameters:
Name | Type | Description |
---|---|---|
options |
Object | Configuration options |
Methods
(static) findSizeBucket(size) → {number}
Gets the first size larger than or equal to the provided size
Parameters:
Name | Type | Description |
---|---|---|
size |
number |
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 |
Returns:
with the image info
- Type
- jQuery.Deferred