Skip to content

[Question] How to compress with lz4 ? #206

@kramer04

Description

@kramer04

Using 7zz the file isn't compressed

$ 7zz a -tlz4 -mx9 boot_test.img.lz4 boot.img

7-Zip (z) 22.00 ZS v1.5.2 (x64) : Copyright (c) 1999-2022 Igor Pavlov : 2022-06-15
 64-bit locale=fr_FR.UTF-8 Threads:8

Scanning the drive:
1 file, 34906656 bytes (34 MiB)

Creating archive: boot_test.img.lz4

Add new data to archive: 1 file, 34906656 bytes (34 MiB)

               
Files read from disk: 1
Archive size: 35655086 bytes (35 MiB)
Everything is Ok

Using LZ4

$ lz4 -B6 --content-size boot.img boot_test.img.lz4
using blocks of size 1024 KB 
Compressed 34906656 bytes into 17656861 bytes ==> 50.58%      

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions