tfuxu / Halftone

Give your images that pixel art-like style
GNU General Public License v3.0
103 stars 16 forks source link

Button for displaying previews in external image viewers #10

Closed tfuxu closed 1 year ago

tfuxu commented 1 year ago

A button for displaying preview image in image viewer would be quite useful if a user would want to examine a picture in full resolution before saving it.

Implementing such a button would require a couple of changes to how previews are currently stored, as of now they are stored directly in RAM (which is probably a cause of high memory usage after changing options in app for some time with high-res image loaded), the idea would be to just store previews in /tmp directory, so that they could be easily accessible by external image viewers.

For where I would put the button in UI, to not make window unnecessary taller, I would put a button as a overlay on preview widget itself, like how Damask does it on downloaded wallpapers preview.

Example:

image

tfuxu commented 1 year ago

Added in b8e869b9a78b05eb391c75952d694291299a5877