[Paraview] Save Programmable VTKImageData as PNG images

Magician f_magician at mac.com
Sat Feb 4 10:50:32 EST 2017


Hi Cory,


Thanks to your advice. I posted the issue.
<https://gitlab.kitware.com/paraview/paraview/issues/17151 <https://gitlab.kitware.com/paraview/paraview/issues/17151>>


Magician


> On Feb 4, 2017, at 01:29, Cory Quammen <cory.quammen at kitware.com> wrote:
> 
> 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 <f_magician at mac.com> 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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170205/ab579afa/attachment.html>


More information about the ParaView mailing list