compress_image_to_jpeg_file

Writes JPEG image to file. num_channels must be 1 (Y), 3 (RGB), 4 (RGBA), image pitch must be width*num_channels. note that alpha will not be stored in jpeg file.

  1. bool compress_image_to_jpeg_file(const(char)[] fname, int width, int height, int num_channels, const(ubyte)[] pImage_data)
  2. bool compress_image_to_jpeg_file(const(char)[] fname, int width, int height, int num_channels, const(ubyte)[] pImage_data, JpegParams comp_params)
    @system
    bool
    compress_image_to_jpeg_file
    ()
    (
    const(char)[] fname
    ,
    int width
    ,
    int height
    ,,
    const(ubyte)[] pImage_data
    ,
    const scope auto ref JpegParams comp_params
    )

Meta