Menu

#879 Broken PNG if resolution -xp specified

3.0
open
nobody
png (2)
1
2013-05-21
2013-05-16
No

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

Discussion

  • Chris Morley

    Chris Morley - 2013-05-16

    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