Jpeg conversion - buffer

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
anslab

Jpeg conversion - buffer

Post 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.
hdalto

Re: Jpeg conversion - buffer

Post by hdalto »

maybe what you're looking for are blobs, in the MagickCore (C) the function is ImageToBlob()
Post Reply