How can I convert a png file using terminal or maybe a Python script to a jpg without artifacts?
Here's an example of what I tried showing the artifacts I'm getting:
jalal@klein:~$ convert cat.png cat.jpg
jalal@klein:~$ eog cat.jpg
jalal@klein:~$ convert cat.png -quality 95 cat_95.jpg
jalal@klein:~$ eog cat_95.jpg
It looks like you are suffering from issues due to the alpha channel in your PNG.
You can remove this and replace with a background of you choice using the following command: