Re: [Paraview] Save Programmable VTKImageData as PNG images

2017-02-04 Thread Magician
Hi Cory,


Thanks to your advice. I posted the issue.
>


Magician


> On Feb 4, 2017, at 01:29, Cory Quammen  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  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 (0x605a8260): 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 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


Re: [Paraview] Save Programmable VTKImageData as PNG images

2017-02-03 Thread Cory Quammen
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  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 (0x605a8260): 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 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