usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
27.9k stars 1.29k forks source link

Open preview images in the default image viewer #1257

Open Arjun9088 opened 11 months ago

Arjun9088 commented 11 months ago

Is it possible to add a feature wherein the preview image(when the response of the api is an image) can be right clicked and the menu will have an option to show the downloaded image in the default image viewer app for the os, i.e , preview app in MacOs, Windows photo viewer etc. The image viewer applications tend to have much more features to deal with images like zooming and annotating. The current way to do that is to save the image onto the disc and then open it via file explorer.

Thanks

Its-treason commented 10 months ago

We could achieve this by saving the response body in a temporary directory and then open it using the OS's open function: