Page 2 of 2

Re: How to place image directly to the center?

Posted: 2018-12-14T07:09:56-07:00
by snibgo
The white strip on the left is 6 columns wide, not 5. We can shave first, crop and find the mimimum:

Code: Select all

f:\web\im>%IMG7%magick pic0.jpg -shave 2x2 -crop 4x+0+0 -format %[fx:minima*255] info:
0.921569
So the darkest channel value in those remaining 4 columns is 92.15% (which is 235 out of 255), so "-fuzz 2%" won't include it.

Re: How to place image directly to the center?

Posted: 2018-12-14T11:48:14-07:00
by imanasya
snibgo, thank you. It was a jpeg artifact. When I created this pic there were no pixels except pure white.