# Exported segment file size is quite large

**URL:** <https://discourse.slicer.org/t/exported-segment-file-size-is-quite-large/2736>\
**Category:** Development\
**Created:** [April 30, 2018, 2:33pm UTC](https://discourse.slicer.org/t/exported-segment-file-size-is-quite-large/2736 "2018-04-30T14:33:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anandmulay3](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@anandmulay3](https://discourse.slicer.org/u/anandmulay3)\
**Post date:** [April 30, 2018, 2:33pm UTC](https://discourse.slicer.org/t/exported-segment-file-size-is-quite-large/2736/1 "2018-04-30T14:33:05Z")

</div>

I’m using scripted module to export segmentation in obj format, today i have updated the slicer latest nightly build version. and now the size is increased again.  
Do we have any code or method to reduce or compress the 3D object file size while exporting.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [April 30, 2018, 6:19pm UTC](https://discourse.slicer.org/t/exported-segment-file-size-is-quite-large/2736/2 "2018-04-30T18:19:53Z")

</div>

You can apply decimation to reduce number of mesh points without decreasing important details:

- Go to Segmentations modul
- In Representations section, click Update in Closed surface row
- Click Binary labelmap-\>Closed surface rule
- Change Decimation factor value to 0.8 to reduce number of points by 80%. You can try values up to about 0.99, the higher the value, the more points are removed.
