# The dark slice problem in the Nifti formant?

**URL:** <https://discourse.slicer.org/t/the-dark-slice-problem-in-the-nifti-formant/32688>\
**Category:** Development\
**Tags:** python, nifti\
**Created:** [November 9, 2023, 6:10am UTC](https://discourse.slicer.org/t/the-dark-slice-problem-in-the-nifti-formant/32688 "2023-11-09T06:10:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Berk\_Gezgin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/berk_gezgin/32/65862_2.png) [@Berk\_Gezgin](https://discourse.slicer.org/u/Berk_Gezgin)\
**Post date:** [November 9, 2023, 6:10am UTC](https://discourse.slicer.org/t/the-dark-slice-problem-in-the-nifti-formant/32688/1 "2023-11-09T06:10:07Z")

</div>

Hello everyone, first of all.

I am dealing with a cbct image in nii.gz format. This image has a filling in one tooth. When I save these slices in png format, I get a dark image. However, other slices turn into png format in a normal way. When I open it in the 3D slicer application, the colors and everything else look very good. How can I save these slices in png format with python as good as in 3D Slicer? Do I need to apply a filter to nifti?

Thank you in advance for your help.
