{"id":13692509,"url":"https://github.com/hhatto/pgmagick","last_synced_at":"2025-12-29T15:57:42.272Z","repository":{"id":11302645,"uuid":"13718558","full_name":"hhatto/pgmagick","owner":"hhatto","description":"pgmagick is a yet another boost.python based wrapper for GraphicsMagick/ImageMagick.","archived":false,"fork":false,"pushed_at":"2025-01-04T03:23:12.000Z","size":7990,"stargazers_count":154,"open_issues_count":15,"forks_count":33,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-05-15T09:07:40.283Z","etag":null,"topics":["c-plus-plus","graphicsmagick","image-processing","imagemagick","python"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hhatto.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2013-10-20T12:19:10.000Z","updated_at":"2025-04-22T12:03:15.000Z","dependencies_parsed_at":"2025-04-14T18:18:47.821Z","dependency_job_id":"c8bcc713-b13e-4d7f-9e03-56cde3eae796","html_url":"https://github.com/hhatto/pgmagick","commit_stats":{"total_commits":543,"total_committers":15,"mean_commits":36.2,"dds":0.4530386740331491,"last_synced_commit":"7b135c0f504b56c08bd7cae33cb5ee5d6da65db8"},"previous_names":[],"tags_count":46,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhatto%2Fpgmagick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhatto%2Fpgmagick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhatto%2Fpgmagick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhatto%2Fpgmagick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hhatto","download_url":"https://codeload.github.com/hhatto/pgmagick/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254337612,"owners_count":22054253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-plus-plus","graphicsmagick","image-processing","imagemagick","python"],"created_at":"2024-08-02T17:00:58.865Z","updated_at":"2025-12-29T15:57:42.230Z","avatar_url":"https://github.com/hhatto.png","language":"C++","funding_links":[],"categories":["Python Libraries"],"sub_categories":[],"readme":"About\n=====\n\n.. image:: https://img.shields.io/pypi/v/pgmagick.svg\n    :target: https://pypi.org/project/pgmagick/\n    :alt: PyPI Version\n\n.. image:: https://github.com/hhatto/pgmagick/workflows/Python%20package/badge.svg\n    :target: https://github.com/hhatto/pgmagick/actions\n    :alt: Build status\n\npgmagick is a yet another boost.python based wrapper for GraphicsMagick_ .\n\n.. _GraphicsMagick: http://www.graphicsmagick.org/\n\nInstallation\n============\ninstall to::\n\n    $ pip install pgmagick\n\n\nRequirements\n============\nPython3.5++ (or Python2.7), GraphicsMagick and Boost.Python.\n\npackage install on Debian Buster::\n\n    $ apt-get install g++ libgraphicsmagick++1-dev libboost-python-dev\n\npackage install on Ubuntu(test on Ubuntu10.04+)::\n\n    ### Ubuntu11.10+ ###\n    $ apt-get install python-pgmagick\n\n    ### Ubuntu10.04+ ###\n    $ apt-get install libgraphicsmagick++1-dev\n    $ apt-get install libboost-python1.40-dev\n\npackage install on Fedora::\n\n    $ yum install GraphicsMagick-c++-devel\n    $ yum install boost-devel\n\nGraphicsMagick from source package::\n\n    $ ./configure --enable-shared=yes\n    $ make \u0026\u0026 make install\n\nMacOSX\n------\n\nvia homebrew-cask(homebrew-pgmagick) with Python3\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nuse `homebrew-pgmagick`_ ::\n\n    $ brew tap hhatto/pgmagick\n    $ brew install pgmagick\n\n.. _`homebrew-pgmagick`: https://github.com/hhatto/homebrew-pgmagick\n\nvia homebrew-cask(homebrew-pgmagick) with Python3\n\nvia homebrew and pip with Python3\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\non MacOSX (10.13.5~10.15.x)::\n\n    $ brew install python\n    $ brew install graphicsmagick\n    $ brew install boost-python3\n    $ pip install pgmagick\n\n\nWindows\n-------\nNow, not official support.\nHowever, *unofficial* binary packages exists.\n\n- http://www.lfd.uci.edu/~gohlke/pythonlibs/#pgmagick\n\nImageMagick support\n-------------------\npgmagick is supported to ImageMagick library. (*version:0.4+*)\n\npackage install on Ubuntu(test on Ubuntu10.04+)::\n\n    $ apt-get install libmagick++-dev\n\nshow library name and version::\n\n    \u003e\u003e\u003e from pgmagick import gminfo\n    \u003e\u003e\u003e gminfo.library\n    'GraphicsMagick'    # or 'ImageMagick'\n    \u003e\u003e\u003e gminfo.version\n    '1.3.x'\n    \u003e\u003e\u003e\n\nUsage\n=====\n\nscale example::\n\n    \u003e\u003e\u003e from pgmagick import Image\n    \u003e\u003e\u003e im = Image('input.jpg')\n    \u003e\u003e\u003e im.quality(100)\n    \u003e\u003e\u003e im.scale('100x100')\n    \u003e\u003e\u003e im.sharpen(1.0)\n    \u003e\u003e\u003e im.write('output.jpg')\n\nresize example::\n\n    \u003e\u003e\u003e from pgmagick import Image\n    \u003e\u003e\u003e im = Image('input.jpg')\n    \u003e\u003e\u003e im.filterType(FilterTypes.SincFilter)\n    \u003e\u003e\u003e im.resize('100x100')\n    \u003e\u003e\u003e im.write('output.jpg')\n\ncomposite example::\n\n    \u003e\u003e\u003e from pgmagick import Image, CompositeOperator as co\n    \u003e\u003e\u003e base = Image('base.png')\n    \u003e\u003e\u003e layer = Image('layer_one.png')\n    \u003e\u003e\u003e base.composite(layer, 100, 100, co.OverCompositeOp)\n    \u003e\u003e\u003e im.write('output.png')\n\ndraw example::\n\n    \u003e\u003e\u003e from pgmagick import Image, DrawableCircle, DrawableText, Geometry, Color\n    \u003e\u003e\u003e im = Image(Geometry(300, 300), Color(\"yellow\"))\n    \u003e\u003e\u003e circle = DrawableCircle(100, 100, 20, 20)\n    \u003e\u003e\u003e im.draw(circle)\n    \u003e\u003e\u003e im.fontPointsize(65)\n    \u003e\u003e\u003e text = DrawableText(30, 250, \"Hello pgmagick\")\n    \u003e\u003e\u003e im.draw(text)\n    \u003e\u003e\u003e im.write('hoge.png')\n\nblob access::\n\n    \u003e\u003e\u003e from pgmagick import Image, Blob, Geometry\n    \u003e\u003e\u003e blob = Blob(open('filename.jpg').read())\n    \u003e\u003e\u003e blob.update(open('filename2.jpg').read())\n    \u003e\u003e\u003e img = Image(blob, Geometry(600, 480))\n    \u003e\u003e\u003e img.scale('300x200')\n    \u003e\u003e\u003e img.write('out.jpg')\n\ncreate animated-GIF::\n\n    from pgmagick import Image, ImageList, Geometry, Color\n\n    imgs = ImageList()\n    for color in ('red', 'blue', 'green', 'black', 'yellow'):\n        imgs.append(Image(Geometry(200, 200), Color(color)))\n    imgs.animationDelayImages(100)\n    imgs.scaleImages(Geometry(100, 100))\n    imgs.writeImages('output.gif')\n\nmore API detail... read to `Magick++ API for GraphicsMagick`_ document.\n\n.. _`Magick++ API for GraphicsMagick`: http://www.graphicsmagick.org/Magick++/\n\nPython APIs(*NOTICE!! this api is alpha version!!*)::\n\n    \u003e\u003e\u003e from pgmagick.api import Image\n    \u003e\u003e\u003e img = Image((300, 300), \"gradient:#ffffff-#000000\")\n    \u003e\u003e\u003e img.scale(0.8)\n    \u003e\u003e\u003e img.write('out.png')\n\n\nLinks\n=====\n* PyPI_\n* `Project Page`_\n* `Project Page (Old)`_\n\n.. _PyPI: http://pypi.python.org/pypi/pgmagick/\n.. _`Project Page`: https://github.com/hhatto/pgmagick/\n.. _`Project Page (Old)`: https://bitbucket.org/hhatto/pgmagick/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhhatto%2Fpgmagick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhhatto%2Fpgmagick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhhatto%2Fpgmagick/lists"}