Problem with -splice
Posted: 2008-01-01T11:43:43-07:00
Using 6.3.6 on Windows.
Source image is 933x73 JPEG
Command is:
Expected output is a thumbnail with a black border underneath with the original image dimensions. In reality the spliced section is not added to the image resulting in the text being applied over the image.
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.
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.