I have some HD and Full HD videos. I want to show them on mobile devices and need a smaller video size around 480x360. How do I resize the video with ImageKit and change the video size for my requirement?
To resize your HD or Full HD videos for mobile devices using ImageKit, you can use transformation parameters directly in the video URL.
Example: Resize video to 480x360
Just add the tr=w-480,h-360
parameters to your video URL like this:
https://ik.imagekit.io/your_imagekit_id/path-to-video/video.mp4?tr=w-480,h-360
This will scale your video to 480px width and 360px height while preserving video quality.
You can find out more about video resize and crop transformations here - Resize and Crop Videos