Resize large image

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply
soho

Resize large image

Post by soho »

Hi All,
I create a large image (~4GB raw rgb) into memory mapped file, and need to resize it a little smaller (~99%) in horizontal direction only.

For now, I read a single scanline from the memory mapped file, and scale down, then put the result back to the mmap file.

It is faster than read/write from/to a file directly (with pread() and pwrite()), but still slow. I think it is faster if I can crop a small rectangular region rather than a single line.

However, how do I stitch these small regions together without seams after resize them?
Thanks.
Post Reply