How to crop images and videos with FFmpeg
Crop a JPEG or MP4 with FFmpeg, choose exact coordinates or a centered square, verify the output, and batch-crop images with Bash.
Kevin van Zonneveld
Empower your development workflow with our curated collection of quick tips and practical tutorials. From file handling and image processing to API integration and open source tools, our dev tips cover a wide range of topics to enhance your coding skills and boost productivity. Whether you’re a beginner or an experienced developer, dive in to find efficient solutions for your projects.
Crop a JPEG or MP4 with FFmpeg, choose exact coordinates or a centered square, verify the output, and batch-crop images with Bash.

Optimize browser file uploads with image preparation, tus retries, and Uppy, while waiting for an authenticated publication receipt.

Build a React drag and drop file upload with react-dropzone, visible success and retry states, and a local Node.js receiver that saves files.

Build an Angular file uploader with multipart requests, upload progress, visible errors, and a local Node.js receiver you can run yourself.

Install FFmpeg on Windows, verify the download, add the correct bin folder to your user PATH, and test the installation with a real encode and ffprobe.
