> I'm trying to convert a SMILES string to a png picture using openbabel C++ 
> library. Here's a minimal code that says what I want to do. 
...
> This compiles and runs fine but it generates a png that's only a few bytes 
> and can't be open. I tried the same code with "png" replaced by "svg" and it 
> worked. However for various reasons I want to use png instead of svg. I guess 
> it might be a cairo issue but I'm not sure. 

Ignoring the code for the moment, can you do this from the command line? If 
not, it has nothing to do with your code.

-Geoff


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to