Amndeep7 / cdf.moe

Makes graphs from comments on threads
MIT License
3 stars 0 forks source link

koh's faces v2 #31

Open Amndeep7 opened 4 years ago

Amndeep7 commented 4 years ago

website has some page to submit and via commentface base images plus probably instructions on how to use them

people who are logged in will have their comments posted to reddit / /r/anime / CDF streamed and will replace the syntax with a link to the image with text composited on top + title text as normal

https://github.com/MayorMonty/Snoostorm

primary concern is to figure out hosting - ideal form would be to not have to host all the different images either on my server or on some image host and instead just generate it on the fly based off of the url - not sure how to handle embeds tho which is key esp for adding support to res and the hover over images extension

Amndeep7 commented 4 years ago

I think it'll be reasonably feasible to support RES but not any of the normal 'hover over' extensions like Imagus. This is because RES supports displaying arbitrary content with iframes whereas Imagus seems to mandate some sort of image filetype. What I was thinking to do would be to host the templates on my end and then use canvas to draw the text on top based on the URL parameters (i.e. the top/bottom text + title text) which would result in a new 'image' but without me having to create and store a jillion different ones; however, it also wouldn't be a url that ends in jpg or gif or whatever which is why Imagus wouldn't work.

https://github.com/honestbleeps/Reddit-Enhancement-Suite/wiki/Adding-new-media-hosts https://github.com/honestbleeps/Reddit-Enhancement-Suite/blob/master/lib/core/host.js https://github.com/honestbleeps/Reddit-Enhancement-Suite/blob/master/examples/host.js https://github.com/honestbleeps/Reddit-Enhancement-Suite/blob/master/lib/modules/hosts/default.js