cl-jpeg icon indicating copy to clipboard operation
cl-jpeg copied to clipboard

encoding image to bytes in memory?

Open abishek opened this issue 2 years ago • 2 comments

Would it be possible to export the encode-image-stream method to encode the image into a flexi-streams or some such type? I am trying to use this library to generate base64 images on the fly. Also, am a newb to common lisp. So please point to an alternative approach to temp/in-memory files that I can use with encode-image if there is one. Thanks!

abishek avatar Dec 31 '22 00:12 abishek

Hi,

I'll add the export.

varjagg avatar Jan 02 '23 20:01 varjagg

Would it be possible to export the encode-image-stream method to encode the image into a flexi-streams or some such type? I am trying to use this library to generate base64 images on the fly. Also, am a newb to common lisp. So please point to an alternative approach to temp/in-memory files that I can use with encode-image if there is one. Thanks!

To create a temp file, you can checkout CL-FAD's temporary files.

aniketnarvekar avatar Mar 27 '23 11:03 aniketnarvekar