フィルターのクリア

Image created but not of supported file type

4 ビュー (過去 30 日間)
fiona rozario
fiona rozario 2017 年 4 月 3 日
コメント済み: fiona rozario 2017 年 4 月 13 日
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 件のコメント
fiona rozario
fiona rozario 2017 年 4 月 3 日
I am saving the file like this -
if true
encrimage=cat(3,shuffle1red,shuffle1green,shuffle1blue);
figure, imshow(encrimage), title('Encrypted Image');
imwrite(encrimage,'eimage.jpeg','mode','lossless');
end
To open the file outside of Matlab I am double clicking on the file in the Matlab folder where it is saved.
Jan
Jan 2017 年 4 月 12 日
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.

サインインしてコメントする。

採用された回答

Astarag Chattopadhyay
Astarag Chattopadhyay 2017 年 4 月 12 日
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
  1 件のコメント
fiona rozario
fiona rozario 2017 年 4 月 13 日
Thank you...that worked.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by