Interesting that checking some cloud services (e.g. tinypng, resmush, kraken, etc…) and differences in file size are minimal when compared with the available php binaries that are used by Spatie library.
Yeah, but that causes some other issues, the second writeStream needs to be updateStream instead and thinking better using the cockpit.asset.save will have some overhead (saving twice same image), using now the cockpit.asset.upload instead.