How to save our figures in tiff no compression using exportgraphics

조회 수: 39 (최근 30일)
Erfan Basiri
Erfan Basiri . 2022년 7월 25일
편집: Erfan Basiri . 2022년 7월 28일
I'm seeking a way to save my figures using tiff no compression when using exportgraphics. For instance a sample code is put below. More clearly, what should be written instead of .tiff to make it tiff no compression.
Many thanks
hold on
hold on

채택된 답변

Richard Quist
Richard Quist 2022년 7월 27일
Specifying tiff compression isn't an option in exportgraphics, but you can generate uncompressed TIFF files using the print command with the -dtiffn option. However, unlike exportgraphics, the print command won't tightly crop the image so you may get more "whitespace" around your plots.
print(gcf, '-dtiffn', '-r600', 'output.tif'):
  댓글 수: 1
Erfan Basiri
Erfan Basiri 2022년 7월 28일
편집: Erfan Basiri 님. 2022년 7월 28일
Many thanks for the detailed answer.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)


Help CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기


Community Treasure Hunt

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

Start Hunting!

Translated by