How to load a file which has already in memory?

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
stanleyweike

How to load a file which has already in memory?

Post by stanleyweike »

For files which are already loaded in memory, how could I read it? In MagickCore APIs, I could only find the function ReadImage() which basically accept a file pointer or a file name, is there any read function which accepts a buffer or something?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

MagickWand has this method, MagickReadImageBlob(), to read an image from a in-memory blob. If you still want to use MagickCore rather than MagickWand, use code similar to MagickReadImageBlob() found in the magick/magick-image.c source module.
Post Reply