Add upscale smooth/pixelated option#531
Conversation
|
This is a nice addition, thanks!
I made it work in real time (related to our state management using MobX, components using stores need to be explicitly observed), and also added it as a context menu option: allusion-upscale-filter.mp4These are the changes: |
9c1a94a to
24445be
Compare
You're right, looks like the rendering bug has been fixed in electron.
That's a general use approximation. Ideally you'd want to use the pixelated upscale filter only when you're magnifying something by >= 2, so it would depend on the container size and thumbnail size. |
|
Thanks for the quick response! And sorry this has been catching dust for a while, it's much appreciated 😃 I'm gonna get it released this weekend 👍 |
Implements an option to choose whether to use 'pixelated'
image-renderingor the default when displaying upscaled images.Can be useful for displaying pixelart or other small pics that might look better without the blur.
Gotchas:
'pixelated' can cause a wiggling behavior when zoomed this is due to two factorsapparently fixed in current electrontransform3dnot handling half-borders correctly upscaling with 'pixelated' (maybe changing width/height directly could be an alternative)since I'm not advanced in react, I'm not sure how to make the slide update the the UpscaleMode setting realtimefixed by RvanderLaan