-
Notifications
You must be signed in to change notification settings - Fork 163
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
adding freetype support and updating version of ImageMagick #28
base: master
Are you sure you want to change the base?
Conversation
I tried this branch but get an error about missing fonts when I try to use the layer in a lambda.
is it possible ghostscript is also needed? My research suggests that type.xml must exist and point to actual font files on the system, and those seem to be part of gs. |
Hi, I am unable to try right now. Let m know if you succeed in any way. |
Our existing code never makes explicit calls to set the font, so the Can you provide an example of setting the font path as you describe? I tried:
with no luck. |
ok I figured out I needed to make the .ttf file available and set it like:
works wonderfully -- thank you! |
Are there any plans to merge this in the near future? |
@RobTS it would be nice for me. AFAIK there is not a lot of interest in having |
Hi, and thanks for your work on this. I'm having trouble using this layer in my own app as I keep running into permissions problems like this:
My IAM profile has all the required permissions but still no luck. Do I have to "import" or "clone" this layer into my own account in order to use it? |
I tried to grant to all (*). |
Thanks @sw360cab. Unfortunately still no dice :(
Is there any chance you have the zip file available? If so I would very much appreciate it. |
I would zip it. But I would be more happy if we are able to share it via AWS. |
Ah good point! I'm in EU-WEST-2. |
I will publish the layer there |
👍 I will let you know if it works for me. Thanks very much. |
Give a try to this ARN:
|
Awesome! That works. I'm now stuck with a new error with fonts but I think this is ghostrscript:
Ugh! Thanks for your help though. |
That should be just a matter of font path. Happy it worked almost out of the box |
Will you please publish to |
Not sure how to control that though. When I check for available fonts using the below command it does show that
Any help much appreciated. |
@sw360cab Can you share the zip file? I followed your method to create the layer but the symlink is not being created |
@abishekaditya tried by following this or this? |
yes, unfortunately both didn't work properly because of linking issues. so I ran imagemagick on an Amazon Linux 2 instance in cloud9 and saw which .so files were being accessed. Then I copied these files into /usr/lib/ folder and then it worked |
ok, Feel free to open a PR on my repo fork |
Sure. I was busy with other things till now. Have to work on this again, so will try to fix this |
I think that it may be useful to achieve freetype engine support when dealing with fonts in images.
It is worthy since the library compile statically easily as libpng and libjpg and it does slightly increase the final archive.
I took the chance to update also the ImageMagick and libjpg version.
I tested and it compile smootly.