nappgui_src icon indicating copy to clipboard operation
nappgui_src copied to clipboard

Image support enhancements

Open SamSandq opened this issue 11 months ago • 5 comments

I propose that the following be added to NAppGUI, as they are supported on all platforms and useful:

  • TIFF support
  • configurable quality (compression) factor for JPG

SamSandq avatar Mar 25 '24 10:03 SamSandq

is there a way to implement lanczos and spline36 scaling/resizing for images?

xbowzone avatar Apr 09 '24 14:04 xbowzone

Hi @xbowzone Still no. image_scale() use drawing contexts to change the image dimensions. At the moment, the unique way to ensure a method is obtain the pixel buffer with image_pixels and use a third party library.

frang75 avatar Apr 09 '24 20:04 frang75

Thanks @frang75 I'll take a look into it and try to find some third party lib with good docs. Also how to integrate for eg: mpv into nappgui to play videos. Apologies for being off topic here.

xbowzone avatar Apr 09 '24 21:04 xbowzone

This is a very interesting topic… I found this https://en.wikipedia.org/wiki/Comparison_gallery_of_image_scaling_algorithms

and it provides a good overview of what’s available.

SamSandq avatar Apr 10 '24 08:04 SamSandq

Thanks @frang75 I'll take a look into it and try to find some third party lib with good docs. Also how to integrate for eg: mpv into nappgui to play videos. Apologies for being off topic here.

NAppGUI doesn't support video, but its an interesting topic. Please, open an issue.

frang75 avatar Apr 10 '24 14:04 frang75