Crop the video and upload

Comments

1 comment

  • Official comment
    Avatar
    Loic Verger Del Bove

    Hi Noah,

    Thanks for reaching out.

    For resources other than images like videos, you will need to add the resource_type parameter (as mentioned here) and set it, in your case, to video:

    await cloudinary.v2.uploader.upload("before_crop.webm",{
    resource_type:"video",
    transformation: [
    {x,y,width,height,crop: "fill"},
    ],
    });

    Hope that helps.

    Best,

    Loic

    Comment actions Permalink

Please sign in to leave a comment.