Get map dimensions for map saved from map server
After implementing SLAM using gmapping, the map was saved using map_server package, as a pgm file and a yaml file, I need to know the dimensions of the objects in the map and the map itself, how do I achieve this?