There was an error while loading. Please reload this page.
The getDefaultViewport api call is an internal API that returns a viewport object with reasonable defaults given a canvas and image object
function getDefaultViewport(canvas, image);
Parameters:
Returns: viewport object with the image centered and scaled to fit all pixels