Source image is 933x73 JPEG
Command is:
Code: Select all
convert.exe -size 150x150 file.jpg -thumbnail "150x150>" -sharpen 0x1 -gravity South -background "#000000" -splice 0x15 -fill white -pointsize 11 -draw "text 0,0 '933x73 20kb JPEG'" -bordercolor "#000000" -compose Copy -border 1 -quality 75
If you execute this with a 933x95 image then it works as expected with a black section at the bottom with the image dimensions. This bug has something to do with images that are very wide in comparison to their height as the above code has been used millions of times over the years to generate thumbnails without problems.