Image created but not of supported file type

7 views (last 30 days)
I am encrypting an image and displaying the encrypted image and also saving it in the default directory with a .jpeg extension. It displays the image fine and even reads the image using imread() but if I try to open the file that got saved I get a message that the format is not supported. Why is this happening?
  3 Comments
Jan
Jan on 12 Apr 2017
This means, that the default application to display JPEG files on your computer cannot handle Matlab's 'lossless' JPEG format. We do not know which application you have installed, but the solution is to use another one.

Sign in to comment.

Accepted Answer

Astarag Chattopadhyay
Astarag Chattopadhyay on 12 Apr 2017
Hi,
You can refer to the following link which answers the same query as above:
https://in.mathworks.com/matlabcentral/answers/99125-why-can-i-not-open-a-jpeg-image-written-using-lossless-compression-outside-of-matlab

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!