{"id":17603481,"url":"https://github.com/laurentrdc/hakyll-images","last_synced_at":"2025-05-01T01:52:42.540Z","repository":{"id":48335963,"uuid":"162020518","full_name":"LaurentRDC/hakyll-images","owner":"LaurentRDC","description":"Hakyll utilities to work with images","archived":false,"fork":false,"pushed_at":"2025-02-11T12:36:00.000Z","size":5128,"stargazers_count":19,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-01T01:52:32.324Z","etag":null,"topics":["hakyll","image-processing","images","web"],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LaurentRDC.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-16T16:36:43.000Z","updated_at":"2025-02-11T12:36:03.000Z","dependencies_parsed_at":"2024-04-10T18:54:42.304Z","dependency_job_id":null,"html_url":"https://github.com/LaurentRDC/hakyll-images","commit_stats":{"total_commits":84,"total_committers":6,"mean_commits":14.0,"dds":0.5119047619047619,"last_synced_commit":"5f9284a97f3fc8f056a79fd5321c39e56622c93f"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaurentRDC%2Fhakyll-images","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaurentRDC%2Fhakyll-images/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaurentRDC%2Fhakyll-images/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaurentRDC%2Fhakyll-images/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LaurentRDC","download_url":"https://codeload.github.com/LaurentRDC/hakyll-images/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251810899,"owners_count":21647626,"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":["hakyll","image-processing","images","web"],"created_at":"2024-10-22T13:52:53.562Z","updated_at":"2025-05-01T01:52:42.507Z","avatar_url":"https://github.com/LaurentRDC.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hakyll-images\n\n[![Hackage version](https://img.shields.io/hackage/v/hakyll-images.svg)](http://hackage.haskell.org/package/hakyll-images)\n\n## A Haskell package containing utilities to deal with images in the context of Hakyll\n\n[Hakyll](https://hackage.haskell.org/package/hakyll) is a static website compiler library. As one of the benefits of static websites is their small size, this repository aims at providing utilities to work with images in the context of Hakyll. Example usage includes:\n\n* Re-encoding Jpeg images at a lower quality to make them much smaller;\n* Re-sizing images to fit within a certain shape;\n\n## Usage\n\n`hakyll-images` is meant to be integrated within a Hakyll program. Here are some examples within a Hakyll program:\n\n```haskell\nimport Hakyll\nimport Hakyll.Images        ( loadImage\n                            , compressJpgCompiler\n                            , resizeImageCompiler\n                            , scaleImageCompiler\n                            )\n\n(...)\n\nhakyll $ do\n\n    -- Compress all source Jpegs to a Jpeg quality of 50 (maximum of 100)\n    match \"images/**.jpg\" $ do\n        route idRoute\n        compile $ loadImage \n            \u003e\u003e= compressJpgCompiler 50\n\n    -- Resize all profile pictures to 64x48\n    -- Aspect ratio might be mangled\n    match \"profiles/**.jpg\" $ do\n        route idRoute\n        compile $ loadImage \n            \u003e\u003e= resizeImageCompiler 64 48\n            \u003e\u003e= compressJpgCompiler 50\n\n    -- Scale images to fit within a 600x400 box\n    -- Aspect ratio will be preserved\n    match \"images/**.png\" $ do\n        route idRoute\n        compile $ loadImage\n            \u003e\u003e= scaleImageCompiler 600 400\n\n    (...)\n```\n\nTake a look at the [documentation](hackage.haskell.org/package/hakyll-images) for more usage examples.\n\nIf you would like a feature added, consider creating [an issue on Github](https://github.com/LaurentRDC/hakyll-images/issues/)\n\n## Installation\n\n### From Hackage\n\n`hakyll-images` is available on [Hackage](https://hackage.haskell.org). Using the [`cabal-install`](https://www.haskell.org/cabal/) tool:\n\n```bash\ncabal update\ncabal install hakyll-images\n```\n\n### From source\n\nBuilding from source can be done using [`stack`](https://docs.haskellstack.org/en/stable/README/) or [`cabal`](https://www.haskell.org/cabal/):\n\n```bash\ngit clone github.com/LaurentRDC/hakyll-images.git\ncd hakyll-images\nstack install # Alternatively, `cabal install`\n```\n\n## Documentation\n\nThe documentation for the latest release is available on the [Hackage page](http://hackage.haskell.org/package/hakyll-images/). \n\n## Support  Issues / Feature requests\n\nAll support requests (e.g. installation issues, unclear documentation, bugs, etc.) should of [filed on Github as an issue](https://github.com/LaurentRDC/hakyll-images/issues/)\n\n## License\n\nThis package is made available under the BSD 3-clause license. For more details, see the [LICENSE.md](https://github.com/LaurentRDC/hakyll-images/blob/master/LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaurentrdc%2Fhakyll-images","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaurentrdc%2Fhakyll-images","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaurentrdc%2Fhakyll-images/lists"}