Page 1 of 1

Jpeg conversion - buffer

Posted: 2010-05-26T01:22:11-07:00
by anslab
Hello everyone.

I'm not sure I'm in the right section, if so, please move this topic accordingly.

I'm using Magick++ (the latest version) on an intel-based mac.

I want to compress an image, loaded from a file, using Jpeg (with a set quality factor), but not to a file. I want a buffer, containing the compressed data. I searched the documentation and only found relevant information to compress directly to a file. A forum search using "jpeg compression" wasn't useful.

Thanks for your time

A.

Re: Jpeg conversion - buffer

Posted: 2010-05-26T14:16:06-07:00
by hdalto
maybe what you're looking for are blobs, in the MagickCore (C) the function is ImageToBlob()