parent
bc971e6023
commit
a1b73c7ff6
|
@ -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})
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue