{"id":16360361,"url":"https://github.com/mike42/gfx-php","last_synced_at":"2025-03-15T11:32:47.381Z","repository":{"id":60774625,"uuid":"128055792","full_name":"mike42/gfx-php","owner":"mike42","description":"The pure PHP graphics library","archived":false,"fork":false,"pushed_at":"2023-12-28T03:49:31.000Z","size":827,"stargazers_count":23,"open_issues_count":10,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-11T02:11:40.975Z","etag":null,"topics":["gif","graphics","hacktoberfest","image-processing","php","png","pnm","raster-graphics"],"latest_commit_sha":null,"homepage":"https://gfx-php.readthedocs.io/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mike42.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2018-04-04T11:59:35.000Z","updated_at":"2024-02-04T21:52:40.000Z","dependencies_parsed_at":"2024-06-18T18:40:19.969Z","dependency_job_id":"944da0d7-aecf-4502-8ae5-21c4b7bbdf62","html_url":"https://github.com/mike42/gfx-php","commit_stats":{"total_commits":141,"total_committers":1,"mean_commits":141.0,"dds":0.0,"last_synced_commit":"ed9ded2a9298e4084a9c557ab74a89b71e43dbdb"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mike42%2Fgfx-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mike42%2Fgfx-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mike42%2Fgfx-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mike42%2Fgfx-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mike42","download_url":"https://codeload.github.com/mike42/gfx-php/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221573689,"owners_count":16845884,"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":["gif","graphics","hacktoberfest","image-processing","php","png","pnm","raster-graphics"],"created_at":"2024-10-11T02:11:16.195Z","updated_at":"2024-10-26T19:43:32.814Z","avatar_url":"https://github.com/mike42.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gfx-php - The pure PHP graphics library\n\n[![Build Status](https://travis-ci.org/mike42/gfx-php.svg?branch=master)](https://travis-ci.org/mike42/gfx-php) [![Latest Stable Version](https://poser.pugx.org/mike42/gfx-php/v/stable)](https://packagist.org/packages/mike42/gfx-php)\n[![Total Downloads](https://poser.pugx.org/mike42/gfx-php/downloads)](https://packagist.org/packages/mike42/gfx-php)\n[![License](https://poser.pugx.org/mike42/gfx-php/license)](https://packagist.org/packages/mike42/gfx-php) [![Coverage Status](https://coveralls.io/repos/github/mike42/gfx-php/badge.svg?branch=master)](https://coveralls.io/github/mike42/gfx-php?branch=master)\n\nThis library implements input, output and processing of raster images in pure PHP, so that image\nprocessing extensions (Gd, Imagick) are not required.\n\nThis allows developers to eliminate some portability issues from their applications.\n\n### Features\n\n- Format support includes PNG, GIF, BMP and the Netpbm formats (See docs: [File formats](https://gfx-php.readthedocs.io/en/latest/user/formats.html)).\n- Support for scaling, cropping, format conversion and colorspace transformations (See docs: [Image operations](https://gfx-php.readthedocs.io/en/latest/user/operations.html)).\n- Pure PHP: This library does not require Gd, ImageMagick or GraphicsMagick extensions.\n\n## Quick start\n\n### Requirements\n\n- PHP 7.0 or newer.\n- `zlib` extension, for reading PNG files.\n\n### Installation\n\nInstall `gfx-php` with composer:\n\n```bash\ncomposer install mike42/gfx-php\n```\n\n### Basic usage\n\nThe basic usage is like this:\n\n```php\n\u003c?php\nuse Mike42\\GfxPhp\\Image;\n$img = Image::fromFile(\"colorwheel256.png\");\n$img -\u003e write(\"test.gif\");\n```\n\n### Further reading\n\n- Read of the documentation at [gfx-php.readthedocs.io](https://gfx-php.readthedocs.io/)\n- See the `examples/` sub-folder for snippets.\n\n## Contributing\n\nThis project is open to all kinds of contributions, including suggestions, documentation fixes, examples, formats and image processing algorithms.\n\nSome ideas for improvement listed in [the issue tracker](https://travis-ci.org/mike42/gfx-php). Code contributions must be releasable under the LGPLv3 or later.\n\n### Scope\n\nAs a small project, we can't do everything. In particular, `gfx-php` is not likely to ever perform non-raster operations:\n\n- vector image formats (PDF, SVG, EPS, etc).\n- anything involving vector fonts\n\n### Acknowledgements\n\nThis repository uses test files from other projects:\n\n- [BMP Suite](http://entropymine.com/jason/bmpsuite/) by Jason Summers.\n- [PyGIF](https://github.com/robert-ancell/pygif) test suite by Robert Ancell.\n- [pngsuite](http://www.schaik.com/pngsuite/) by Willem van Schaik.\n\n## Similar projects\n\n- [Imagine](https://github.com/avalanche123/Imagine), which wraps available libraries.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmike42%2Fgfx-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmike42%2Fgfx-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmike42%2Fgfx-php/lists"}