picture-tube | render images on the terminal | Command Line Interface library
kandi X-RAY | picture-tube Summary
kandi X-RAY | picture-tube Summary
Render images on the terminal.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of picture-tube
picture-tube Key Features
picture-tube Examples and Code Snippets
Community Discussions
Trending Discussions on picture-tube
QUESTION
When I run my phantomjs app in docker, in Node, it works fine (converting HTML to Jpeg).
However, when I publish it to a docker container, the font names are no longer being respected.
This app converts HTML into jpeg, pdf or other media, using html-convert npm, which is a wrapper for phantomjs
dockerfile:
...ANSWER
Answered 2018-Jun-13 at 19:29That font is not in the node:latest
image. You need to install MS font family first. I wasn't able to put together working Dockerfile, but these commands should work
wget http://ftp.de.debian.org/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_3.6_all.deb
dpkg -i ttf-mscorefonts-installer_3.6_all.deb
apt-get install -f -y
The second command throws error, which causes failing docker image build. Well if you find a way to ignore this error, you should be able to include the commands in the Dockerfile a and build it with MS fonts.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install picture-tube
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page