Skip to main content

Crop the video and upload

Comments

1 comment

  • Official comment
    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

Post is closed for comments.