I was able to reproduce the problem you are seeing. That is odd.

Would you mind opening an issue on the bug tracker?
https://gitlab.kitware.com/paraview/paraview/issues

Thanks,
Cory

On Fri, Feb 3, 2017 at 12:53 AM, Magician <[email protected]> wrote:
> Hi all,
>
>
> I have some 2D VTKImageData and export them as PNG images using 'Save 
> Data...'.
>
> I'm trying to get color values from original sources and convert them
> to 8 or 16-bit color values with Programmable Filter.
> But if I apply 'Save Data...' to the results, no PNG images exported
> and get warnings as below:
>
>> Warning: In 
>> /Users/kitware/buildbot-slave/b99e1795/source-paraview/VTK/IO/Image/vtkPNGWriter.cxx,
>>  line 231
>> vtkPNGWriter (0x6000005a8260): PNGWriter only supports unsigned char and 
>> unsigned short inputs
>
> The attached dataset is a tiny sample. (including no dtype converter, but 
> reproduces same problems)
> The data type of the PNGImage value of ProgrammableFilter1 should be 
> 'unsigned char',
> but we may not be able to save it as a PNG image.
>
> Is it a bug?
>
>
> Magician
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at: 
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>



-- 
Cory Quammen
Staff R&D Engineer
Kitware, Inc.
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to