Rodion
Rodion

Reputation: 521

Cut rectangle from the image

I have a png image. How can I cut a small rect from this image using imagemagick? (make a transparent hole in image)

For example:

Source:

Source

Destination:

Destination

Upvotes: 1

Views: 1285

Answers (1)

Rodion
Rodion

Reputation: 521

It seems I figure it out.

convert u1.png -alpha set -region 40x30+15+5 -alpha transparent u3.png

It cuts a rect (40x30) from u1.png

Upvotes: 3

Related Questions