Scaling and Converting a .png to .jpg
Posted: 2016-01-19T06:10:48-07:00
Hello everyone!
Lest my question seem too innocuous, this is the workflow I'm trying to achieve:

I take a .png with a transparent background, fill the background with a new color, resize the image and convert it to a .jpg. This gives me the following command in IM:

I've tried stripping away everything and perform a simple resize and conversion in two steps:

Source image here:
Further Notes:
1. I have tried several filters including triangle, Lancsoz, LancsozSharp and a few others
2. I've tried changing the colorspace: convert -colorspace RGB -resize 800x1200 -colorspace sRGB src.png dest.jpg
Lest my question seem too innocuous, this is the workflow I'm trying to achieve:

I take a .png with a transparent background, fill the background with a new color, resize the image and convert it to a .jpg. This gives me the following command in IM:
The result is this:convert -resize 800x1200 -background #000000 -alpha Background -quality 100% src.png dest.jpg

I've tried stripping away everything and perform a simple resize and conversion in two steps:
convert -resize 800x1200 src.png src_tmp.png
But that still results in:convert -quality 100% src_tmp.png dest.jpg

Source image here:

Further Notes:
1. I have tried several filters including triangle, Lancsoz, LancsozSharp and a few others
2. I've tried changing the colorspace: convert -colorspace RGB -resize 800x1200 -colorspace sRGB src.png dest.jpg