Compression change
-
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.
-
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.
-
@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.
-
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.
-
@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. -
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