Skip to content

Commit

Permalink
Fix: create zip files in "maximum" compression level
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0w committed May 19, 2017
1 parent caa90db commit 7ba30ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/fr-command-7z.c
Expand Up @@ -362,7 +362,11 @@ fr_command_7z_add (FrCommand *comm,
break;
case FR_COMPRESSION_MAXIMUM:
fr_process_add_arg (comm->process, "-mx=9");
fr_process_add_arg (comm->process, "-m0=lzma2");;
if (! is_mime_type (comm->mime_type, "application/zip")
&& ! is_mime_type (comm->mime_type, "application/x-cbz"))
{
fr_process_add_arg (comm->process, "-m0=lzma2");;
}
break;
}

Expand Down

0 comments on commit 7ba30ab

Please sign in to comment.