Closed rummyr closed 3 years ago
my bad, when i run pishrink with a src and dest img name i saw that it was copying the src to dest. I just assumed that you always had to provide a dest image name... and so invoke the "copy". as you say shrinking "in place" cant be done with compressed imags
Framps is correct. Closing the issue
gzip modifies the image such that it's no longer possible to use any Linux tools required to shrink the image.
The only way to shrink a gzipped image is to 1) gunzip the image 2) shrink the image 3) gzip the image again.
Said this you can write you own small script which exactly executes the three steps I mentioned above on your image to shrink it.