{"id":16078417,"url":"https://github.com/svycka/sv-images","last_synced_at":"2025-03-18T05:31:31.281Z","repository":{"id":57062848,"uuid":"44958998","full_name":"svycka/sv-images","owner":"svycka","description":"Image manipulation library with an HTTP based API.","archived":false,"fork":false,"pushed_at":"2017-08-02T13:44:11.000Z","size":35,"stargazers_count":7,"open_issues_count":6,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T07:35:17.529Z","etag":null,"topics":["image-processing","image-storage","imagemagick","images","zend-framework"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/svycka.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-26T09:39:24.000Z","updated_at":"2021-06-04T18:07:24.000Z","dependencies_parsed_at":"2022-08-24T14:01:04.979Z","dependency_job_id":null,"html_url":"https://github.com/svycka/sv-images","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svycka%2Fsv-images","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svycka%2Fsv-images/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svycka%2Fsv-images/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svycka%2Fsv-images/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/svycka","download_url":"https://codeload.github.com/svycka/sv-images/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243903187,"owners_count":20366438,"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":["image-processing","image-storage","imagemagick","images","zend-framework"],"created_at":"2024-10-09T10:12:23.062Z","updated_at":"2025-03-18T05:31:30.876Z","avatar_url":"https://github.com/svycka.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svycka/sv-images\n\n[![Build Status][ico-travis]][link-travis]\n[![Coverage Status](https://coveralls.io/repos/svycka/sv-images/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/svycka/sv-images?branch=master)\n[![Quality Score][ico-code-quality]][link-code-quality]\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Software License][ico-license]](LICENSE.md)\n[![Total Downloads][ico-downloads]][link-downloads]\n\nImage manipulation library written in PHP, similar to cloud image processing services like [Imgix](http://www.imgix.com/) and [Cloudinary](http://cloudinary.com/). This module simplifies image manipulation for Zend Framework 2\n\n\n## Install\n\nVia Composer\n\n``` bash\n$ composer require svycka/sv-images\n```\n\n## Basic Usage\n\n- Register `SvImages` as module in `config/application.config.php`\n- Create filesystem factory, exmaple:\n```php\nclass ImageFilesystemFactory implements FactoryInterface\n{\n    public function createService(ServiceLocatorInterface $serviceLocator)\n    {\n        $flysystem = new \\League\\Flysystem\\Filesystem(new Local(__DIR__.'/path/to/files'));\n        $adapter = new \\SvImages\\Filesystem\\Adapter\\FlySystemAdapter($flysystem);\n        return new \\SvImages\\Filesystem\\Filesystem($adapter);\n    }\n}\n```\n- Create cache storage, for best performance should point to public directory, so once cache is generated PHP will not be hit at all, example:\n```php\nclass ImageCacheStorageFactory implements FactoryInterface\n{\n    public function createService(ServiceLocatorInterface $serviceLocator)\n    {\n        $flysystem = new \\League\\Flysystem\\Filesystem(new Local(__DIR__.'/path/to/public'));\n        return new \\SvImages\\Cache\\FlySystemStorage($flysystem);\n    }\n}\n```\n- Copy the file located in `vendor/svycka/sv-images/config/images.global.php.dist` to `config/autoload/images.global.php` and change the values as you wish\n- Test it by going to http://example.com/image/crop,x15,y15,w300,h300/fit,w200,h150,top-left/f_key/your-image.jpg\n\n## Change log\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Credits\n\n- [Vytautas Stankus][link-author]\n- [All Contributors][link-contributors]\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/svycka/sv-images.svg?style=flat-square\n[ico-travis]: https://img.shields.io/travis/svycka/sv-images/master.svg?style=flat-square\n[ico-code-quality]: https://img.shields.io/scrutinizer/g/svycka/sv-images.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/svycka/sv-images.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/svycka/sv-images\n[link-downloads]: https://packagist.org/packages/svycka/sv-images\n[link-travis]: https://travis-ci.org/svycka/sv-images\n[link-code-quality]: https://scrutinizer-ci.com/g/svycka/sv-images\n[link-author]: https://github.com/svycka\n[link-contributors]: https://github.com/svycka/sv-images/graphs/contributors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvycka%2Fsv-images","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvycka%2Fsv-images","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvycka%2Fsv-images/lists"}