BestImageViewer / geeqie

claiming to be the best image viewer / photo collection browser
http://www.geeqie.org/
GNU General Public License v2.0
488 stars 79 forks source link

Display images in numpy array format #906

Open vladtcvs opened 3 years ago

vladtcvs commented 3 years ago

ISSUE TYPE

GEEQIE VERSION

1.5.1

SUMMARY

Add possibility to display numpy arrays files .npy and .npz

This formats are frequently used in image analyzis, datascience, etc.

Files with len(image.shape) == 2 display in grayscale, files with len(image.shape) == 3 and 3 or 4 components display as RGB and RGBA

caclark commented 3 years ago

The latest commit has an option to process a file externally and to view the resulting image within Geeqie. The feature is in Edit/Preferences/Advanced. The Help file gives examples of how to use this feature. Generating an image externally using Python will be slow, but might be useful in the meantime.

You will need to either compile from sources or use an AppImage: https://www.geeqie.org/AppImage/index.html

caclark commented 3 years ago

Do you have sample .npy and .npz files you can upload?

caclark commented 2 weeks ago

Current sources implement RGB only.