Drewsif / PiShrink

Make your pi images smaller!
MIT License
3.51k stars 645 forks source link

can pishrink handle compressed (gzip) input images please #212

Closed rummyr closed 3 years ago

framps commented 3 years ago

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.

rummyr commented 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

Drewsif commented 3 years ago

Framps is correct. Closing the issue