geeqie icon indicating copy to clipboard operation
geeqie copied to clipboard

Display images in numpy array format

Open vladtcvs opened this issue 4 years ago • 3 comments

ISSUE TYPE

  • Feature Request

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

vladtcvs avatar Jun 24 '21 21:06 vladtcvs

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 avatar Jun 25 '21 14:06 caclark

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

caclark avatar Jul 02 '21 12:07 caclark