diff -ru InsightToolkit-3.18.0/Code/IO/itkPNGImageIO.cxx InsightToolkit-3.18.0.new/Code/IO/itkPNGImageIO.cxx --- InsightToolkit-3.18.0/Code/IO/itkPNGImageIO.cxx 2008-10-01 00:01:48.000000000 +0200 +++ InsightToolkit-3.18.0.new/Code/IO/itkPNGImageIO.cxx 2010-07-03 00:31:20.000000000 +0200 @@ -211,7 +211,7 @@ // minimum of a byte per pixel if (colorType == PNG_COLOR_TYPE_GRAY && bitDepth < 8) { - png_set_gray_1_2_4_to_8(png_ptr); + png_set_expand_gray_1_2_4_to_8(png_ptr); } // add alpha if any alpha found @@ -346,7 +346,7 @@ // minimum of a byte per pixel if (colorType == PNG_COLOR_TYPE_GRAY && bitDepth < 8) { - png_set_gray_1_2_4_to_8(png_ptr); + png_set_expand_gray_1_2_4_to_8(png_ptr); } // add alpha if any alpha found