convert RGB to JPEG in buffer

  • Follow


Hi @all,

I need to convert a RGB-image to a jpeg-image.
I tried the libjpeg but without writing an own destination manager it is
only possible to write the jpeg to a file. I need to write the jpeg
to buffer such as "unsigned char *buffer".
I also tried gdk_imlib but I have the same problem,
any ideas?
or does anybody have a destionation manager for libjpeg that allows to
write to a buffer?

any help is appreciated!
Andi
0
Reply Andreas 3/6/2006 3:16:05 PM

Andreas Mueller wrote:
> Hi @all,
> 
> I need to convert a RGB-image to a jpeg-image.
> I tried the libjpeg but without writing an own destination manager it is
> only possible to write the jpeg to a file. I need to write the jpeg
> to buffer such as "unsigned char *buffer".
> I also tried gdk_imlib but I have the same problem,
> any ideas?
> or does anybody have a destionation manager for libjpeg that allows to
> write to a buffer?
> 
> any help is appreciated!
> Andi

Just googling for "libjpeg destination manager memory buffer" gave me 
tons of code snippets. Have you at least tried? I can assure you what 
you're looking for *can* be done, and is highly likely to be there.

-- 
Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:mbardiaux@mediaxim.be

Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles
http://www.mediaxim.com/
0
Reply Michel 3/6/2006 4:16:23 PM


1 Replies
772 Views

(page loaded in 0.027 seconds)

Similiar Articles:













7/26/2012 4:11:17 PM


Reply: