Clear Filters
Clear Filters

How to read CMYK image

40 views (last 30 days)
Andrea Magni
Andrea Magni on 1 Sep 2018
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?

Answers (2)

Naman Chaturvedi
Naman Chaturvedi on 4 Sep 2018
'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 Comment
Andrea Magni
Andrea Magni on 4 Sep 2018
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.

Sign in to comment.


Abdurrahman Tosun
Abdurrahman Tosun on 5 Oct 2019
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

Community Treasure Hunt

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

Start Hunting!