Hi,
if you specify any resolution to PNG export via -xp,
the resulting PNG file has 0 bytes. To reproduce:
Works:
echo "CC" | ./bin/babel -i smi -o png test.png
Doesn't work:
echo "CC" | ./bin/babel -i smi -o png -xp 300 test.png
This is reproducible on Ubuntu 12.04, both with
binary packages 2.3.1+dfsg-4 and and a local build of today's SVN r5063.
Yours,
Steffen
Use obabel instead of babel, which is deprecated. The handling of option parameters is much better and many of the current formats and ops rely on this. (It is also safer and has SMILES input built in.) Your example would be:
./bin/obabel -:CC -O test.png -xp 300
The documentation on the website is outdated. I submitted some requests (below) to update it but no response. The main site doesn`t even mention the 2.3.2 release. If you give me access to the wiki I can try to update some issues.
https://sourceforge.net/p/openbabel/feature-requests/165/
https://sourceforge.net/p/openbabel/feature-requests/164/