PNG Image Generation

User 3d3f3767a2

07-07-2014 20:10:54

Hi there,


Having a quality issue with the images generated using the REST web service (6.3.0) vs. the SOAP service. I am using the exact same parameters to get an PNG image:


base64:png:-a,maxscale50,w130,h130,#00ffffff

However, the images generated are different.


Here is the one from the SOAP server:



and here is the one from the REST server:



 


As you can see it's really hard to read the atom labels on the one coming from the REST server at this size.


Thanks a lot,


Craig

ChemAxon 13811e1703

08-07-2014 07:58:57

Hi Craig,

This difference is  because the REST web services using transparent png images by default, unfortunately there is no option for disabling this behavior, but this transparency issue has already been fixed and will be available in the next release which is coming soon.



The molExport service could be used as a workaround:
https://restdemo.chemaxon.com/apidocs/#molExport />
with parameters:


base64:png:-a,maxscale50,w130,h130,#00ffffff 


Regards,
Peter 

User 3d3f3767a2

14-07-2014 21:35:42

Excellent, thank you!