save a cmyk image in jpeg

30 visualizzazioni (ultimi 30 giorni)
Yiftach
Yiftach il 19 Ago 2025 alle 7:47
Commentato: Walter Roberson il 20 Ago 2025 alle 17:03
hi
i would like to save a cmyk image in jpeg
thanks!

Risposta accettata

John D'Errico
John D'Errico il 19 Ago 2025 alle 12:38
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 Commenti
Yiftach
Yiftach il 20 Ago 2025 alle 14:50
thanks !!
Walter Roberson
Walter Roberson il 20 Ago 2025 alle 17:03
Sorry, I do not know very much about scripting for Windows.

Accedi per commentare.

Più risposte (1)

Walter Roberson
Walter Roberson il 19 Ago 2025 alle 8:57
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 Commento
Yiftach
Yiftach il 20 Ago 2025 alle 8:33
thanks - looked couldn't find.

Accedi per commentare.

Prodotti


Release

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by