Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 16 lines (14 sloc) 0.554 kb
5f73f21 initial import of fastphoto
conrad authored
1 <raster> u can load a jpeg form disk or a memory buffer
2 <raster> GEt the data as RGB, YUV, GRAY etc. etc.
3 <raster> if u like
4 <raster> specify an output file or memory buffer
5 <raster> query for image properties
6 <raster> etc.
7 <raster> ansd then tell it to "go get 'em rex"
8 <raster> so to thumbnail an image to 128x128:
9 <raster> Epeg_Image *im;
10 <raster> im = epeg_file_open("/tmp/fish-porn.jpg");
11 <raster> epeg_decode_size_set(im, 128, 128);
12 <raster> epeg_file_output_set(im, "/tmp/small-fish-porn,jpg");
13 <raster> epeg_encode(im);
14 <raster> epeg_close(im);
15
Something went wrong with that request. Please try again.