09-01-2013 02:30 PM
Hi,
I usually export images of a graph as EPS files by right-clicking the waveform and selecting Export >> Export Simplified Image. The default image background is white, which doesn't look good if inserted in a document with colored background. Is there a way that I can export images as EPS files with transparent background?
Best wishes
funki
09-01-2013 05:21 PM
Hi,
I don't think there is a Labview-internal function to export images with transparent background. However, you can use a graphics program to decompose the eps file and erase the white background. Look for a vector graphics program that supports eps files. For example Adobe Illustrator (which was available for free in version CS2 some month ago, don't know if this is still the case...) or Inkscape or CorelDraw or...
Hope this helps,
Christian
09-01-2013 07:55 PM
There are also methods that allow you to extract the images of indicators like graphs. You can then save the image as a PNG file - which does support transparency. Unfortunately, I don't thing the VIs for writing PNG files allow you to define a transparent color so you may still need to edit the picture to set the transparent background. I have used a program called IfranView to do that and it works well.
Mike...
09-02-2013 01:23 AM
If you use imagemagick you could use the system exec vi to perform a conversion for you http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=10665
09-02-2013 04:53 AM
Hi Christian,
In fact I am using Inkscape to edit the images manually. It works fine but is just a little annoying because the graph is grouped by many parts - coordinates, axes, legends, etc. - and all of them have individual white backgrounds that I must change to transparent.
I was wondering if there is a more "automatic" way of doing it.
Best wishes
funki
09-02-2013 04:58 AM
Hi Mike,
The reason why I emphasized EPS files in the original post is that I really want to avoid raster graphs like PNG or JPEG. I will use the images on posters of A0 size so the resolution will be really bad if raster graphs are magnified.
Best wishes
funki
09-02-2013 05:02 AM
Hi Rhino,
I guess that ImageMagick only works for raster graphs other than vector graphs on transparency conversion. Or does it work for vector graphs too?
Best wishes
funki