title: Preserve image size after encryption in matlab
body: <p>I am trying to encrypt an image in MATLAB using pixel confusion and diffusion. So the code changes the position of the pixel and the changes the pixel grayscale value. The problem is that the encrypted image I get is 2-3 times bigger than the original image. I cannot understand why this is happening! Any help will be appreciated.</p>
  
  <p>Pedro</p>