Most efficient way to resize multiple times #1718
-
If I have a I figure I could clone the original image and then resize that. But that seems like it would use a lot of memory. I also see the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Your question is similar to what was discussed in this issue: #1577. With the release of version 14.0.0 changes were made to the source generator and I think I can take a look at these changes again. |
Beta Was this translation helpful? Give feedback.
-
@dlemstra Thanks, but by "I can take a look at these changes again", does that mean the feature is not implemented? It looked like your |
Beta Was this translation helpful? Give feedback.
-
@dlemstra Thanks for the clarification. So, at this point, I am cloning the image and then resizing the clone for each size I need.
My main concern here is that, with larger images, this might not be the most efficient use of memory. If there is a more efficient way, please let me know. |
Beta Was this translation helpful? Give feedback.
The issue is still open so yes it has not been implemented. The
Clone
overload with aMagickGeometry
should be calledCloneArea
and only clones part of the image. It doesn't resize it. For now you will need to wait for that other issue to be implemented.