buffer_to_jpeg


Description:


[ Version ( since = "0.1.0" ) ]
public bool buffer_to_jpeg (uint8[] buffer, string buffer_mime, string target) throws Error

This function performs the same operation as file_to_jpeg with the exception that a raw buffer can be used instead providing buffer.length and the buffer_mime too.

Parameters:

buffer

Raw buffer representing content to save

buffer_mime

MIME type for buffer

target

Output file name (not URI) to save converted content to

len

Length of buffer to use

Returns:

true if conversion was successful, otherwise false is returned if throws is set.


Namespace: MediaArt
Package: libmediaart-2.0