optional compression
This commit is contained in:
parent
818c344d2f
commit
2f05ae3cea
|
@ -474,6 +474,8 @@ class ClusterPool {
|
||||||
}
|
}
|
||||||
|
|
||||||
isCompressible ( mimeType, data, id ) {
|
isCompressible ( mimeType, data, id ) {
|
||||||
|
if ( ! argv.compress )
|
||||||
|
return false
|
||||||
if ( data == null || data.length == 0 )
|
if ( data == null || data.length == 0 )
|
||||||
return false
|
return false
|
||||||
if ( !mimeType ) {
|
if ( !mimeType ) {
|
||||||
|
@ -1576,6 +1578,7 @@ function main () {
|
||||||
// Extra arguments:
|
// Extra arguments:
|
||||||
.option( '--optimg', 'optimise images' )
|
.option( '--optimg', 'optimise images' )
|
||||||
.option( '--jpegquality <factor>', 'JPEG quality', parseInt, 60 )
|
.option( '--jpegquality <factor>', 'JPEG quality', parseInt, 60 )
|
||||||
|
.option( '--no-compress', "do not compress clusters" )
|
||||||
.parse( process.argv )
|
.parse( process.argv )
|
||||||
|
|
||||||
log( argv )
|
log( argv )
|
||||||
|
|
Loading…
Reference in New Issue
Block a user