diff --git a/CMakeLists.txt b/CMakeLists.txt index e0717a6..b75d60f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,7 @@ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) # The version number. set(VERSION_MAJOR 0) set(VERSION_MINOR 5) -set(VERSION_PATCH 0) +set(VERSION_PATCH 1) if (DEFINED VERBOSE) set(VERBOSE ${VERBOSE}) diff --git a/README.md b/README.md index 8f0abbe..8694f42 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,7 @@ If you don't have `mozjpeg` and `zopfli` you should run $ cd libcaesium $ ./install.sh ``` -which will install the requirements. +which will install the requirements (Ubuntu only). ##### Compile Provided you have all the requirements, building and installing from git is as simple as typing diff --git a/caesium/jpeg.c b/caesium/jpeg.c index 5d7647a..987d8c5 100644 --- a/caesium/jpeg.c +++ b/caesium/jpeg.c @@ -7,6 +7,10 @@ #include "jpeg.h" #include "error.h" +#include "config.h" + +METHODDEF(void) +do_not_emit_message () {} struct jpeg_decompress_struct cs_get_markers(const char *input) { @@ -60,6 +64,11 @@ bool cs_jpeg_optimize(const char *input_file, const char *output_file, cs_jpeg_p dstinfo.err = jpeg_std_error(&jdsterr); jpeg_create_compress(&dstinfo); + if (!VERBOSE) { + srcinfo.err->emit_message = do_not_emit_message; + dstinfo.err->emit_message = do_not_emit_message; + } + //Check for errors if ((fp = fopen(input_file, "rb")) == NULL) { display_error(ERROR, 201);