필터 지우기
필터 지우기

What causes TIFF library error?

조회 수: 28 (최근 30일)
Abed Alnaif
Abed Alnaif 2019년 7월 22일
답변: Julia R 2020년 9월 2일
Hello,
I get the following error when trying to use 'saveas' to save a 'tif' image on Windows. The error happens randomly (sometimes it happens, sometimes it doesn't). But I'm not able to find any information on the error online. Does anyone know what causes this error, and how to avoid it? Thank you.
Error using print (line 82)
TIFF library error - 'TIFFOpenW:
<filename>
Cannot open.'
Error in saveas (line 181)
print( h, name, ['-d' dev{i}] )
  댓글 수: 1
Walter Roberson
Walter Roberson 2019년 7월 22일
Could you give a sample filename that it reports?
Please check to see how much free diskspace you have on tempdir()

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

답변 (1개)

Julia R
Julia R 2020년 9월 2일
I was getting the same error when saving figures using "exportgraphics". One thing that helped me is shortening filename under which I was saving it. Or to be more precise, in some cases it was the shortening of a filename itself and in other cases the shortening of the path to the location where I saved it to. In latter cases I put the folder to which I was saving the file closer to the root catalog, thus shortening the length of the path for saving the figure.

카테고리

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