{"id":24499698,"url":"https://github.com/codewithkyle/jitter","last_synced_at":"2026-01-20T09:34:54.631Z","repository":{"id":43786083,"uuid":"343590874","full_name":"codewithkyle/jitter","owner":"codewithkyle","description":"An Imgix inspired image transformation library.","archived":false,"fork":false,"pushed_at":"2024-10-09T17:08:47.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T13:07:56.029Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/codewithkyle/jitter-core","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/codewithkyle.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","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":"2021-03-01T23:54:43.000Z","updated_at":"2024-10-09T17:08:51.000Z","dependencies_parsed_at":"2025-04-14T05:33:52.331Z","dependency_job_id":"fb8328aa-83c9-4657-9f2a-7ab714bca4aa","html_url":"https://github.com/codewithkyle/jitter","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/codewithkyle/jitter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithkyle%2Fjitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithkyle%2Fjitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithkyle%2Fjitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithkyle%2Fjitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codewithkyle","download_url":"https://codeload.github.com/codewithkyle/jitter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithkyle%2Fjitter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28600712,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T08:51:33.170Z","status":"ssl_error","status_checked_at":"2026-01-20T08:51:10.855Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-01-21T22:15:18.856Z","updated_at":"2026-01-20T09:34:54.617Z","avatar_url":"https://github.com/codewithkyle.png","language":"PHP","readme":"# Jitter\n\nJitter is an image transformation library with an API is based on [Imgix](https://docs.imgix.com/apis/url). This library was created to be a simple and free alternative to an Imgix style service. It **does not and will not** have all the bells and whistles that other services/libraries offer. If you need something more advanced besides basic image transformations I suggest you pay for [Imgix](https://www.imgix.com/pricing).\n\n## Requirements\n\nThis library requires PHP 7.2 or later and [ImageMagick](https://imagemagick.org/index.php).\n\n## Installation\n\n```bash\n# Install the library via composer\ncomposer require codewithkyle/jitter-core\n\n# Optional webp support (recommended)\nsudo apt install webp\n```\n\n## Using Jitter\n\nTransforming images:\n\n```php\nuse codewithkyle\\JitterCore\\Jitter;\n\nclass ImageController\n{\n    public function transformImage()\n    {\n        $imageFilePath = \"./image.jpg\"; // copy of source image (will be overwritten)\n        $params = [\"w\" =\u003e 320, \"ar\" =\u003e \"1:1\", \"fm\" =\u003e \"jpg\"]; // See transformation parameter table below for more options\n\n        $transformSettings = Jitter::BuildTransform($params); // Transform settings can be hashed with the base image's indentifier when caching\n        Jitter::TransformImage($imageFilePath, $transformSettings); // Manipulates and overwrites the image located at $imageFilePath\n\n        // Optional Next Steps:\n        // Save $imageFilePath a cloud provider (such as S3)\n    }\n}\n```\n\nTransformation parameters:\n\n| Parameter     | Default                    | Description                     | Valid options                                  |\n| ------------- | -------------------------- | ------------------------------- | ---------------------------------------------- |\n| `w`           | base image width           | desired image width             | `int`                                          |\n| `h`           | base image height          | desired image height            | `int`                                          |\n| `ar`          | base image aspect ratio    | desired aspect ratio            | `int`:`int`                                    |\n| `fm`          | `auto`                     | desired image format            | `jpg`, `jpeg`, `png`, `gif`, `webp`, `auto`    |\n| `q`           | `80`                       | desired image quality           | `0` to `100`                                   |\n| `m`           | `clip`                     | how the image should be resized | `crop`, `clip`, `fit`, `letterbox`, `croponly` |\n| `bg`          | `ffffff`                   | letterbox background color      | `hex`                                          |\n| `fp-x`        | `0.5` or asset focal point | horizontal focus point          | `0` to `1`                                     |\n| `fp-y`        | `0.5` or asset focal point | vertical focus point            | `0` to `1`                                     |\n\nThe `auto` format type will return a `webp` image when the server can generate the format and the client's browser supports the format.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithkyle%2Fjitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodewithkyle%2Fjitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithkyle%2Fjitter/lists"}