From: Bob F. <bfr...@si...> - 2015-02-20 19:28:17
|
On Mon, 16 Feb 2015, Scott Weber wrote: > See this posting: > http://stackoverflow.com/questions/4559648/write-to-memory-buffer-instead-of-file-with-libjpeg > > The functions you should look into are: > jpeg_mem_dest(...) > jpeg_mem_src(...) It is also possible to provide I/O access functions which can be directed at memory. With this approach, data can be streamed (file, pipe, memory) and there is potential for not needing to buffer the whole image in memory. That is what ImageMagick and GraphicsMagick do. Bob -- Bob Friesenhahn bfr...@si..., http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ |