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

text #9

Closed
cancerberoSgx opened this issue Sep 20, 2018 · 5 comments
Closed

text #9

cancerberoSgx opened this issue Sep 20, 2018 · 5 comments
Assignees

Comments

@cancerberoSgx
Copy link
Collaborator

cancerberoSgx commented Sep 20, 2018

Executing the following command:

["convert", "-size", "320x100", "xc:lightblue", "-font", "Candice", "-pointsize", "72", "-tile", "pattern:checkerboard", "-annotate", "+28+68", "asdas", "out.png"]

Throws the following error:

magick.js:74 convert: UnableToOpenConfigureFile `colors.xml' @ warning/configure.c/GetConfigureOptions/714.
magick.js:74 convert: UnableToOpenConfigureFile `type.xml' @ warning/configure.c/GetConfigureOptions/714.
magick.js:74 convert: UnableToReadFont `Candice' @ warning/annotate.c/RenderType/1009.
magick.js:74 convert: DelegateLibrarySupportNotBuiltIn 'Candice' (Freetype) @ warning/annotate.c/RenderFreetype/1847.
magick.js:74 convert: FailedToExecuteCommand `'gs' -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 '-sDEVICE=pngalpha' -dTextAlphaBits=4 -dGraphicsAlphaBits=4 '-r72x72' -g504x144  '-sOutputFile=/tmp/magick-42QA_0BEfbiCPa%d' '-f/tmp/magick-42Gf4sw7fbIDPa' '-f/tmp/magick-42AaUWWpkLaNIP'' (-1) @ error/delegate.c/ExternalDelegateCommand/462.
magick.js:74 convert: FailedToExecuteCommand `'gs' -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 '-sDEVICE=pngalpha' -dTextAlphaBits=4 -dGraphicsAlphaBits=4 '-r72x72' -g504x144  '-sOutputFile=/tmp/magick-42QA_0BEfbiCPa%d' '-f/tmp/magick-42Gf4sw7fbIDPa' '-f/tmp/magick-42AaUWWpkLaNIP' -c showpage' (-1) @ error/delegate.c/ExternalDelegateCommand/462.
magick.js:74 convert: UnableToReadFont `Candice' @ warning/annotate.c/RenderType/1009.
magick.js:74 convert: DelegateLibrarySupportNotBuiltIn 'Candice' (Freetype) @ warning/annotate.c/RenderFreetype/1847.
magick.js:74 convert: FailedToExecuteCommand `'gs' -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 '-sDEVICE=pngalpha' -dTextAlphaBits=4 -dGraphicsAlphaBits=4 '-r72x72' -g504x144  '-sOutputFile=/tmp/magick-42BZwKN-LaAgcA%d' '-f/tmp/magick-42fyXQyXLCAaPp' '-f/tmp/magick-42ryaITPaKIaPp'' (-1) @ error/delegate.c/ExternalDelegateCommand/462.
magick.js:74 convert: FailedToExecuteCommand `'gs' -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 '-sDEVICE=pngalpha' -dTextAlphaBits=4 -dGraphicsAlphaBits=4 '-r72x72' -g504x144  '-sOutputFile=/tmp/magick-42BZwKN-LaAgcA%d' '-f/tmp/magick-42fyXQyXLCAaPp' '-f/tmp/magick-42ryaITPaKIaPp' -c showpage' (-1) @ error/delegate.c/ExternalDelegateCommand/462.

Probably text is not supported by wasm-IM but just in case I wanted to track this limitation here and make sure so we can update README with this information. Thanks

@cancerberoSgx
Copy link
Collaborator Author

Researching I see that for text support ImageMagick must be linked with libfreetype which is currently not. We should document which features are not supported (like this one).

Besides that I tried to add the library and I'm not sure if it was inked but each time I try to print text it seems that ImageMagick try to call the program gs (ghostscript I think) - so even if the library is linked OK I doubt it will work. But I'm not an expert with emscripten so I'm not 100% sure of this...

@cancerberoSgx
Copy link
Collaborator Author

It's now explicitly documented in readme that this is not supported, so I'm closing this

@cancerberoSgx
Copy link
Collaborator Author

Since I think this is an important ImageMagick feature and since emscripten supports freetype library as a port (-s USE_FREETYPE=1) and I will try to make it work and since I will try to make it work I'm reopening this issue to track the work here.

@cancerberoSgx cancerberoSgx reopened this Dec 5, 2018
@cancerberoSgx
Copy link
Collaborator Author

Solved by #28

@KnicKnic KnicKnic assigned KnicKnic and cancerberoSgx and unassigned KnicKnic Jan 4, 2019
@cancerberoSgx
Copy link
Collaborator Author

Solved in magica - closing this in favor of #52

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

2 participants