LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Export image with transparent background

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

0 Kudos
Message 1 of 7
(7,369 Views)

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


THINK G!! 😉
------------------------------------------------------------------------------------------------
Using LabView 2010 and 2011 on Mac and Win
Programming in Microsoft Visual C++ (Win), XCode (Mac)
0 Kudos
Message 2 of 7
(7,347 Views)

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...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 7
(7,334 Views)

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

0 Kudos
Message 4 of 7
(7,309 Views)

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

0 Kudos
Message 5 of 7
(7,266 Views)

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

0 Kudos
Message 6 of 7
(7,263 Views)

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

0 Kudos
Message 7 of 7
(7,261 Views)