save a cmyk image in jpeg

3 vues (au cours des 30 derniers jours)
Yiftach
Yiftach le 19 Août 2025
Commenté : Walter Roberson le 20 Août 2025
hi
i would like to save a cmyk image in jpeg
thanks!

Réponse acceptée

John D'Errico
John D'Errico le 19 Août 2025
No. Imwrite cannot save a CMYK image to JPG. However, it can save a 4 channel image to a PNG format. Then I would open the image in Photoshop, or your favorite image editing tool, and save it to a JPG format. An extra step, but it should be workable. A quick check online (since it has been 25+ years since I used Photoshop) did tell me that Photoshop can save an image as a CMYK JPG file.
  4 commentaires
Yiftach
Yiftach le 20 Août 2025
thanks !!
Walter Roberson
Walter Roberson le 20 Août 2025
Sorry, I do not know very much about scripting for Windows.

Connectez-vous pour commenter.

Plus de réponses (1)

Walter Roberson
Walter Roberson le 19 Août 2025
Saving jpeg with CMYK is not supported by imwrite() or any other Mathworks supported function.
There just might happen to be appropriate code in the File Exchange, but I would not count on it.
  1 commentaire
Yiftach
Yiftach le 20 Août 2025
thanks - looked couldn't find.

Connectez-vous pour commenter.

Produits


Version

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by