4 ms·
Would you be willing to let us take a peek at that code? It could be interesting to compare and contrast to what Lua offers.
by eksith 13y ago
Would you be willing to let us take a peek at that code? It could be interesting to compare and contrast to what Lua offers.
- ck2 13y agoHa, my code is ugly as Perl is not my primary coding language, would be embarrassing. Could never get sendfile to work under perl through nginx either for some reason and they never answered my question on the nginx forums, so I had to just inefficiently dump the image directly to nginx in a buffered loop. The image is cached just like this lua code so the next read goes directly through nginx so wasn't too worried about the sendfile problem. Code is just 50 lines though, if I can figure it out, most any coder should be able to. Just compile nginx with http://wiki.nginx.org/HttpPerlModule http://wiki.nginx.org/HttpPerlModule and then find any perl example code for imagemagick.
- eksith 13y agoHaha! Ok, fair enough :) Thanks for the details, though. That actually gave me a few ideas.