{"id":24495400,"url":"https://github.com/kamilburda/gimp-align-layers","last_synced_at":"2025-03-15T04:43:46.333Z","repository":{"id":186538068,"uuid":"675329869","full_name":"kamilburda/gimp-align-layers","owner":"kamilburda","description":"GIMP script to align a layer against another layer","archived":false,"fork":false,"pushed_at":"2024-12-07T19:42:11.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-21T20:22:33.907Z","etag":null,"topics":["gimp","gimp-plugin","gimp-plugins","gimp-script","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/kamilburda.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}},"created_at":"2023-08-06T15:08:52.000Z","updated_at":"2024-12-07T19:52:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"89f19e43-b50c-4eaf-9005-7dea30feabab","html_url":"https://github.com/kamilburda/gimp-align-layers","commit_stats":null,"previous_names":["kamilburda/gimp-align-layer"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamilburda%2Fgimp-align-layers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamilburda%2Fgimp-align-layers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamilburda%2Fgimp-align-layers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamilburda%2Fgimp-align-layers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kamilburda","download_url":"https://codeload.github.com/kamilburda/gimp-align-layers/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243685527,"owners_count":20330980,"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":["gimp","gimp-plugin","gimp-plugins","gimp-script","python"],"created_at":"2025-01-21T20:21:21.872Z","updated_at":"2025-03-15T04:43:46.313Z","avatar_url":"https://github.com/kamilburda.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Align Layers\n============\n\nThis is a [GIMP](https://www.gimp.org/) script that aligns the specified layer(s) against the specified image or another layer.\n\nAlignment is performed horizontally (none, left, center, right) and/or vertically (none, top, center, bottom).\n\nX- and Y-offsets can be specified as pixels, as percentages of image width/height or as percentages of the second layer width/height.\n\nThis script introduces a procedure named `python-fu-align-layers`.\nWhile aligning layers is already possible in GIMP, this script is intended to be used for automation purposes. Hence, there is no GUI associated with this procedure.\n\n\nUsage\n-----\n\nExample of centering the first layer against the image, both horizontally and vertically:\n\n```\nimage = Gimp.get_images()[0]\nlayer_to_align = image.get_layers()[0]\n\nprocedure = Gimp.get_pdb().lookup_procedure('python-fu-align-layers')\nconfig = procedure.create_config()\nconfig.set_property('image', image)\nconfig.set_core_object_array('drawables', [layer_to_align])\nconfig.set_property('horizontal-align', 'center')\nconfig.set_property('vertical-align', 'center')\nprocedure.run(config)\n```\n\nThe parameters are explained in the GIMP procedure browser. The procedure name is `python-fu-align-layers`.\n\n\nInstallation\n------------\n\nGIMP 3.0.0-RC1 or later is required.\n\nFor Linux, make sure you have at least Python 3.7 installed.\n\n1. In GIMP, locate the folder containing GIMP plug-ins - open GIMP and go to Edit → Preferences → Folders → Plug-Ins.\n2. Copy the `align_layers` folder inside one of the folders identified in step 1.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamilburda%2Fgimp-align-layers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkamilburda%2Fgimp-align-layers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamilburda%2Fgimp-align-layers/lists"}