Image scaling
Michał Kowalczuk <[email protected]> Sat, 20 Aug 2005 14:26:09 +0200
| Newsgroups | gmane.comp.video.graphicsmagick.apis |
|---|---|
| Organization | Drużyna Pingwina |
| Message-ID | <[email protected]> |
Hello, I have a question - I need to scale large image (e.g. 10000x10000pix) in C. Its Format is unknown (it may be PNG, GIF, BMP or TIFF). The way I'm doing it is: im_in_gm = BlobToImage(image_info, mem_in, *size, &exception); im_out_gm = SampleImage(im_in_gm, 150, 150, &exception); but it consumes a lot of memory. Is there any way to load image to a image buffer 150x150, that has been set up before loading image to memory to avoid such behaviour? Thanks a lot, Michał -- _ <= Michał Kowalczuk => <== (http://)|(mailto:sammael@)brzydal.eu.org/? ==> ( ` <= GG#2113900 => <===== How does a UNIX Guru have sex? ==================> \ /||\ /||\ /||\ |~~| <==== unzip; strip; touch; finger; mount; fsck; =====> ,_)/~|| ` || ` ||~\|~_|_ <== more; yes; fsck; fsck; fsck; umount; sleep ===> ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf