Search found 3 matches

by A-KouZ1
2018-05-05T17:29:04-07:00
Forum: Users
Topic: Variable argument in a string
Replies: 3
Views: 3284

Re: Variable argument in a string

Ok, I had figured the solution myself.

With the use of fx[] in argument:

Code: Select all

magick Original\0_0.png -bordercolor none -border 16  -fill none -stroke red -strokewidth 1 -draw "rectangle 0,0 %%[fx:w-1],%%[fx:h-1]" 0_0.jpg 
Sincerely, thanks anyway. 😀
by A-KouZ1
2018-05-05T17:06:59-07:00
Forum: Users
Topic: Variable argument in a string
Replies: 3
Views: 3284

Re: Variable argument in a string

Oh, that's works out, thanks! 😃
But, however, I can't use lastx and lasty.
I decided to replace w,h with lastx,lasty.
where lastx=w-1; lasty=h-1

There are solution?
by A-KouZ1
2018-05-05T16:54:09-07:00
Forum: Users
Topic: Variable argument in a string
Replies: 3
Views: 3284

Variable argument in a string

I'm trying to create a thin border around image edge which has margin 16px from its size: convert Original\0_0.png -bordercolor none -border 16 -fill none -stroke red -strokewidth 1 -draw "rectangle 0,0 %%w%%,%%h%%" 0_0.png But it is ended up with error: convert Original\0_0.png -bordercol...