Skip to content

Conversion of RGB to CMYK image using Icc profiles #190

Discussion options

You must be logged in to vote

Thanks @dlemstra, It work perfectly with:

const rgbProfile = new ColorProfile(rgb)
const cmykProfile = new ColorProfile(cmyk)
image.transformColorSpace(rgbProfile, cmykProfile)
image.colorSpace = ColorSpace.CMYK

But, if I create color profile with the name new new ColorProfile('rgb', rgb), it throw below error

@imagemagick_magick-…m.js?v=c154409c:413 Uncaught (in promise) K: Invalid profile name: rgb.
at new fu (http://localhost:5173/node_modules/.vite/deps/@imagemagick_magick-wasm.js?v=c154409c:413:13)
at http://localhost:5173/src/App.vue?t=1733208652270:35:28
at http://localhost:5173/node_modules/.vite/deps/@imagemagick_magick-wasm.js?v=c154409c:7786:14
at _ce._disposeAfterExecution (http:

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@necessarylion
Comment options

@dlemstra
Comment options

@dlemstra
Comment options

@necessarylion
Comment options

Answer selected by necessarylion
@dlemstra
Comment options

@necessarylion
Comment options

@dlemstra
Comment options

@dlemstra
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants