i'm trying to figure out how to solve this problem but after several hours I couldn't get it.
I've ImageMagick 6.7.3-6 2011-11-18 Q16
I have 2 images, one used for background (http://www.esploro.it/images_reviews_te ... hopbox.png)
and one sprite with all stars votes (http://www.esploro.it/images_reviews_te ... ar-def.png) that i want to put over the background image. Before putting the stars over the background i want to crop the image on the right star sequences depending on the the votes the shop have.
Actually I'm using this command
Code: Select all
convert tn-sg-shopbox.png -page +67+174 sprite-star-def.png -background transparent -layers flatten box-complete-test.png
http://www.esploro.it/images_reviews_te ... e-test.png
Obviously there should be only one row of stars with the votes corresponding to the toal votes of the shop.
My problem is hot to crop the sprite stars before marging with the background.
Thank you in advance