API Reference > imodeljs-frontend > Rendering > extractImageSourceDimensions extractImageSourceDimensions Function Extract the dimensions of the jpeg or png data encoded in an ImageSource. extractImageSourceDimensions(source: ImageSource): Promise<Point2d> Parameter Type Description source ImageSource The ImageSource containing the binary jpeg or png data. Returns - Promise<Point2d> a Promise resolving to a Point2d of which x corresponds to the integer width of the uncompressed bitmap and y to the height. Defined in core/frontend/src/ImageUtil.ts Line 223 Last Updated: 13 June, 2024