Halftone icon indicating copy to clipboard operation
Halftone copied to clipboard

Implement zoom for previews

Open tfuxu opened this issue 1 year ago • 0 comments

~~This will require a custom image processing library that supports image tilling and a way to implement custom image viewer that is not based on Gtk.Picture.~~

~~libvips looks like a good contender and it appears to support tilling (required to zoom on images without going OOM). There is a complete image viewer made using vips, which could be useful to see how the zoom is implemented here.~~

Disregard what's written above. This can be achieved by subclassing Gdk.Texture. There are examples available in GTK4 Demo, Tuba and Extension Manager.

Related #11

tfuxu avatar Nov 11 '23 15:11 tfuxu