Commit graph

49 commits

Author SHA1 Message Date
Gered 0ad784eb06 add helper function to get current date/time string 2014-04-06 13:38:40 -04:00
Gered 335009597d add stub functions for all the main operations we need 2014-04-06 13:22:46 -04:00
Gered 867d5ea9e5 add app startup couchdb status checking 2014-04-06 13:17:56 -04:00
Gered f8de73478e add general couchdb functions 2014-04-06 13:17:39 -04:00
Gered c8251e7de3 add site.config file reading functions. load config on app startup 2014-04-06 12:58:08 -04:00
Gered fd189ee491 rename animated gif route url 2014-04-06 12:23:52 -04:00
Gered cddf7d9e86 add image format checking to the animated gif handler 2014-04-06 11:05:26 -04:00
Gered 4247a1e9d8 add type hint that probably doesnt really matter too much 2014-04-06 10:04:10 -04:00
Gered 502ceade97 refactor the piped-input-stream -> java.io.Writer stuff 2014-04-06 09:45:09 -04:00
Gered 59a829b9ef little bit of cleanup 2014-04-06 09:34:02 -04:00
Gered 1732ccf341 add response streaming to gif->ascii 2014-04-05 19:48:41 -04:00
Gered a6ddbe8129 forgot :hidden? param 2014-04-05 18:09:35 -04:00
Gered d4ef18a525 fix wrap-pre-tag so that single images arent hidden (as html) 2014-04-05 18:08:00 -04:00
Gered 0debaadd90 tweaks to how the app ring-handler is set up 2014-04-05 17:43:36 -04:00
Gered 5e979c8ba5 append inline js script to animated gif frames to autostart animation 2014-04-03 22:51:52 -04:00
Gered 6da8abfb39 better error (for now) when a non-GIF image is specified
not yet ideal handling like how the normal image handling is done
2014-04-03 22:23:03 -04:00
Gered 1998672258 add initial routes / views for animated gif support (not animating yet) 2014-04-03 22:13:10 -04:00
Gered 4aa70fdb40 revert java/clj separate source paths, back to original layout 2014-04-03 21:34:39 -04:00
Gered aae01476a0 replace manual image manipulation with our own new clj-image2ascii lib 2014-04-03 21:32:49 -04:00
Gered 7c29069559 change convert-image to use the java image->ascii function 2014-04-01 22:59:40 -04:00
Gered 54dc8b0543 alternate StringBuilder implementation. add function to convert RGB components to 2-digit hex strings 2014-04-01 22:57:21 -04:00
Gered b7363d3a81 extremely minor performance tweaks
tested with criterium benchmarks, on my imac, marking all these local
vars final helps out by 0.3ms... negligible, but sorta interesting!
2014-04-01 21:07:10 -04:00
Gered d9e05c610f add java converter for turning an image intto ascii representation 2014-04-01 18:43:13 -04:00
Gered 45c6ba0d18 reorganize source folders to allow for some java code to be added 2014-04-01 17:12:31 -04:00
Gered 1b5187f465 initialize StringBuilder size, better way of getting the raw pixels 2014-04-01 06:52:36 -04:00
Gered 21e5939cb2 type hints for query-param-url->java-url 2014-03-31 19:25:01 -04:00
Gered 5baeadb0f5 first pass at performance tweaks. work with a direct int[] of pixels 2014-03-31 17:48:47 -04:00
Gered a932983a72 saner checks and defaults for color and format behaviour combinations 2014-03-30 18:44:56 -04:00
Gered bb39d4e1b7 pass list of flf font names to the main template 2014-03-30 17:13:57 -04:00
Gered 65baca1e7c add site error template. update wrap-exceptions to nicely handle api errors and general "web page" errors 2014-03-30 16:49:04 -04:00
Gered 76697d3763 add initial wrap-exceptions handler 2014-03-30 16:37:14 -04:00
Gered 5a732e9a84 wrong function, woops 2014-03-30 15:24:48 -04:00
Gered e4245ca7ee function to get font names list 2014-03-30 15:11:42 -04:00
Gered a5c05a7afd remove unused imports 2014-03-30 15:10:44 -04:00
Gered 171299159e fix outputting image as plain text or html 2014-03-30 11:33:58 -04:00
Gered e91a6f50a7 add image route support for the remaining parameters 2014-03-30 11:07:31 -04:00
Gered 3ba5bb3937 organizing, doc comments, and fix scale-image arguments 2014-03-30 11:07:10 -04:00
Gered abc71f1743 useless 2014-03-30 10:41:45 -04:00
Gered d787ecb377 font size tweak 2014-03-30 10:05:49 -04:00
Gered 2cfc358023 better way of calculating perceived brightness of a pixel's color 2014-03-30 10:05:37 -04:00
Gered 8df5b8af6d attempts to refactor / speed up image -> ascii conversion. improve image route 2014-03-30 09:46:58 -04:00
Gered 7c218ec19c add initial support for converting images (by url) to ascii 2014-03-30 07:56:50 -04:00
Gered 4d7456a619 url string -> java.net.URL conversion fun! 2014-03-30 07:52:52 -04:00
Gered ef12bb974c adjustments to malformed / not-found request handlers 2014-03-30 04:58:03 -04:00
Gered 2e9cca8e4c add text render api route 2014-03-30 04:34:19 -04:00
Gered 7df24726e4 load flf fonts at app startup 2014-03-30 04:04:36 -04:00
Gered 71751cbbd1 whoops 2014-03-30 04:04:25 -04:00
Gered 6fbb0e5648 add flf font loading 2014-03-30 04:01:56 -04:00
Gered 58fb52e77c initial commit. just a "do-nothing" web app with dependencies listed 2014-03-30 02:49:49 -04:00