{"id":21485163,"url":"https://github.com/drew138/go-graphics","last_synced_at":"2025-03-17T09:45:15.426Z","repository":{"id":57572374,"uuid":"348542255","full_name":"drew138/go-graphics","owner":"drew138","description":"go package with various utilities for image processing and generation","archived":false,"fork":false,"pushed_at":"2021-12-31T18:13:18.000Z","size":3065,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T19:24:30.891Z","etag":null,"topics":["image-processing","image-transformations"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drew138.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}},"created_at":"2021-03-17T01:23:44.000Z","updated_at":"2022-11-14T16:33:57.000Z","dependencies_parsed_at":"2022-08-24T06:00:44.091Z","dependency_job_id":null,"html_url":"https://github.com/drew138/go-graphics","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drew138%2Fgo-graphics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drew138%2Fgo-graphics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drew138%2Fgo-graphics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drew138%2Fgo-graphics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drew138","download_url":"https://codeload.github.com/drew138/go-graphics/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244013291,"owners_count":20383707,"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-processing","image-transformations"],"created_at":"2024-11-23T13:14:17.798Z","updated_at":"2025-03-17T09:45:15.402Z","avatar_url":"https://github.com/drew138.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GO GRAPHICS\n\n## Image Processing\n\nThe processing package provides the function `TransformImage` which takes an `Image`, and `Kernel` structs as parameters and returns a pointer to `RGBA` struct.\n\nTransformImage Type Declaration\n\n```\nfunc TransformImage(i image.Image, k *kernels.Kernel) *image.RGBA\n```\n\n`Image` and `RGBA` structs are provided by the `image` package from the standard library. `Kernel` on the other hand is supplied by the kernel package of this library.\n\n## Supported Formats\n\nThree formats are supported by the processing package (png, jpeg and jpg). The formats package supplies the function `IsSupportedFormat` which takes a string and returns a boolean value.\n\n## Kernels\n\nFour basic kernels are provided by the kernel package:\n\n#### Example Transformations\n\n### Original Image\n\n\u003cimg src=\"./assets/lenna.png\" width=\"200\"\u003e\n\n### Sharpen Kernel\n\n\u003cimg src=\"./assets/lenna-sharpen.png\" width=\"200\"\u003e\n\n### GaussianBlur Kernel\n\n\u003cimg src=\"./assets/lenna-gaussian-blur.png\" width=\"200\"\u003e\n\n### EdgeDetection Kernel\n\nWhen applied on an image transformation, the resulting image displays the edges of objects in the image.\n\n\u003cimg src=\"./assets/lenna-edge-detection.png\" width=\"200\"\u003e\n\n### BoxBlur Kernel\n\n\u003cimg src=\"./assets/lenna-box-blur.png\" width=\"200\"\u003e\n\n### Custom Kernel\n\nA custom kernel can be used by implementing the Kernel struct from the kernels package. This struct contains the field Kernel which is a three by three matrix of float32 values.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrew138%2Fgo-graphics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrew138%2Fgo-graphics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrew138%2Fgo-graphics/lists"}