I am using this Imagemagick version
Code: Select all
Version: ImageMagick 7.0.3-8 Q16 x64 2016-11-24 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Visual C++: 180040629
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib cairo flif freetype jng jp2 jpeg lcms lqr openexr pangocairo png ps rsvg tiff webp xml zlib
Code: Select all
convert someimage.tif -trim -resize 305x305 cropped.jpg
Code: Select all
convert -alpha-color white -frame 10 cropped.jpg cropped_w_border.jpg
Code: Select all
convert -bordercolor white -border 10 cropped_resized.jpg cropped_resized_with_border.jpg
Code: Select all
convert -bordercolor #ffffff -border 10 cropped_resized.jpg cropped_resized_with_border.jpg
Instead, if i use one of the following commands, i get an perfectly white border, like i expected it from the other commands:
Code: Select all
convert -bordercolor #000000 -border 10 cropped_resized.jpg cropped_resized_with_border.jpg
Code: Select all
convert -bordercolor black -border 10 cropped_resized.jpg cropped_resized_with_border.jpg
If i use
Code: Select all
convert -bordercolor blue -border 10 cropped_resized.jpg cropped_resized_with_border.jpg