I'm trying to create a process to automatically generate thumbnails of the images uploaded to my website.
I'm using this command line:
-thumbnail "120x90>" -quality 95 -background transparent -gravity Center -extent 120x90 img.png
The thumbnail is generated without problems, with the correct aspect ratio. but the option -gravity center seems that is doing nothing, the actual image is always aligned to the left of the canvas, when i want it centered...Am i missing something?
test input:
Result: