From owner-svn-ports-all@freebsd.org Wed Feb 21 16:54:19 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 62D55F14A90; Wed, 21 Feb 2018 16:54:19 +0000 (UTC) (envelope-from dvl@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 14A7B86087; Wed, 21 Feb 2018 16:54:19 +0000 (UTC) (envelope-from dvl@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E983C1B34B; Wed, 21 Feb 2018 16:54:18 +0000 (UTC) (envelope-from dvl@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w1LGsIAH074042; Wed, 21 Feb 2018 16:54:18 GMT (envelope-from dvl@FreeBSD.org) Received: (from dvl@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w1LGsIUw074038; Wed, 21 Feb 2018 16:54:18 GMT (envelope-from dvl@FreeBSD.org) Message-Id: <201802211654.w1LGsIUw074038@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dvl set sender to dvl@FreeBSD.org using -f From: Dan Langille Date: Wed, 21 Feb 2018 16:54:18 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r462534 - in head/devel: . py-imgkit X-SVN-Group: ports-head X-SVN-Commit-Author: dvl X-SVN-Commit-Paths: in head/devel: . py-imgkit X-SVN-Commit-Revision: 462534 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Feb 2018 16:54:19 -0000 Author: dvl Date: Wed Feb 21 16:54:18 2018 New Revision: 462534 URL: https://svnweb.freebsd.org/changeset/ports/462534 Log: Add devel/py-imgkit Python wrapper to convert html to image Added: head/devel/py-imgkit/ head/devel/py-imgkit/Makefile (contents, props changed) head/devel/py-imgkit/distinfo (contents, props changed) head/devel/py-imgkit/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Wed Feb 21 16:36:45 2018 (r462533) +++ head/devel/Makefile Wed Feb 21 16:54:18 2018 (r462534) @@ -4503,6 +4503,7 @@ SUBDIR += py-hypothesis SUBDIR += py-icalendar SUBDIR += py-ice + SUBDIR += py-imgkit SUBDIR += py-incremental SUBDIR += py-inflect SUBDIR += py-iniparse Added: head/devel/py-imgkit/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-imgkit/Makefile Wed Feb 21 16:54:18 2018 (r462534) @@ -0,0 +1,20 @@ +# Created by: Dan Langille +# $FreeBSD$ + +PORTNAME= imgkit +PORTVERSION= 1.0.1 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= dvl@FreeBSD.org +COMMENT= Python wrapper to convert html to image + +LICENSE= MIT + +USES= python +USE_PYTHON= distutils autoplist + +RUN_DEPENDS+= wkhtmltopdf>0:converters/wkhtmltopdf + +.include Added: head/devel/py-imgkit/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-imgkit/distinfo Wed Feb 21 16:54:18 2018 (r462534) @@ -0,0 +1,3 @@ +TIMESTAMP = 1519226993 +SHA256 (imgkit-1.0.1.tar.gz) = c7cfd4949343aec503353c7bdae6f05ab5b4c79cb9f5153bd5708cd3bf129df7 +SIZE (imgkit-1.0.1.tar.gz) = 9802 Added: head/devel/py-imgkit/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-imgkit/pkg-descr Wed Feb 21 16:54:18 2018 (r462534) @@ -0,0 +1,22 @@ +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') + +WWW: https://github.com/jarrekk/imgkit