Get the media image parameters of height, width and other properties in custom block Grid preview

You need to request the media item entity through the API to get its properties. The Backoffice has a repository for that:

import { UmbMediaDetailRepository } from '@umbraco-cms/backoffice/media';

mediaRepository = new UmbMediaDetailRepository(this);

const {data: image} = await this.mediaRepository.requestByUnique(mediaKey)
console.log(image);