3 ms·
Nice learning project, I'd just reconsider the medium as Electron is a bit beefy for this use case and you have really added nothing to the the scaffold other t
by iKlsR 5y ago
Nice learning project, I'd just reconsider the medium as Electron is a bit beefy for this use case and you have really added nothing to the the scaffold other than the panzoom lib.
To me minimal would be a single binary that uses some image library or maybe just an empty window while slowly working your way up implementing a way to read different image types, start with ppm and bmp then tackle something more complex. I did something with SDL and the SOIL header with opengl years ago. Weighed a few kb and could handle almost anything, added DnD, zoom with lerp and eases to make it bouncy, scroll with zoom wheel and control the scroll increments by holding various keys, was a very fun project I learnt a lot from.
I'd revisit this project and maybe use try some other cross platform tech that can push out a much much smaller binary, maybe python and tkinter [1] or take a look at fman [2] and see where that takes you. C# also seems to run everywhere nowadays, lots of options.
[1] https://www.geeksforgeeks.org/image-viewer-app-in-python-using-tkinter/ https://www.geeksforgeeks.org/image-viewer-app-in-python-usi...
[2] https://build-system.fman.io/ https://build-system.fman.io/.