Port details on branch 2022Q2 |
- py-imgkit Python wrapper to convert html to image
- 1.2.2 devel =0 1.2.2Version of this port present on the latest quarterly branch.
- Maintainer: dvl@FreeBSD.org
- Port Added: 2018-02-21 16:54:31
- Last Update: 2023-06-27 19:34:34
- Commit Hash: 3d9a815
- Also Listed In: python
- License: MIT
- WWW:
- https://github.com/jarrekk/imgkit
- Description:
- Python 2 and 3 wrapper for wkhtmltoimage utility to convert HTML to IMG
using Webkit.
Simple example:
import imgkit
imgkit.from_url('http://google.com', 'out.jpg')
imgkit.from_file('test.html', 'out.jpg')
imgkit.from_string('Hello!', 'out.jpg')
You can pass a list with multiple URLs or files:
imgkit.from_url(['google.com', 'yandex.ru', 'engadget.com'], 'out.jpg')
imgkit.from_file(['file1.html', 'file2.html'], 'out.jpg')
Also you can pass an opened file:
with open('file.html') as f:
imgkit.from_file(f, 'out.jpg')
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - There is no configure plist information for this port.
- Dependency lines:
-
- ${PYTHON_PKGNAMEPREFIX}imgkit>0:devel/py-imgkit@${PY_FLAVOR}
- To install the port:
- cd /usr/ports/devel/py-imgkit/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/py-imgkit
- pkg install py39-imgkit
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py39-imgkit listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py39-imgkit
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1655208385
SHA256 (imgkit-1.2.2.tar.gz) = 382e7b3c280de4a472d0d786d9cea7bb9d6d8df2c2310ad07d4fe440ad1cb218
SIZE (imgkit-1.2.2.tar.gz) = 12355
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py39-setuptools>=63.1.0 : devel/py-setuptools@py39
- python3.9 : lang/python39
- Test dependencies:
-
- python3.9 : lang/python39
- Runtime dependencies:
-
- wkhtmltopdf>0 : converters/wkhtmltopdf
- py39-setuptools>=63.1.0 : devel/py-setuptools@py39
- python3.9 : lang/python39
- There are no ports dependent upon this port
Configuration Options:
- No options to configure
- Options name:
- devel_py-imgkit
- USES:
- python
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|