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?