• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Compression change

    Scheduled Pinned Locked Moved
    Feature Request
    5
    6
    2.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Joseph HalesJ
      Joseph Hales Testers
      last edited by

      Would it be possible to have fog give me an option to change the compression on an existing image. For example if I am in a hurry to create a new image and upload at low compression I may not have the machine available later to re-upload at the higher compression later for space consideration.

      RTFM

      1 Reply Last reply Reply Quote 0
      • W
        Wolfbane8653 Developer
        last edited by Wolfbane8653

        The compression is done directly on the Host computer and then transferred up to the server.

        That said there maybe a way to decompress and recompress an image but complications may occur.

        1 Reply Last reply Reply Quote 1
        • Wayne WorkmanW
          Wayne Workman
          last edited by

          @Wolfbane8653 I was thinking the exact same thing.

          I say test it out and report back…

          Upload with compression at 1.

          Decompress - recompress with uber high settings server-side.

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
          Daily Clean Installation Results:
          https://fogtesting.fogproject.us/
          FOG Reporting:
          https://fog-external-reporting-results.fogproject.us/

          1 Reply Last reply Reply Quote 0
          • Joseph HalesJ
            Joseph Hales Testers
            last edited by

            Post a sample command line and I will give it a try even if its not in the web gui we could post the command in the wiki.

            RTFM

            ch3iC 1 Reply Last reply Reply Quote 0
            • ch3iC
              ch3i Moderator @Joseph Hales
              last edited by ch3i

              @Joseph-Hales said:

              Post a sample command line and I will give it a try even if its not in the web gui we could post the command in the wiki.

              Hi,

              Not sure but FOG use pigz, here the manual : http://zlib.net/pigz/pigz.pdf
              I’m interested to, I’ll try this week.

              Regards,
              Ch3i.

              1 Reply Last reply Reply Quote 0
              • cmlC
                cml Moderator
                last edited by

                No idea if this is the best way, but it seems to be working. I’ll let y’all know when it finishes compressing.

                for f in *.img; do mv "$f" "${f%.img}-bak.img"; done
                for f in *bak.img; do pigz -d -c $f | pigz -9 > "${f%-bak.img}.img"; done
                
                1 Reply Last reply Reply Quote 2
                • 1 / 1
                • First post
                  Last post

                140

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project