don't understand how you plan to use js to create images rather than gd...
gd is very quick, although it depends on what images you are planning on creating, what speed your server is, traffic, all that. GD is your only option i think, so do some tests and see how you think it's going to perform. Nobody can answer a question that vague