Show HN: A pure WebGL image editor with filters, crop and perspective correction

69 axelMI 20 4/28/2025, 4:10:21 PM github.com ↗
I'm working on a pure js webgl image editor with effects, filters, crop & perspective correction, etc. My goal is to give the community an opensource solution as unfortunately most comparable apps are closed sources.

https://mini2-photo-editor.netlify.app to try it out (https://github.com/xdadda/mini-photo-editor)

Comments (20)

neosat · 45s ago
Nice! Good performance, clean UI, and core functionality.
rendaw · 8m ago
What does comparable refer to here? Web based image editors? Like what?
amadeuspagel · 1h ago
Nice. I tried it with an image from Unsplash. Maybe you can use the Unsplash API[1] to give people an example to play with.

[1]: https://unsplash.com/developers

flashblaze · 40m ago
I'm so glad this exsist. I've been meaning to get something similar started, but did not due to one reason or the other. I'll definitely try to contribute.
cmenge · 25m ago
Lol, I added a todo yesterday: "find or build good image cropper, ideally gl based" ;)

Guess the search might be over, thanks!

gtb_1 · 1h ago
Did you consider using WebGPU, or creating a bridge between WebGPU / WebGL for this? Also, have you considered deploying on Cloudflare Pages [1] (unlimited bandwidth) instead of netlify?

[1] - https://pages.cloudflare.com/

axelMI · 1h ago
I did consider WebGPU but I couldn't find many advantages for the current use case.

Yes I'm planning to move to the edge as soon as it's in a later stage of development

titaphraz · 1h ago
Apparently it isn't unlimited: https://news.ycombinator.com/item?id=42713451
fidotron · 1h ago
This is neat. Any plans to add blurs and related effects?
asadm · 1h ago
in the editor, do add a way to load sample random image to try out the editor instead of having to uploading my own (which most won't bother / don't trust / can't do at work).
axelMI · 1h ago
Great advise. Will add it next.

Bust just to be clear, images are handled 100% locally on the user machine. No data is sent to servers, no adv, no cookies, nothing ...

asadm · 1h ago
Yup I get that.
atonse · 2h ago
Very cool! What's the license, and how does it compare to some of the other croppers/editors out there? Was it mainly the GL integration?
axelMI · 2h ago
Ops forgot to add MIT license As for the underlying modules on which it relies Will fix it shortly
stared · 2h ago
Thank you for sharing!

What's the license?

axelMI · 1h ago
MIT. thanks for point that out, I did forget to add it
quantadev · 1h ago
I tried to figure out how to crop an image and found nothing. There doesn't seem to be a crop feature as far as I could tell. I'm sure it's probably there, but not easy for anyone to figure out. Would be super easy to make it intuitive right?
axelMI · 1h ago
it's the composition menu ... will rename it

just select the area you wish to crop and then move to the other settings (colors, ...) to edit it

atonse · 39m ago
I did this but when I hit download, I got back the original image instead of the cropped image.
quantadev · 12m ago
I tried it again, and finally noticed you have to click the corner of the image to move the selection area. It works, but then I didn't see a "Crop" button. Only trying to be helpful, and not complaining. Nice work tho on this component.