So JPGEncoder is amazing and everything, but I’m coming across a case, where I’m loading (at runtime) a jpg image, of unknown compression, might be small in size or large in size. I’m doing some bitwise manipulations on that image, then I want to save it somewhere. Now the problem is that JPGEncoder will force a certain quality (compression), which can really increase the size of the output image (sometimes 10 times), relative to the input one.
All Im doing is changing just a single bit in that image, and I want to then return it as a bytearray. Is there any simpler way, than using JPGEncoder? I dont want to encode at all ! The image is already encoded.