Is it possible to make a thumbnail and set its dimensions in html automatically? Or get and set dimensions of already existing image? gm library have getter for image size, and in theory we could use any operation supported by gm library, so it looks like no problem with setting dimensions for existing images. But how we set image size of thumbnail that not yet exist?