Set Hightmap resolution while importing custom heightmap texture?

Is it possible to somehow set Heightmap resolution in heightmap importer. For Example I made 129x129 terrain Heightmap in Blender, I want it’s height x lenght to be 1km x 1km and have a resolution of 513, so that each pixel in my Heightmap texture would be equivalent to 10 meters and would be made of 4x4 quads…

Some of my math here might not be correct, but I’m able to get this by messing with terrain settings, but havn’t figured out how to make this work With IMPORTING HEIGHTMAPS, because if I try to change the resolution after importing, it just resets the terrain to flat plane.

I know that I could use higher resolution texture to get a desired result, but is there a way to make importer sweat and do some calculations like it is supposed to?

The importer doesn’t have any ability to resize terrain heightmaps. Scaling 129x129 to 513x513 would look bad anyway; simple scaling can’t create more detail from nothing. You can write a script to do the scaling if you really want to though.