LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Al.B

Add read/write image VIs that work with all image formats

Status: New

LabVIEW provides 6 VIs to allow reading and writing image files - each one pertains only to a specific format (bmp, jpg, png).   We should add VIs which figure out which image format is given, and uses the correct image VI automatically in the case of reading.  In the case of writing, the format is determined by the extension of the provided file name.  I created a read and a write VI which does this here:

 

https://decibel.ni.com/content/docs/DOC-12141

 

I feel that this should be included in the image palette:

 

1.png

 

 

Al B.
Staff Software Engineer - TestStand
CTA/CLD
3 Comments
Wart
Member

Would it would be possible to read the file header information to determine image type rather than relying on the file extension to be correct?

Al.B
NI Employee (retired)

Hi Wart,

 

Good idea!  No matter the implementation, I just think there should be a VI that can load/save in all of the image formats. I just posted my example to help illustrate the idea.

Al B.
Staff Software Engineer - TestStand
CTA/CLD
a911504820
Member

That's a idea full of creative.I want ot use it.