You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
l use a random image in my pc to convert to CMYK, And it works well
But when l use a image dataURL from svg exported by Adobe Illustrator
l get such error message
js code
let image = await IJS.Image.load(imageUrl)
if (image.colorModel === 'CMYK') return imageUrl
let CMYKImage = image.cmyk()
return CMYKImage.toDataURL()
The text was updated successfully, but these errors were encountered:
After converting image to cmyk
e.g. let CMYKImage = image.cmyk()
None of the above export methods work. It doesn't matter whatever the type provided.
e.g.
for type: image/jpeg:
Error: Uncaught (in promise) TypeError: The process: getRGBAData can only be applied if the number of components is in: 1,3 at Image.checkProcessable (checkProcessable.js:54:1)
for type: image/png:
Error: PngEncoder.ts:156 Uncaught (in promise) RangeError: unsupported number of channels: 5 at getColorType (PngEncoder.ts:156:1) at PngEncoder._checkData (PngEncoder.ts:109:1) at new PngEncoder (PngEncoder.ts:33:1) at encodePng (index.ts:22:1) at encodePng (export.js:40:1) at dataUrl (export.js:130:1) at Image.toDataURL (export.js:137:1) at Image.toBase64 (export.js:183:1)
Can any one suggest which export method with type works after .cmyk() function.
l use a random image in my pc to convert to CMYK, And it works well
But when l use a image dataURL from svg exported by Adobe Illustrator
l get such error message
js code
let image = await IJS.Image.load(imageUrl)
if (image.colorModel === 'CMYK') return imageUrl
let CMYKImage = image.cmyk()
return CMYKImage.toDataURL()
The text was updated successfully, but these errors were encountered: