I converted the image from jpg to webp in ffmpeg.
pattern 1
Convert directly from jpg to webp
-vf scale=1200:-1-vcodec libwebp-compression_level6-qscale10
pattern 2
Resize jpg
-vf scale=1200:-1
Convert output jpg to webp
-vcodec libwebp-compression_level6-qscale10
Why does the result change between pattern 1 and pattern 2?
How do I write the results of pattern 2 in one sentence?
JPEG typically performs irreversible compression.That is, it deteriorates when saving with -vf scale=1200:-1
.
How do I write the results of pattern 2 in one sentence?
It's impossible.Pattern 1 encodes webp without degradation.
Also, if you save it in PNG format in pattern 2, it will be reversibly compressed, so the deterioration will be suppressed.However, the color changes because the color space is YCbCr in JPEG, while the PNG is RGB.
© 2024 OneMinuteCode. All rights reserved.