Input image is in .jpeg format.I am reading image pixel by pixel.Then performing X-OR operation for each pixels by a hard-coded Key value such as 101 and writing the damaged pixels to other file .while trying to get back original image ,image is not same it gets distorted.
How can I get the original image?
Input image is in .jpeg format.I am reading image pixel by pixel.Then performing X-OR
Share
The JPEG image format uses a lossy compression algorithm. This means that some information is lost when you save the “encrypted” image, and this likely causes distortions. To avoid distortions use an image format without compression or with lossless compression, such as PNG.