You're viewing a comment by Sundar Srinivasan and its responses.

August 11, 2010, 05:58

Looks simple and good. I have one question on your dynamic-gif-stack. Is there a specific reason to calculate width and height dynamically? Is it not easy to let the user provide it?

Comment Responses

August 11, 2010, 07:12

The reason is that if updates happen in the middle of the screen for example. Then you can just cut out the bounding rectangle, which is essentially what dynamic-gif-stack does. The images are an order of magnitude smaller that way (200bytes vs 2kb).

node-png and node-jpeg have fixed-{png,jpeg}-stack where the user can specify the size.

August 11, 2010, 23:38

Oh.. that's a good reason. I did not think of it that way. Thanks for explaining.

August 12, 2010, 06:04

You're welcome!

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "security_231": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.