Resizing an image dimensions and size before upload.

Comments

1 comment

  • Official comment
    Avatar
    Danny Valentine

    Hi Kavya.

    There are a couple of approaches you could take to achieve this.

    • Any resizing and optimisation we do takes place on our side once an asset is uploaded, so for quicker file transfers you could prepare your image locally before upload by using a module such as Sharp
    • You could use an incoming transformation to resize the image once it's uploaded and store the transformed image only. For instance, taking a photo uploaded at a 4:3 aspect ratio and converting it to a 1:1 ratio of 200 x 200px

    I hope this helps. Let us know if there's any further assistance you need.

    Thanks,
    -Danny

    Comment actions Permalink

Please sign in to leave a comment.