{"id":25440513,"url":"https://github.com/skaplanofficial/macimg","last_synced_at":"2026-03-09T10:34:09.530Z","repository":{"id":65135283,"uuid":"581428533","full_name":"SKaplanOfficial/macimg","owner":"SKaplanOfficial","description":"A Python package for manipulating images using Objective-C frameworks.","archived":false,"fork":false,"pushed_at":"2023-12-25T03:41:21.000Z","size":19138,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-01T15:42:59.522Z","etag":null,"topics":["image","image-manipulation","mac","macos","objective-c"],"latest_commit_sha":null,"homepage":"","language":"Python","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/SKaplanOfficial.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2022-12-23T06:47:13.000Z","updated_at":"2024-03-16T23:35:22.000Z","dependencies_parsed_at":"2023-12-25T04:27:58.353Z","dependency_job_id":null,"html_url":"https://github.com/SKaplanOfficial/macimg","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"53d605209f03db1b9743789c3cd748ef2f1b349d"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SKaplanOfficial%2Fmacimg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SKaplanOfficial%2Fmacimg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SKaplanOfficial%2Fmacimg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SKaplanOfficial%2Fmacimg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SKaplanOfficial","download_url":"https://codeload.github.com/SKaplanOfficial/macimg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239285805,"owners_count":19613678,"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","image-manipulation","mac","macos","objective-c"],"created_at":"2025-02-17T11:37:17.385Z","updated_at":"2025-11-01T11:30:26.064Z","avatar_url":"https://github.com/SKaplanOfficial.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# macimg\nA Python package for manipulating images using Objective-C frameworks. Only works on macOS as it requires the Objective-C runtime.\n\n# Examples\n\n## Example 1: Applying Image Filters\n\n```python\nfrom macimg import Image\nfrom macimg.filters import (\n    Bloom,\n    Comic,\n    Crystallize,\n    Edges,\n    Invert,\n    Sepia,\n    Vignette\n)\n\n# Load an image\nimg = Image(\"assets/Iceland1.jpg\")\nimg.show_in_preview()\n\n# Apply a single filter\nVignette(intensity=10).apply_to(img)\nimg.show_in_preview()\n\n# Apply multiple filters\nfilters = [Comic(), Edges(), Invert(), Sepia(), Bloom(), Crystallize(crystal_size=50)]\nfor index, filter in enumerate(filters):\n    filter.apply_to(img)\n    img.show_in_preview()\n```\n\nThe code above produces the following sequence of images:\n![Images produced by applying several filters sequentially](./assets/FilterExample.png)\n\n## Example 2: Applying Distortions\n\n```python\nfrom macimg import Image\nfrom macimg.distortions import (\n    Bump,\n    CircleSplash,\n    Hole,\n    LightTunnel,\n    Pinch,\n    TorusLens,\n    Vortex,\n)\n\n# Load image\nimg = Image(\"assets/Iceland2.jpg\")\nimg.show_in_preview()\n\n# Apply multiple distortions\ndistortions = [Bump(radius=500, curvature=1), Vortex(radius=750, angle=1000.0), TorusLens(radius=1000, width=250), Hole(), Pinch(intensity=1), CircleSplash(), LightTunnel()]\nfor index, distortion in enumerate(distortions):\n    distortion.apply_to(img)\n    img.show_in_preview()\n```\n\nThe code above produces the following sequence of images:\n![Images produced by applying several distortions sequentially](./assets/DistortionExample.png)\n\n## Example 3: Applying Transformations\n\n```python\nfrom macimg import Image\nfrom macimg.transforms import (\n    Flip,\n    Rotate,\n)\n\n# Load image\nimg = Image(\"assets/Iceland3.jpg\")\nimg.show_in_preview()\n\n# Apply multiple transformations\ntransforms = [Flip(\"horizontal\"), Flip(\"vertical\"), Rotate(degrees=30)]\nfor index, transform in enumerate(transforms):\n    transform.apply_to(img)\n    img.show_in_preview()\n```\n\nThe code above produces the following sequence of images:\n![Images produced by applying multiple transformations sequentially](./assets/TransformExample.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskaplanofficial%2Fmacimg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskaplanofficial%2Fmacimg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskaplanofficial%2Fmacimg/lists"}