zip created by archive manager is smaller than one created by zip on command line

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
2
down vote

favorite












I am creating a zip archive of one file, in 3 different ways:




  • zip -1 (least compression) --> 33.8kB


  • zip -9 (most compression) --> 32.3kB

  • archive manager (zip option) --> 26.1kB

Why is there such a big difference?



Related: I'm trying to automatically zip files in Python using the zipfile module, and its performance is comparable to that of zip, but I want its performance to be that of archive manager. However, I can find no documentation on what archive manager does exactly. It claims to use 'zip' but clearly the compression is better...







share|improve this question
















  • 2




    Is it an option for you to use another compression tool/method, for example xz, which usually provides better compression than zip?
    – sudodus
    May 9 at 13:33






  • 3




    You may check actual file type with file archive.zip. You can try to open archive with file-roller archive.zip and see its Properties (Type and Compression ratio).
    – N0rbert
    May 9 at 15:01







  • 1




    @N0rbert it stated that p7zip compression was used. Strangely enough if I try to select .7z in file-roller, the file gets even smaller, and the properties (as in: which algorithm was used with which parameters) are identical!
    – PDiracDelta
    May 12 at 18:05














up vote
2
down vote

favorite












I am creating a zip archive of one file, in 3 different ways:




  • zip -1 (least compression) --> 33.8kB


  • zip -9 (most compression) --> 32.3kB

  • archive manager (zip option) --> 26.1kB

Why is there such a big difference?



Related: I'm trying to automatically zip files in Python using the zipfile module, and its performance is comparable to that of zip, but I want its performance to be that of archive manager. However, I can find no documentation on what archive manager does exactly. It claims to use 'zip' but clearly the compression is better...







share|improve this question
















  • 2




    Is it an option for you to use another compression tool/method, for example xz, which usually provides better compression than zip?
    – sudodus
    May 9 at 13:33






  • 3




    You may check actual file type with file archive.zip. You can try to open archive with file-roller archive.zip and see its Properties (Type and Compression ratio).
    – N0rbert
    May 9 at 15:01







  • 1




    @N0rbert it stated that p7zip compression was used. Strangely enough if I try to select .7z in file-roller, the file gets even smaller, and the properties (as in: which algorithm was used with which parameters) are identical!
    – PDiracDelta
    May 12 at 18:05












up vote
2
down vote

favorite









up vote
2
down vote

favorite











I am creating a zip archive of one file, in 3 different ways:




  • zip -1 (least compression) --> 33.8kB


  • zip -9 (most compression) --> 32.3kB

  • archive manager (zip option) --> 26.1kB

Why is there such a big difference?



Related: I'm trying to automatically zip files in Python using the zipfile module, and its performance is comparable to that of zip, but I want its performance to be that of archive manager. However, I can find no documentation on what archive manager does exactly. It claims to use 'zip' but clearly the compression is better...







share|improve this question












I am creating a zip archive of one file, in 3 different ways:




  • zip -1 (least compression) --> 33.8kB


  • zip -9 (most compression) --> 32.3kB

  • archive manager (zip option) --> 26.1kB

Why is there such a big difference?



Related: I'm trying to automatically zip files in Python using the zipfile module, and its performance is comparable to that of zip, but I want its performance to be that of archive manager. However, I can find no documentation on what archive manager does exactly. It claims to use 'zip' but clearly the compression is better...









share|improve this question











share|improve this question




share|improve this question










asked May 9 at 13:10









PDiracDelta

16819




16819







  • 2




    Is it an option for you to use another compression tool/method, for example xz, which usually provides better compression than zip?
    – sudodus
    May 9 at 13:33






  • 3




    You may check actual file type with file archive.zip. You can try to open archive with file-roller archive.zip and see its Properties (Type and Compression ratio).
    – N0rbert
    May 9 at 15:01







  • 1




    @N0rbert it stated that p7zip compression was used. Strangely enough if I try to select .7z in file-roller, the file gets even smaller, and the properties (as in: which algorithm was used with which parameters) are identical!
    – PDiracDelta
    May 12 at 18:05












  • 2




    Is it an option for you to use another compression tool/method, for example xz, which usually provides better compression than zip?
    – sudodus
    May 9 at 13:33






  • 3




    You may check actual file type with file archive.zip. You can try to open archive with file-roller archive.zip and see its Properties (Type and Compression ratio).
    – N0rbert
    May 9 at 15:01







  • 1




    @N0rbert it stated that p7zip compression was used. Strangely enough if I try to select .7z in file-roller, the file gets even smaller, and the properties (as in: which algorithm was used with which parameters) are identical!
    – PDiracDelta
    May 12 at 18:05







2




2




Is it an option for you to use another compression tool/method, for example xz, which usually provides better compression than zip?
– sudodus
May 9 at 13:33




Is it an option for you to use another compression tool/method, for example xz, which usually provides better compression than zip?
– sudodus
May 9 at 13:33




3




3




You may check actual file type with file archive.zip. You can try to open archive with file-roller archive.zip and see its Properties (Type and Compression ratio).
– N0rbert
May 9 at 15:01





You may check actual file type with file archive.zip. You can try to open archive with file-roller archive.zip and see its Properties (Type and Compression ratio).
– N0rbert
May 9 at 15:01





1




1




@N0rbert it stated that p7zip compression was used. Strangely enough if I try to select .7z in file-roller, the file gets even smaller, and the properties (as in: which algorithm was used with which parameters) are identical!
– PDiracDelta
May 12 at 18:05




@N0rbert it stated that p7zip compression was used. Strangely enough if I try to select .7z in file-roller, the file gets even smaller, and the properties (as in: which algorithm was used with which parameters) are identical!
– PDiracDelta
May 12 at 18:05















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1034039%2fzip-created-by-archive-manager-is-smaller-than-one-created-by-zip-on-command-lin%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1034039%2fzip-created-by-archive-manager-is-smaller-than-one-created-by-zip-on-command-lin%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Trouble downloading packages list due to a “Hash sum mismatch” error

How do I move numbers in filenames, in a batch renaming operation?