# Resize 8193er .ter into 8192.png

**URL:** <https://forum.world-machine.com/t/resize-8193er-ter-into-8192-png/3994>\
**Category:** Bug Reports\
**Created:** [October 21, 2014, 10:24am UTC](https://forum.world-machine.com/t/resize-8193er-ter-into-8192-png/3994 "2014-10-21T10:24:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Onkelpoe](https://forum.world-machine.com/letter_avatar_proxy/v4/letter/o/439d5e/32.png) [@Onkelpoe](https://forum.world-machine.com/u/Onkelpoe)\
**Post date:** [October 21, 2014, 10:24am UTC](https://forum.world-machine.com/t/resize-8193er-ter-into-8192-png/3994/1 "2014-10-21T10:24:12Z")

</div>

hi there,

I wonder how to resize a 8193 by 8193.ter file and convert into 8192 bx 8192.png.  
Tried “File Input” (“localspace”) with plugged “heightmap output” (16-bit.png setting) and set the “World Projection Params” to 8192x8192 resolution…

Is this correct? Will the 8193 just be re-sized or will the additional “+1” border cropped/cut out?

Any clues?!

Cheers

---

<div class="post-metadata">

**Author:** ![Stephen](https://forum.world-machine.com/user_avatar/forum.world-machine.com/stephen/32/317_2.png) [@Stephen](https://forum.world-machine.com/u/Stephen)\
**Post date:** [October 21, 2014, 11:37pm UTC](https://forum.world-machine.com/t/resize-8193er-ter-into-8192-png/3994/2 "2014-10-21T23:37:39Z")

</div>

Hi,

Yes, this is the correct way to do it. Make sure the “+1” checkbox is unchecked in the project build settings; your heightfield will be resized to 8192.

---

<div class="post-metadata">

**Author:** ![Onkelpoe](https://forum.world-machine.com/letter_avatar_proxy/v4/letter/o/439d5e/32.png) [@Onkelpoe](https://forum.world-machine.com/u/Onkelpoe)\
**Post date:** [October 22, 2014, 6:43am UTC](https://forum.world-machine.com/t/resize-8193er-ter-into-8192-png/3994/3 "2014-10-22T06:43:30Z")

</div>

Thanks for confirming 🙂

Cheers!

---

<div class="post-metadata">

**Author:** ![Onkelpoe](https://forum.world-machine.com/letter_avatar_proxy/v4/letter/o/439d5e/32.png) [@Onkelpoe](https://forum.world-machine.com/u/Onkelpoe)\
**Post date:** [October 22, 2014, 10:45am UTC](https://forum.world-machine.com/t/resize-8193er-ter-into-8192-png/3994/4 "2014-10-22T10:45:14Z")

</div>

Hmmm, there seems to be some kind of bug…

When I do like descrived above and export as 16-bit.png, the image is 8129x8192…  
when exporting as .ter and importing into another app (L3DT PRO) the size is 8193x8193.

When exporting in localspace = heightfield (.ter, also .png) in other app is just all black (but still around 130MB)  
, when not checking “localspace” it´s fine - (except for the size, when saved as .ter)

Any idea where the problem is?

Cheers!

---

<div class="post-metadata">

**Author:** ![Stephen](https://forum.world-machine.com/user_avatar/forum.world-machine.com/stephen/32/317_2.png) [@Stephen](https://forum.world-machine.com/u/Stephen)\
**Post date:** [October 22, 2014, 10:22pm UTC](https://forum.world-machine.com/t/resize-8193er-ter-into-8192-png/3994/5 "2014-10-22T22:22:29Z")

</div>

The terragen format is special; at least in the old days, it used to require power-of-two-plus-1 sizing. The terragen exporter internally always pads the output to respect this – this exporting to TER always produces a +1 size.

The localspace all-black export sounds like a bug; I’ll put it in the DB for investigation

---

<div class="post-metadata">

**Author:** ![Onkelpoe](https://forum.world-machine.com/letter_avatar_proxy/v4/letter/o/439d5e/32.png) [@Onkelpoe](https://forum.world-machine.com/u/Onkelpoe)\
**Post date:** [October 23, 2014, 6:24am UTC](https://forum.world-machine.com/t/resize-8193er-ter-into-8192-png/3994/6 "2014-10-23T06:24:04Z")

</div>

Yeah, found that out, too 😉

All .ter files generated from WM claim to be “+1” in size… If I had known that before… well could have saved some time…

/solved

---

<div class="post-metadata">

**Author:** ![system](https://forum.world-machine.com/uploads/default/original/1X/0508d35605637e7165b09d84e369c22eccfe410f.png) [@system](https://forum.world-machine.com/u/system)\
**Post date:** [October 17, 2019, 9:30pm UTC](https://forum.world-machine.com/t/resize-8193er-ter-into-8192-png/3994/7 "2019-10-17T21:30:31Z")

</div>

Closed on October 17, 2019, 9:30pm UTC


