Re: How to place image directly to the center?
Posted: 2018-12-14T07:09:56-07:00
The white strip on the left is 6 columns wide, not 5. We can shave first, crop and find the mimimum:
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.
Code: Select all
f:\web\im>%IMG7%magick pic0.jpg -shave 2x2 -crop 4x+0+0 -format %[fx:minima*255] info:
0.921569