R
R
Roman2012-06-16 23:13:59
Perl
Roman, 2012-06-16 23:13:59

how to cut a piece out of an image using Perl::Magick?

There is an object $image1 of type Image::Magick
The essence of the task is to get a new object $image2 of type Image::Magick containing a part of the image cut from $image1. At the same time, $image1 must remain unchanged. And there should be no extra disk accesses.

That is, the option when we load the same image in $image2 as in $image1 and then crop it is not suitable.

I was looking for the answer here but with English it's hard. Thank you in advance for your help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Deffe, 2012-06-17
@Deffe

Do not load image2, but assign the value from image1 to it, the call will only be in RAM, right?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question