LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
AndyRR

Export Simplified Image to PNG

Status: New

I would like to have an option to export a simplified image of a graph directly into png. The image formats available in LV2010 are bmp, eps, emf and pict. Png is superior to bmp with rougly 100-50 times smaller file sizes. At the moment if I want to export a simplified image of a graph to png then I have to use the extra code below or alternatively export the image to clipboard, paste that into a graphics editor an save it to png. It would be much more simple to have an option to directly export to png. My suggestions below:

 

export simplified image to png.png

export simplified image to png 2.png

 

4 Comments
Silver_Shaper
Active Participant

Bmp is a kind of uncompressed format thats why its here i think. If its like this add "JPG" also in your list.

---
Silver_Shaper | CLD
AndyRR
Member

Png is an image format with lossless data compression and is widely supported. It’s actually much better suited than jpg for simple images like graphs where no artifacts from lossy compression are wanted. Png is optimized for simple images like graphs with sharp transitions and large areas of same color whereas jpg is optimized for photographic images. Png can actually produce smaller file sizes than jpg for simple images with text, lines and simple graphical objects. More about the subject can be read from Wikipedia for example:

 

http://en.wikipedia.org/wiki/Portable_Network_Graphics#Comparison_to_JPEG

 

I don't know if an option to export a simplified image to jpg would be usefull. More likely that people would accidentialy use the jpg export option because it's the most familiar format and then maybe wonder why there are some compression artifacts cluttering the graph.

wevanarsdale
Member

In my experience, JPEG is the only graphics file format that allows unclassified images to be moved off of a classified DOD system.  All other image formats would have to be printed.

Matthias_H
Member

I don't know the difference between the 2 methods but I always use "Get Image":

 

png.PNG

 

So you don't have to go the slowly way over the file system.