'Specify "Save as image" dimensions for Word processing

I have created a heatmap with leaflet, which I would like to export as image (.png) with the following dimensions:

  • Length = 17.5cm
  • Width = 5cm

This image will ultimately be pasted into a word document. I understand that there is the option to adjust the aspect ratio but not sure if there are alternative solutions.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source