Commit graph

61 commits

Author SHA1 Message Date
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 50acea5af0 upgrade clj-image2ascii 2014-04-05 17:43:53 -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 f62a2ca558 add criterium for benchmarking, and a test image 2014-03-31 17:22:29 -04:00
Gered 64e66d6631 minor tweaks 2014-03-30 18:46:41 -04:00
Gered a932983a72 saner checks and defaults for color and format behaviour combinations 2014-03-30 18:44:56 -04:00
Gered 2d13e8431c add image->ascii form 2014-03-30 18:32:33 -04:00
Gered 7903348093 show method call url as a link tag 2014-03-30 18:32:19 -04:00
Gered 631b10a66f fix form input element selector again. update element value retrieval 2014-03-30 18:31:34 -04:00
Gered 978405d385 fix value that the js context var is set to 2014-03-30 17:38:00 -04:00
Gered 064a487007 show the exact http call being done on each api request using the form 2014-03-30 17:36:29 -04:00
Gered 9fc238ac16 adding some color 2014-03-30 17:24:49 -04:00
Gered 2b1be20cc8 disable form fields when submitting, re-enabling when we get a response 2014-03-30 17:23:28 -04:00
Gered 0d733381d5 fix error alert padding 2014-03-30 17:22:59 -04:00
Gered f267470892 better selector method 2014-03-30 17:18:40 -04:00
Gered 8dad313897 update styling. fix incorrect template include for image->ascii 2014-03-30 17:17:09 -04:00
Gered 3723d80acd initial on-page support for using the text->ascii api method 2014-03-30 17:14:28 -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 51b04737e3 minor template updates 2014-03-30 15:10:34 -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