Conclusion

There you have it – a very quick and simple article that shows you how to deal with resizing the canvas element in a way that preserves the aspect ratio of the canvas's contents. If your opinion of the canvas element diminished a little bit from reading this, then I have succeeded even beyond what I had hoped for.