{"id":20541746,"url":"https://github.com/hivesolutions/pconvert","last_synced_at":"2025-04-14T09:09:12.582Z","repository":{"id":56375846,"uuid":"69331317","full_name":"hivesolutions/pconvert","owner":"hivesolutions","description":"Simple PNG conversion tool using libpng","archived":false,"fork":false,"pushed_at":"2023-11-28T10:57:42.000Z","size":10673,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-07T08:19:47.010Z","etag":null,"topics":["composition","image-processing","libpng","pconvert","png-conversion","python"],"latest_commit_sha":null,"homepage":"http://pconvert.hive.pt","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hivesolutions.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-27T07:35:54.000Z","updated_at":"2024-10-01T08:50:35.000Z","dependencies_parsed_at":"2023-01-24T07:45:13.895Z","dependency_job_id":null,"html_url":"https://github.com/hivesolutions/pconvert","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hivesolutions%2Fpconvert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hivesolutions%2Fpconvert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hivesolutions%2Fpconvert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hivesolutions%2Fpconvert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hivesolutions","download_url":"https://codeload.github.com/hivesolutions/pconvert/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224865521,"owners_count":17382700,"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":["composition","image-processing","libpng","pconvert","png-conversion","python"],"created_at":"2024-11-16T01:25:53.780Z","updated_at":"2024-11-16T01:25:54.278Z","avatar_url":"https://github.com/hivesolutions.png","language":"C","readme":"# [P(NG)Convert](http://pconvert.hive.pt)\n\nSimple PNG conversion tool using [libpng](http://www.libpng.org).\n\n## Build\n\nIt should be simple to build the project using `make`. Please note that the project requires both Python and libpng.\n\n```bash\nmake\nmake install\n```\n\nTo build pconvert for a specific system use the `SYS` Makefile variable:\n\n```bash\nmake SYS=darwin\n```\n\nIt's also possible to build the Python extension and install in a local machine.\n\n```bash\npython setup.py install\n```\n\n## Python Methods\n\n### `blend_images`\n\n| Argument    | Type   | Mandatory | Default          | Description                                                   |\n| ----------- | ------ | --------- | ---------------- | ------------------------------------------------------------- |\n| bottom_path | `str`  | `true`    | -                | The path to the bottom image.                                 |\n| top_path    | `str`  | `true`    | -                | The path to the top image.                                    |\n| target_path | `str`  | `true`    | -                | The path of the target (resulting) image.                     |\n| algorithm   | `str`  | `false`   | `multiplicative` | The blending algorithm to be used.                            |\n| is_inline   | `bool` | `false`   | `false`          | If the inline methods should be used to perform the blending. |\n\n### `blend_multiple`\n\n| Argument    | Type   | Mandatory | Default          | Description                                                                   |\n| ----------- | ------ | --------- | ---------------- | ----------------------------------------------------------------------------- |\n| paths       | `list` | `true`    | -                | The sequence of paths of the images to be blended from bottom to top.         |\n| target_path | `str`  | `true`    | -                | The path of the target (resulting) image.                                     |\n| algorithm   | `str`  | `false`   | `multiplicative` | The blending algorithm to be used to blend all images in a pair-wise fashion. |\n| algorithms  | `list` | `false`   | -                | The sequence of blending algorithms to use for each blending operation. If defined, `algorithm` will not be used.       |\n| is_inline   | `bool` | `false`   | `false`          | If the inline methods should be used to perform the blending.                 |\n\n## Example\n\nRunning a simple set of composition can be done using:\n\n```bash\npconvert compose assets/demo/\n```\n\nTo be able to convert one image into a normalized PNG format use the `convert` command as following:\n\n```bash\npconvert convert assets/demo/tux.png tux.out.png\n```\n\nTo run a simple benchmark operation (results in `benchmark.txt`) using pconvert use:\n\n```bash\npconvert benchmark assets/demo/\n```\n\n## Conan\n\nThis package makes use of the [Conan](https://conan.io) (version 1.x) package manager to use run:\n\n```bash\npip install --upgrade \"conan\u003c2\"\nconan install . --build missing\n```\n\nIt's important to note that the usage of Conan is not mandatory and it's still possible to build P(NG)Convert without it.\n\n## CMake\n\n### Linux \u0026 MacOS\n\n```bash\nconan install . --build missing\ncmake .\nmake\n```\n\n### Windows\n\n```bash\nconan install . --build missing\ncmake . -DCMAKE_CL_64=1 -DCMAKE_GENERATOR_PLATFORM=x64 -Ax64\nmsbuild ALL_BUILD.vcxproj /P:Configuration=Release\n```\n\n## License\n\nPConvert is currently licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/).\n\n## Build Automation\n\n[![Build Status](https://app.travis-ci.com/hivesolutions/pconvert.svg?branch=master)](https://travis-ci.com/github/hivesolutions/pconvert)\n[![Build Status GitHub](https://github.com/hivesolutions/pconvert/workflows/Main%20Workflow/badge.svg)](https://github.com/hivesolutions/pconvert/actions)\n[![Coverage Status](https://coveralls.io/repos/hivesolutions/pconvert/badge.svg?branch=master)](https://coveralls.io/r/hivesolutions/pconvert?branch=master)\n[![PyPi Status](https://img.shields.io/pypi/v/pconvert-python.svg)](https://pypi.python.org/pypi/pconvert-python)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhivesolutions%2Fpconvert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhivesolutions%2Fpconvert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhivesolutions%2Fpconvert/lists"}