QuantumATK Forum

QuantumATK => General Questions and Answers => Topic started by: sergio on August 8, 2011, 12:26

Title: Exporting images in eps, in ATK 11.2.3
Post by: sergio on August 8, 2011, 12:26
Hi,

In ATK 11.2.3, it is not possible to export images (transmission spectrum, device configuration etc.) in eps format to be used in latex. Is there a way to export in this format?

Thanks,
Title: Re: Exporting images in eps, in ATK 11.2.3
Post by: kstokbro on August 8, 2011, 15:21
We can only export in bitmap formats, however, eps can also show bitmaps.

If you use linux you can convert a png to eps with the command,

convert figure.png figure.eps

There are most likely similar tools for windows, if this is your operating system.
Title: Re: Exporting images in eps, in ATK 11.2.3
Post by: zh on August 9, 2011, 13:07
To get a eps file with higher resolution, an alternative way is to use the screen capture of GIMP (a free software for graphics) and save the captured picture as an eps format. 
Title: Re: Exporting images in eps, in ATK 11.2.3
Post by: sergio on August 10, 2011, 12:01
Hi,

Thanks for your replies. The main problem is to get higher resolution in eps. I have tried the GIMP and some other softwares to convert the png to eps, but resolution is not so good. It would be better if we are able to export the images in eps directly in ATK. Do you think GIMP is the best in converting? or is there any better software?

Thanks,
Title: Re: Exporting images in eps, in ATK 11.2.3
Post by: zh on August 10, 2011, 13:26
The resolution of image in the png format is quite low, so the image converted from the png format by other tools will be also low. The  conversion of an image from the png format into other format (such as eps, jpg) cannot improve the resolution. In my experience, when an atomic configuration is visualized by the VNL, the use of GIMP to take a screening capture for the visualized structure  can produce a higher resolution if the image from the screening capture is saved as the eps format.
Title: Re: Exporting images in eps, in ATK 11.2.3
Post by: Anders Blom on August 10, 2011, 17:02
The definition of high-resolution of course depends to some extent on the end-purpose. If the image will be 5x5 cm in an article, the resolution in a screenshot or the exported PNGs should be enough, but if it goes on a poster and the image ends up being 20x20 cm, one may be stretching it somewhat.

Note that if you use Windows you do not need GIMP to make a screenshot, you can just use the "Snipping Tool". Or press Alt+PrintScreen to capture the current window, and paste it into Paint and save it as a PNG from there. Do not use JPG for screenshots, that format is not suitable.

Most LaTeX styles and publishing houses can use PNG directly these days, I think, so if there is quality loss due to the conversion from PNG to EPS, just stick to the PNG all the way.

Title: Re: Exporting images in eps, in ATK 11.2.3
Post by: kanna on January 28, 2016, 06:37
Hi,

Even though the dialog in the builder shows an option for structure to be exported in .svg/.svgz format we are unable to save it in that format. Any solution for this ?

Is it possible to use a piece of python code in the structure definition of .py file to get the image of the structure in .eps/svg/svgz/any vector graphics format ?

Thanks
kanna
Title: Re: Exporting images in eps, in ATK 11.2.3
Post by: Jess Wellendorff on January 28, 2016, 08:39
This appears to be a bug in VNL. WE will fix it as soon as possible. Thanks for reporting this!
Title: Re: Exporting images in eps, in ATK 11.2.3
Post by: Anders Blom on January 28, 2016, 08:54
I wrote wrong - yes, SVG is included in the list (you have to make the export dialog wider to see it :) ) , but doesn't seem to work. We'll investigate!
Title: Re: Exporting images in eps, in ATK 11.2.3
Post by: kanna on January 28, 2016, 13:56
Thanks.