2 ms·
Actually you can. See the jpegtran command - it works losslessly on the DCT. If you do want to cut out the alpha region, do not trim right up to the image. Ins
by ars 16y ago
Actually you can. See the jpegtran command - it works losslessly on the DCT.
If you do want to cut out the alpha region, do not trim right up to the image. Instead trim only in 16 pixel blocks. By having a sharp edge inside a macroblock you increase the storage requirements.
No one has written it currently as far as I know, but it's also possible to selectively remove/replace 16x16 pixel blocks inside the jpeg losslessly.