You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I was trying to create a image deep fryer for my group chat, and I was wondering if there was an easy way I can deep fry an image. Would you be willing to either
create an API (hard)
create a function accepting all the values of the meme deep frier and returning the deep fried meme? (yay)
I can hear the chants already "Thank you! This is awesome"
This is really cool what you did, thanks!
The text was updated successfully, but these errors were encountered:
Hey, thanks!
So as far as I can tell, both options would require a rewrite of the program, as it's currently reliant on a <canvas> element to do the actual jpg frying. This is so the app runs entirely in the browser with no backend processing, so I don't have to run a webserver / server function, and is the reason the code is such callback hell.
Tbh I probably won't get around to this anytime soon, but for your bot (if in python) you could easily apply filters with pillow and just repeatedly save/open a jpg in memory to fry.
You could use Node Canvas for backend canvas manipulation. Caman is available for Node.js too (if you're having problems installing it). Don't know about glfx as it uses WebGL and Node Canvas doesn't support it currently, so you'll have to research that. I found this CodePen which uses PIXI to bulge/pinch images, and I also found this way of using PIXI with Node Canvas, but it is a little hacky. I also found this SO answer to use the bulge effect, but I don't know how easy it'd be to implement it in JS. Looks like overall the hardest part will be to implement the bulge/pinch effect. I'm making a meme generation API so if I find a way of doing the bulges, I'll tell you :D
Hi,
I was trying to create a image deep fryer for my group chat, and I was wondering if there was an easy way I can deep fry an image. Would you be willing to either
I can hear the chants already "Thank you! This is awesome"
This is really cool what you did, thanks!
The text was updated successfully, but these errors were encountered: