Png export

Hi

2 things: I’m trying to export a scene in Avogadro as a png, but end up with the following result:

There’s a bug I’ve never quite figured out with exporting transparent PNG on Mac. When we export a PNG, we take the OpenGL “frame buffer” and starting around OS 10.6, suddenly we’d get those weird artifacts.

If you don’t mind having non-transparent backgrounds, I can make a Mac build of 1.1.x that will also re-scale the window to 2x resolution when exporting. I did this last year for a holiday card project and it worked well, albeit with a slightly strange “jump” as the window grows and shrinks.

-Geoff


Prof. Geoffrey Hutchison
Department of Chemistry
University of Pittsburgh
tel: (412) 648-0492
email: geoff.hutchison@gmail.com
web: http://hutchison.chem.pitt.edu/

On Dec 9, 2014, at 12:35 PM, Philip jakobsen philipjakobsen1@gmail.com wrote:

Hi

2 things: I’m trying to export a scene in Avogadro as a png, but end up with the following result:

<etoh2.png>

Which obviously isn’t quite what I wanted. Exporting as bmp and then exporting that as png works, but that’s a workaround and the quality is not as good as I’d like. I’m using the latest Avogadro (version 1.1.1 git revision c1fcc5b) and OS X 10.10.1.

Second thing: is it possible to control the size of the exported image? This is for an academic paper and I’d like all graphics to be quite large (around 2000 pixels high). Is this possible without using POV-ray? I’d like to avoid that due to the light looking rather unatural and “staged”. Ideally all light is equally spread across the scene.

Exporting as vectorgraphics crashes Avogadro, no matter what format (eps, pdf or svg). Attached is the crashlog.

<avogadro_crash.log>

Thanks in advance,

Philip------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk_______________________________________________
Avogadro-Discuss mailing list
Avogadro-Discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avogadro-discuss

I actually solved the issue by changing the resolution of my screen (I’m blessed with a retina macbook) to 3840x2400 and exporting to .bmp (and converting that to png). Not the most elegant way, but it worked.

I was wondering is it’s possible to add a simple menu for the resolution of the exported image, like done it AIMStudio for example: https://i.imgur.com/qrVzpvP.png https://i.imgur.com/qrVzpvP.png

I suppose that will make image export a bit more complicated than just taking the currently shown OpenGL frame though.

Philip

On 09 Dec 2014, at 20:30, Geoffrey Hutchison geoff.hutchison@gmail.com wrote:

There’s a bug I’ve never quite figured out with exporting transparent PNG on Mac. When we export a PNG, we take the OpenGL “frame buffer” and starting around OS 10.6, suddenly we’d get those weird artifacts.

If you don’t mind having non-transparent backgrounds, I can make a Mac build of 1.1.x that will also re-scale the window to 2x resolution when exporting. I did this last year for a holiday card project and it worked well, albeit with a slightly strange “jump” as the window grows and shrinks.

-Geoff


Prof. Geoffrey Hutchison
Department of Chemistry
University of Pittsburgh
tel: (412) 648-0492
email: geoff.hutchison@gmail.com
web: http://hutchison.chem.pitt.edu/

On Dec 9, 2014, at 12:35 PM, Philip jakobsen philipjakobsen1@gmail.com wrote:

Hi

2 things: I’m trying to export a scene in Avogadro as a png, but end up with the following result:

<etoh2.png>

Which obviously isn’t quite what I wanted. Exporting as bmp and then exporting that as png works, but that’s a workaround and the quality is not as good as I’d like. I’m using the latest Avogadro (version 1.1.1 git revision c1fcc5b) and OS X 10.10.1.

Second thing: is it possible to control the size of the exported image? This is for an academic paper and I’d like all graphics to be quite large (around 2000 pixels high). Is this possible without using POV-ray? I’d like to avoid that due to the light looking rather unatural and “staged”. Ideally all light is equally spread across the scene.

Exporting as vectorgraphics crashes Avogadro, no matter what format (eps, pdf or svg). Attached is the crashlog.

<avogadro_crash.log>

Thanks in advance,

Philip------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk_______________________________________________
Avogadro-Discuss mailing list
Avogadro-Discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avogadro-discuss


Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk


Avogadro-Discuss mailing list
Avogadro-Discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avogadro-discuss

I was wondering is it’s possible to add a simple menu for the resolution of the exported image, like done it AIMStudio for example: https://i.imgur.com/qrVzpvP.png https://i.imgur.com/qrVzpvP.png
Both the bug and the resolution of the image are fixed in Avogadro v2. (At the moment, I just hardcoded x2 scale since I recently bought a Retina MacBook as well.) Our hope is that there will be another beta release after the holidays.

Cheers,
-Geoff