'jpg rotate without quality change
I know that jpg follows the following method when saving images.
- DCT transformation
- Quantization
- Lossless Compression
Usually when rotating an image
- Image -> RGB Array
- Rotate
- RGB Array -> Convert to Image
I don't want to add loss to the image in the process of converting the file to RGB.
Perhaps there is a way to go through the following steps:
- Image -> Quantization Array
- Rotate
- Quantization Array -> Image
Any good way?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
