How to read CMYK image

조회 수: 5 (최근 30일)
Andrea Magni
Andrea Magni 2018년 9월 1일
답변: Abdurrahman Tosun 2019년 10월 5일
Hello, I tried to read a .jpg image CMYK using imread but it gives this error:
Error using rjpg8c
JPEG images with CMYK colorspace are not currently supported.
How can I read an image like this? Can I convert it into something that is supported by imread?

답변 (2개)

Naman Chaturvedi
Naman Chaturvedi 2018년 9월 4일
'imread' doesn't support CMYK jpg images. But, it does support CMYK tiff images. So, you can use some third party tools to convert your jpg image to tiff and then use imread to read the image.
  댓글 수: 1
Andrea Magni
Andrea Magni 2018년 9월 4일
Already did. I successfully converted some images into tiff and then rgb, but some of them can't be converted into rgb, so I just deleted them.

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


Abdurrahman Tosun
Abdurrahman Tosun 2019년 10월 5일
it is very easy to save this position. save to your image at paint program, after that convert to jpeg again by using paint program :) if this save you please let me know

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by