Code: Select all
magick -density 72 "C:\ExamplePDF\MyPDF.pdf"[0] -crop %[w]x%[fx:w/16*9]+0+0 +repage -resize 765x430 "C:\ExampleJPG\MyJPG.jpg"
Code: Select all
magick -density 72 "C:\ExamplePDF\MyPDF.pdf"[0] -crop %[w]x%[fx:w/16*9]+0+0 +repage -resize 765x430 "C:\ExampleJPG\MyJPG.jpg"
Code: Select all
convert image -bordercolor black -border 2 result
If you want to add a border without changing the existing dimensions of the image you can "-shave" it first to reduce the image size by the border size. Then add the border. Use the same amount for both the "-shave" and the "-border" like this...pctechtv wrote:I am wondering if it is possible to get a stroke around my jpeg output like so (pic). If so could someone show me the command.
Code: Select all
magick input.jpg -bordercolor blue -shave 3x3 -border 3x3 output.jpg
Code: Select all
Invalid Parameter - -bordercolor
Code: Select all
convert 'D:\161122 TempCodePic\Test2.jpg' -bordercolor black -border 2 'D:\161122 TempCodePic\Test3.jpg'
Code: Select all
convert -bordercolor red -border 10 "D:\161122 TempCodePic\Test2.jpg" "D:\161122 TempCodePic\Test3.jpg"
There is a Windows program named "convert.exe", and your command was calling that program. Since you have ImageMagick 7 you'll probably want to use "magick" instead anyway.pctechtv wrote:I am not getting any of the examples to work. It is making ask the question if I am on Windows and run the "convert" command could I be not in ImageMagicks context. I keep getting errors likeCode: Select all
Invalid Parameter - -bordercolor