You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
I don't think it's possible to do this for a standard thumbnail unless you knew the dimensions of the source image and applied the same scaling rules as the thumbnail algorithm. Cropscale would be easier as the dimensions are guaranteed to be the target dimensions (unless of course the source image is smaller than the crop size).
Depending on your thumbnailing algorithm, at least one of width or height will generally be known, and you can add the known quantity to the HTML.
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?
The text was updated successfully, but these errors were encountered: