tfuxu / Halftone

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

Image preview far too large #42

Open turtlegarden opened 10 months ago

turtlegarden commented 10 months ago

The image preview is far too large, resulting in ridiculous amounts of scrolling when using large images and shrinked small images.

Skärmbild från 2023-11-17 22-54-26

In addition, the sidebar is awkward on small screen sizes. Is there a way to pull it up from the bottom (like the previous UI iteration) in order to be able to see the images at a smaller size? The new UI is very good at large screen sizes but does the above at small screen sizes, which is likely not wanted behavior.

Version: 0.4.0

tfuxu commented 10 months ago

I would love to have an adjustable image preview in Halftone, but it is quite hard to actually implement that.

As I noted in #38, I would need to make a whole new widget, because Gtk for some reason still doesn't have an embeddable image viewer.

The only alternative for that would be to make the image fit in the viewport (like in the previous UI design), but it would reintroduce the issues like scaling artifacts, which would essentially make the preview useless.

In regard to sidebar, I was already working on improving it for mobiles before the new UI landed, but it wasn't working properly for me, so I've delayed it until the next release. It will be similar to how the image properties sidebar in Loupe work.

Related #44, #38

turtlegarden commented 10 months ago

Regarding the second, that sounds wonderful! On the first, that will require further inspection. Perhaps fiddling with Gdk could be done.

tfuxu commented 9 months ago

Second part got added in #46

About zoom, from what I've read in libvips documentation, VipsImage is a GObject class which should be relatively easy to embed into a Gtk.Widget. I'll take a look at this soon.

turtlegarden commented 9 months ago

Nice work on the bottom panel!

tfuxu commented 9 months ago

Thanks!