Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can support myck conversion? #45

Open
a573367014 opened this issue Jun 24, 2019 · 5 comments
Open

Can support myck conversion? #45

a573367014 opened this issue Jun 24, 2019 · 5 comments

Comments

@a573367014
Copy link

convert: DelegateLibrarySupportNotBuiltIn 'srcFile.jpg' (LCMS) @ warning/profile.c/ProfileImage/873.

const command = ["convert", "srcFile.jpg", "-colorspace", "CMYK", "-profile", "myck.icc", "out.jpg"];
@DevinKott-KA
Copy link

DevinKott-KA commented Jun 24, 2019

I was actually trying to convert ICC profiles as well; it seems the delegate library is not built in, like you experienced. Also, can support for CUBE color profiles be added?

@KnicKnic
Copy link
Owner

LCMS support is in https://github.com/dlemstra/Magick.Native

See #46 to port that project's compilation steps

@KnicKnic
Copy link
Owner

@a573367014 @DevinKott-KA can you please provide samples to files to attempt this either links here or email them to me.

Thanks!

@DevinKott-KA
Copy link

@KnicKnic Here is a repository full of ICC/ICM files that you can download one from. I specifically just tried the "acer_xb270hu.icc" profile. I ran it on my desktop with "magick ./horse1.jpeg -profile ./acer_xb270hu.icc ./output.jpeg" and it worked fine. Generates output.jpeg with the color profile applied.

@KnicKnic KnicKnic mentioned this issue Jun 27, 2019
@cancerberoSgx
Copy link
Collaborator

@DevinKott-KA I added support for lcms delegate (which is the library needed for this) to magica - a project similar to this one. You can find wasm files here but I don't think they will work with this project out of the box.

I will try to support lcms on this project , in the meanwhile you can replace .wasm with magica's magick.wasm and edit magick.js file replacing the minified js with magica's magick.js file

To use magica's wasm in this project sources this should work also
Copy magica's magick.js and magick.wasm to this project's folder ImageMagick/utilities - remember you have to clone this project using --recurse-submodules and the execute:

git clone --recurse-submodules https://github.com/KnicKnic/WASM-ImageMagick.git
cd WASM-ImageMagick
npm i --ignore-scripts
rm ImageMagick/utilities/magick.js ImageMagick/utilities/magick.wasm
 wget https://github.com/cancerberoSgx/magica/raw/master/src/imageMagick/compiled/magick.wasm -P ImageMagick/utilities
 wget https://github.com/cancerberoSgx/magica/raw/master/src/imageMagick/compiled/magick.js -P ImageMagick/utilities
npm run build-ts 
npm run copy
npm run magickApiJs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants