This is the original image of 200x200

enter image description here

On downscaling the image to 100x100. There is a semi transparent shadow near the lines and some pixels are not completely opaque.

enter image description here

The command used for scaling: ffmpeg -i test.png -vf scale=100x100 out.png

I have also tried scaling with this command: ffmpeg -i test.png -vf scale=100x100 -sws_flags neighbor out.png

The shadows are gone but the top line has also vanished.

enter image description here

How do I fix this ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.