Hi,
I think you should use the format "_png2" instead of "png", at least that's how
I do it.
Kind regards,
Fredrik
Skickat från min iPhone
> 12 maj 2017 kl. 02:40 skrev xh s <sxh....@gmail.com>:
>
> I can do it from command line fine.
>
> Xianghai
>
>> On Thu, May 11, 2017 at 5:33 PM, Geoffrey Hutchison
>> <geoff.hutchi...@gmail.com> wrote:
>> > 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
------------------------------------------------------------------------------
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