{"id":17609910,"url":"https://github.com/vixalien/gvips","last_synced_at":"2025-03-29T23:42:03.662Z","repository":{"id":191158977,"uuid":"639307979","full_name":"vixalien/gvips","owner":"vixalien","description":"Vips for GJS","archived":false,"fork":false,"pushed_at":"2023-08-28T12:30:50.000Z","size":838,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-05T01:29:48.561Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/vixalien.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2023-05-11T07:50:25.000Z","updated_at":"2023-05-11T07:51:06.000Z","dependencies_parsed_at":"2023-08-28T13:05:03.247Z","dependency_job_id":null,"html_url":"https://github.com/vixalien/gvips","commit_stats":null,"previous_names":["vixalien/gvips"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vixalien%2Fgvips","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vixalien%2Fgvips/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vixalien%2Fgvips/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vixalien%2Fgvips/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vixalien","download_url":"https://codeload.github.com/vixalien/gvips/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246258862,"owners_count":20748573,"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":[],"created_at":"2024-10-22T17:24:07.436Z","updated_at":"2025-03-29T23:42:03.640Z","avatar_url":"https://github.com/vixalien.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GVIPS: libvips for GJS\n\nThis is a GJS binding for [libvips]. It allows running the highly performant\nimage processing library under GJS.\n\n\u003e Note: This is a work in progress. It is not ready for use.\n\n## Installation\n\n### From NPM\n\n```bash\nnpm install gvips\n```\n\n### From Source\n\n- [libvips] and make sure you also have the development files (e.g.\n  `libvips-dev` on Debian/Ubuntu or `vips-devel` on Fedora/CentOS).\n- GJS\n- Meson and Ninja\n- Yarn\n\n### Building\n\nThe build system relies on Meson (and ninja) and Yarn. By building GVIPS, you\nalso build **Gvips-Ext**, which is a thin wrapper that provides functions that\nare not exposed by libvips' GObject Introspection data.\n\n```sh\nmeson setup build\nninja -C build\nninja yarn_build -C build\n```\n\n## Usage\n\nTo use the library, do:\n\n```js\nimport Vips from \"gi://Vips\";\nimport { initWrappers } from \"gvips/dist/wrapper\";\nimport { vips_image_write_to_file } from \"gvips/dist/image\";\n\n// convenience wrappers for vips operations\ninitWrappers();\n\nconst image = Vips.Image.black(100, 100);\nconst [output, meta] = image.autorot({\n  output: [\"angle\", \"flip\"],\n});\n\nconsole.log(\n  \"image was rotated \" + meta.angle + \" degrees. flipped: \" + meta.flip,\n);\n\nvips_image_write_to_file(output, \"test.png\");\n```\n\nor you can let gvips initialise the wrappers for you by directly importing from\n`gvips`.\n\n```js\nimport Vips from \"gvips\";\n\nconst image = Vips.Image.black(100, 100);\n// ...\n```\n\n## Testing your code\n\nYou can use the file `test/main.ts` to write test code, then run the following\nfile to compile and execute the code.\n\n```sh\nyarn test\n```\n\n## License\n\nThis project is licensed under the MIT Licence - see the [LICENCE](LICENCE) file\nfor details.\n\n[libvips]: https://libvips.org/\n[LICENCE]: ./LICENCE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvixalien%2Fgvips","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvixalien%2Fgvips","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvixalien%2Fgvips/lists"}