{"id":15578458,"url":"https://github.com/xp-framework/imaging","last_synced_at":"2025-04-24T01:22:34.985Z","repository":{"id":11787223,"uuid":"14328833","full_name":"xp-framework/imaging","owner":"xp-framework","description":"Imaging APIs for the XP Framework","archived":false,"fork":false,"pushed_at":"2025-01-01T12:50:10.000Z","size":4648,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T06:03:23.931Z","etag":null,"topics":["gd","image-processing","php7","php8","xp-framework"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/xp-framework.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-11-12T10:16:41.000Z","updated_at":"2025-01-01T12:49:48.000Z","dependencies_parsed_at":"2025-01-01T13:32:06.911Z","dependency_job_id":"808f3571-9758-4799-9367-d1524d6c0d20","html_url":"https://github.com/xp-framework/imaging","commit_stats":{"total_commits":17963,"total_committers":38,"mean_commits":472.7105263157895,"dds":0.3547848354951846,"last_synced_commit":"eb98d45c49c607650339106a0776403a521019ee"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xp-framework%2Fimaging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xp-framework%2Fimaging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xp-framework%2Fimaging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xp-framework%2Fimaging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xp-framework","download_url":"https://codeload.github.com/xp-framework/imaging/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250541750,"owners_count":21447574,"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":["gd","image-processing","php7","php8","xp-framework"],"created_at":"2024-10-02T19:10:36.352Z","updated_at":"2025-04-24T01:22:34.961Z","avatar_url":"https://github.com/xp-framework.png","language":"PHP","readme":"Imaging APIs for the XP Framework\n========================================================================\n\n[![Build status on GitHub](https://github.com/xp-framework/imaging/workflows/Tests/badge.svg)](https://github.com/xp-framework/imaging/actions)\n[![XP Framework Module](https://raw.githubusercontent.com/xp-framework/web/master/static/xp-framework-badge.png)](https://github.com/xp-framework/core)\n[![BSD Licence](https://raw.githubusercontent.com/xp-framework/web/master/static/licence-bsd.png)](https://github.com/xp-framework/core/blob/master/LICENCE.md)\n[![Requires PHP 7.4+](https://raw.githubusercontent.com/xp-framework/web/master/static/php-7_4plus.svg)](http://php.net/)\n[![Supports PHP 8.0+](https://raw.githubusercontent.com/xp-framework/web/master/static/php-8_0plus.svg)](http://php.net/)\n[![Latest Stable Version](https://poser.pugx.org/xp-framework/imaging/version.svg)](https://packagist.org/packages/xp-framework/imaging)\n\nLoading an image\n----------------\n\n```php\nuse img\\Image;\nuse img\\io\\JpegStreamReader;\nuse io\\File;\n\n$image= Image::loadFrom(new JpegStreamReader(new File('image.jpeg')));\n\n// Can now be manipulated\n```\n\nManipulating an image\n---------------------\n\nResizing the original image to 640x480\n\n```php\nuse img\\Image;\n\n$transformed= Image::create(640, 480, Image::TRUECOLOR);\n$transformed-\u003eresampleFrom($image);\n```\n\nApply filters:\n\n```php\nuse img\\filters\\SharpenFilter;\n\n$transformed-\u003eapply(new SharpenFilter());\n```\n\nConvert:\n\n```php\nuse img\\convert\\GrayscaleConverter;\n\n$transformed-\u003econvertTo(new GrayscaleConverter());\n```\n\nSaving an image\n---------------\n\n```php\nuse img\\io\\JpegStreamWriter;\nuse io\\File;\n\n$transformed-\u003esaveTo(new JpegStreamWriter(new File('transformed.jpeg'), 100));\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxp-framework%2Fimaging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxp-framework%2Fimaging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxp-framework%2Fimaging/lists"}