[Paraview] Mismatched image size returned from ViewPort image render

Jordan Deyton deytonjh at ornl.gov
Tue Mar 3 15:32:23 EST 2015


ParaView gurus,

I am working on a project that uses the JSON RPC protocols provided by 
ParaViewWeb. I've noticed that the image quality for ViewPorts seems bad 
regardless of what is specified in the call to viewport.image.render 
(docs here: 
http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/api/protocols.ParaViewWebViewPortImageDelivery 
).

After decoding the returned image from the Base64 encoding, the JPEG 
image comes out as 636x420, while the quality is listed as 100 and the 
original size is 1440x850.

The JSON object passed to viewport.image.render looks like

{"args":[{
     "localtime":1425413914878,
     "view":-1,
     "size":[1440,850],
     "quality":100}]
}

While the returned object from that RPC call looks like

{
     "image": "very long encoded image text here",
     "localTime": 0,
     "stale": false,
     "size": [1440,850],
     "format": "jpeg;base64",
     "global_id": "315",
     "mtime": 3068929,
     "workTime": 1
}

I've used two separate Base64 decoders, and both result in a JPEG image 
that is 636x420, not the reported 1440x850.

Any idea what could be the problem here? Is this a bug in ParaViewWeb? 
I'm running the latest stable ParaView release (4.3.1) on RHEL.

Thanks,
Jordan

-- 
Jordan Deyton
Oak Ridge National Laboratory
Telephone: (865) 574-1091
Email: deytonjh at ornl.gov



More information about the ParaView mailing list