• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • 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.
  • J
    Joseph Hales Testers
    last edited by Jun 8, 2015, 3:06 PM

    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 Jun 8, 2015, 9:13 AM Jun 8, 2015, 3:13 PM

      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
      • W
        Wayne Workman
        last edited by Jun 8, 2015, 3:16 PM

        @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
        • J
          Joseph Hales Testers
          last edited by Jun 8, 2015, 3:19 PM

          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

          C 1 Reply Last reply Jun 8, 2015, 5:21 PM Reply Quote 0
          • C
            ch3i Moderator @Joseph Hales
            last edited by ch3i Jun 8, 2015, 11:21 AM Jun 8, 2015, 5:21 PM

            @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
            • C
              cml Moderator
              last edited by Jun 8, 2015, 5:23 PM

              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
              1 / 1
              • First post
                2/6
                Last post

              151

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project