input.png
Selected file
FFmpeg command
ffmpeg -i 'input.png' -frames:v 1 -c:v mjpeg -q:v 5 'output.jpg'About this command
This command converts the input image to JPEG. JPEG does not support transparency, so transparent areas are flattened during conversion.
-iSpecifies the input image file.
-frames:v 1Writes one frame, using the first frame for animated images.
-c:v mjpegEncodes the image using the Motion JPEG codec.
-q:vSets JPEG quality from 2 (best quality) to 31 (smallest output).