-
Notifications
You must be signed in to change notification settings - Fork 167
delegate library support not built-in #6
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
Comments
to keep the layer size small, the default includes a minimal set of libraries, for most common image formats. it does not include freetype, so you'll need to change the makefile and add it in. You can probably copy the necessary parts from the https://github.com/serverlesspub/rsvg-convert-aws-lambda-binary layer makefile, since it bundles freetype |
thank you @gojko for putting this together. makes using imagemagick and lambda very easy. i also need i added the freetype download and installation in the make file, but i'm getting this error when i try
looks like the path isn't set properly for freetype, but i'm at a loss as to what it should be. looks like my configure variable is set correctly. here is my version: and the commit so you can see the changes: lambtron@bbb76bb any thoughts as to what might be causing this issue? thanks again!! |
i got it to work. i copied the entire section from the rsvg including harfbuzz. THANK YOU! |
@gojko Thanks so much. It works fine for me. |
@trungegd am trying to use your make file (on Ubuntu with Docker installed) but get the following error:
Tried installing on the host Ubuntu but same error so I assume this is missing in Docker...? UPDATE 1: used workaround in #10 and build completes now -- getting there! UPDATE 2: have successfully built and deployed UPDATE 3: added a ttf to layer and used full path in |
@jugglingcats I used to see this error but then I added gperf installation to make file and it worked. init: |
Here is compiled one if someone do not want to go with process of building up Imagemagick.zip Thanks @trungegd @jugglingcats @gojko |
Hi. Sorry to open old wounds, but I'm having real problems trying to get freetype included in my build.
Unfortunately I keep getting the same error in all cases:
Not sure if the host system makes a difference when compiling here (given it's done in a Docker container) but for what it's worth I'm on a Mac running Catalina 10.15.7 Can anyone help please? |
I just create lambda function and used this layer. But when I add font for text in image, I get an error:
{ Error: Command failed: convert: delegate library support not built-in '/tmp/fonts/Archer-Bold.ttf' (Freetype) @ warning/annotate.c/RenderFreetype/1808. convert: non-conforming drawing primitive definition 'text' @ error/draw.c/RenderMVGContent/4397. at ChildProcess.<anonymous> (/var/task/node_modules/imagemagick/imagemagick.js:88:15) at ChildProcess.emit (events.js:198:13) at ChildProcess.EventEmitter.emit (domain.js:448:20) at maybeClose (internal/child_process.js:982:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) timedOut: false, killed: false, code: 1, signal: null }
My params: -size,863x875,xc:transparent,(,-fill,#231f20,-size,391.8412x245.1814,xc:transparent,-font,/tmp/fonts/Archer-Bold.ttf,-pointsize,22.152,-stroke,none,-draw,gravity center kerning 0 text 0,0 "I love you so",-background,none,-rotate,0.00,),-geometry,+228.4788+551.5006,-composite,/tmp/images/gexqcZl7zU.png
Can you detect for me about to solve it.
The text was updated successfully, but these errors were encountered: