Function which takes an image file and returns its scaled down thumbnail.
A callback is provided and first called for the URL of the original image, then for the thumbnail URL.
Parameters
image: File
Default value maxWidth: number = 400
Default value maxHeight: number = 400
Returns Promise<string>
safeGet
safeGet(object: object, accessor: string | Array<string>, defaultValue?: any): any
Safely retrieves a value from a nested object. Returns defaultValue if the key is not present in the object.
Return a promise that resolves once an event is triggered.