Documentation
On this page

Function · Desktop Services

getImageDimensions

Reads pixel dimensions from a packaged asset, local file, or PNG data URI.

@sharpts/gui 0.0.0-local · SharpTS 7c6010104a43

Signature

TypeScript
getImageDimensions(source: string): Promise<ImageDimensions>

Parameters

NameTypeDescription
sourcestring

Returns

Promise<ImageDimensions>

Source

SharpTS.Gui.Sdk/GuiPackage/runtime.ts:1404 at SharpTS revision 7c6010104a43c34d80e9d44704cf179bc4f5b8e0.