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

    How do you re-compress an image file?

    Scheduled Pinned Locked Moved
    General
    5
    10
    1.1k
    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.
    • P
      Pistachio
      last edited by

      Does Fog re-compress the image file when you update the image via the web GUI? Or do you need to recapture?

      george1421G 1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        I don’t understand the question. Fog compresses it whenever you capture it. Did you manually decompress it?

        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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        P 1 Reply Last reply Reply Quote 0
        • george1421G
          george1421 Moderator @Pistachio
          last edited by george1421

          @Pistachio I’m not sure I totally understand your question, but let me tell you how fog works.

          There are two elements to a fog image. The first is the meta data that is stored in the database. This describes the image. The second is the raw image files stored in /images/<image_name> directory. If you update the meta data then only the database record is changed. If you recapture an image then the raw data files are updated.

          Now you have to be careful if you change certain meta data that describes the information contained in the raw image. For example if you captured an image using gzip partclone and then change it to something else or change the format from single disk non-resizable to single disk resizable you will have issues. Because the actual image files will not match what the meta data is telling it to do during deployment.

          There are some meta data that if changed will not have an impact on an already captured image like compression index. That value is only used when the image is captured. On deployment the fog image decompressor just decompresses what has already be compressed it doesn’t care about the compression ratio.

          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!

          P 1 Reply Last reply Reply Quote 0
          • P
            Pistachio @Tom Elliott
            last edited by

            @Tom-Elliott We’ve captured an image with “6” level of compression and we want to compress it further using “18”. Do we need to recapture or just update the compression level via the web GUI?

            george1421G 1 Reply Last reply Reply Quote 0
            • P
              Pistachio @george1421
              last edited by

              @george1421 Thanks! I understand now.

              1 Reply Last reply Reply Quote 0
              • george1421G
                george1421 Moderator @Pistachio
                last edited by george1421

                @Pistachio said in How do you re-compress an image file?:

                We’ve captured an image with “6” level of compression and we want to compress it further using “18”. Do we need to recapture or just update the compression level via the web GUI?

                If you want to take advantage of the higher compression index (i.e. to get a reduce disk space footprint on your FOG server), you need to recapture your image. I would also suggest that you switch over to the zstd compressor with an index of 11 to start. The zstd compressor (in opposition to gzip), is slower on the compression side, but much faster on the decompression side than gzip. Consider that you typically compress the image one and decompress it many times. Personally I can live with a slower image capture once than many image deployments. I can tell you in my environment I can deploy a 25GB image in about 4 minutes.

                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!

                P Tom ElliottT 2 Replies Last reply Reply Quote 0
                • P
                  Pistachio @george1421
                  last edited by

                  @george1421 Thanks! We’ll give it a try.

                  1 Reply Last reply Reply Quote 0
                  • Tom ElliottT
                    Tom Elliott @george1421
                    last edited by

                    @george1421 To be fair, Zstd at 11 doesn’t seem to be any slower, to me, than gzip at 6.

                    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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                    JunkhackerJ 1 Reply Last reply Reply Quote 2
                    • JunkhackerJ
                      Junkhacker Developer @Tom Elliott
                      last edited by

                      @Tom-Elliott in fact, in my testing, it was 10% faster

                      signature:
                      Junkhacker
                      We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

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

                        You need to recapture. Preferably to a new image so that if something goes wrong, you still have the old one.

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

                        228

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project