how to read .vti files created from stack of 2d PNG Images and render it in vtk.js

Hum, ok. I was thinking that you were setting a LookupTable yourself.
I don’t know what do vtkImageLuminance() along with vtkImageAppendComponents () but it sounds like your data field is RGB?

In anycase, you could implement the luminance filter if need be in JS since the code is almost nothing (l = 0.3*r + 0.59*g + 0.11*b)

Also do you set your mapper in JS the same way you do it in Python?

Maybe if you share your vti with me, I can figure out what are the right parameters of that mapper.