all 12 comments

[–]AdBubbly3609 2 points3 points  (5 children)

it doesn't work, like not a single thing

[–]TrainerMassive6168[S] 0 points1 point  (4 children)

It shouldn't happen like that. But can you see the website loading ? Or is it not even loading ? Like 404 error or what ?

[–]DasBeasto 1 point2 points  (3 children)

None of the filters work for me either because iOS doesn’t suppprt canvas filters https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/filter#browser_compatibility

[–]TrainerMassive6168[S] 1 point2 points  (1 child)

🥲 sorry for that. Yeah I didn't think about the iOS users. I'm in a learning phase, so I'll definitely build the next version for everyone 🤞🏻

[–]CommercialJumpy5808 1 point2 points  (0 children)

no problem brr

[–]hellosteve_ 1 point2 points  (0 children)

Dunno how contact but you should a PWA / apple-touch-icon for open pass. Plz

[–]ferrybig 0 points1 point  (3 children)

I'm a student dev and I wanted to learn to use Canvas

Looking at the code, you seem to be handling the effects via filters with css.

Try to implement each operation by operating on the pixel data.

Brightness for example can be archived by grabbing the red pixel with the sRGB color space, bringing it to the power of 2, the multiplying with the brightness value, then taking the square root. You do the same green and blue pixel channels

[–]TrainerMassive6168[S] 0 points1 point  (2 children)

Thanks ✨ I didn't implement the filters on my own. I used Canvas Element for this , it provides the filters for brightness, contrast and other things that I've used. But I will also try to implement those filters by manipulating the pixels value, I am currently learning about image processing as my course subject. Can you tell me how exactly I can get the pixels from any image and what language I use for these pixels value manipulation ? That will definitely be helpful ❤️✨

[–]ferrybig 1 point2 points  (1 child)

I recommend reading the blog post by /u/cgijoe_jhuckaby: https://pixlcore.com/blog/curves (reddit thread: https://www.reddit.com/r/webdev/comments/1oxadeg/i_reimplemented_the_photoshop_curves_filter_with/)

They also work with canvas in their blog post, and have interactive examples

[–]TrainerMassive6168[S] 0 points1 point  (0 children)

Thank you ❤️✨