{"id":37113564,"url":"https://github.com/icemint0828/imgedit","last_synced_at":"2026-01-14T13:23:50.426Z","repository":{"id":37349904,"uuid":"503968836","full_name":"icemint0828/imgedit","owner":"icemint0828","description":"Imgedit is a package that performs image processing such as resizing and trimming.","archived":false,"fork":false,"pushed_at":"2022-10-13T04:23:13.000Z","size":8637,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-21T20:46:19.296Z","etag":null,"topics":["cli","file-conversion","go","golang","grayscale","image-processing","resize","reverse","tile","trim"],"latest_commit_sha":null,"homepage":"","language":"Go","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/icemint0828.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-16T01:10:47.000Z","updated_at":"2024-05-22T22:07:45.000Z","dependencies_parsed_at":"2023-01-19T11:31:20.040Z","dependency_job_id":null,"html_url":"https://github.com/icemint0828/imgedit","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/icemint0828/imgedit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icemint0828%2Fimgedit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icemint0828%2Fimgedit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icemint0828%2Fimgedit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icemint0828%2Fimgedit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icemint0828","download_url":"https://codeload.github.com/icemint0828/imgedit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icemint0828%2Fimgedit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28421147,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cli","file-conversion","go","golang","grayscale","image-processing","resize","reverse","tile","trim"],"created_at":"2026-01-14T13:23:49.908Z","updated_at":"2026-01-14T13:23:50.417Z","avatar_url":"https://github.com/icemint0828.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\" style=\"width: 100%;\"\u003e\n \u003cimg alt=\"imgedit\" src=\"assets/image/logo.png\" style=\"width:60%;\"\u003e\n\u003c/div\u003e\n\n![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/icemint0828/imgedit)\n[![Go project version](https://badge.fury.io/go/github.com%2Ficemint0828%2Fimgedit.svg)](https://badge.fury.io/go/github.com%2Ficemint0828%2Fimgedit)\n[![Go](https://github.com/icemint0828/imgedit/actions/workflows/go.yml/badge.svg)](https://github.com/icemint0828/imgedit/actions/workflows/go.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/icemint0828/imgedit)](https://goreportcard.com/report/github.com/icemint0828/imgedit)\n[![codecov](https://codecov.io/gh/icemint0828/imgedit/branch/main/graph/badge.svg?token=GI2WTY1V5O)](https://codecov.io/gh/icemint0828/imgedit)\n[![CodeFactor](https://www.codefactor.io/repository/github/icemint0828/imgedit/badge)](https://www.codefactor.io/repository/github/icemint0828/imgedit)\n[![golang example](https://img.shields.io/badge/golang%20example-image%20processing-blue)](https://golangexample.com/imgedit-a-package-that-performs-image-processing-such-as-resizing-and-trimming)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n## Overview\n\n`Imgedit` is a package that performs image processing such as resizing and trimming available on both CLI and [GUI](#usage-gui).\n\n## Features\n\n- resize\n- trim\n- tile (lay down images)\n- reverse (`vertical`, `horizon`)\n- ~~grayscale~~\n- add string\n- filter (`gray`, `sepia`)\n- interactive file format conversion (`png`, `jpeg`, `gif`)\n\n \u003ctable\u003e\n    \u003ctr\u003e\n      \u003ctd\u003eresize\u003c/td\u003e\n      \u003ctd\u003etrim\u003c/td\u003e\n      \u003ctd\u003etile\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003cimg alt=\"resize\" src=\"assets/image/resize.gif\"\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003cimg alt=\"trim\" src=\"assets/image/trim.gif\"\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003cimg alt=\"tile\" src=\"assets/image/tile.gif\"\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003ereverse horizon\u003c/td\u003e\n      \u003ctd\u003ereverse vertical\u003c/td\u003e\n      \u003ctd\u003eadd string\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003cimg alt=\"reverse horizon\" src=\"assets/image/reverse-x.gif\"\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003cimg alt=\"reverse vertical\" src=\"assets/image/reverse-y.gif\"\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003cimg alt=\"add string\" src=\"assets/image/add-string.gif\"\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003efilter gray\u003c/td\u003e\n      \u003ctd\u003efilter sepia\u003c/td\u003e\n      \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003cimg alt=\"filter gray\" src=\"assets/image/gray.gif\"\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003cimg alt=\"filter sepia\" src=\"assets/image/sepia.gif\"\u003e\u003c/td\u003e\n      \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n \u003c/table\u003e\n\n## Usage (Package)\n\n```shell\n$ go get github.com/icemint0828/imgedit@v1.6.0\n```\n\nAn example with file conversion is as follows.\n\n```go\npackage main\n\nimport (\n    \"github.com/icemint0828/imgedit\"\n)\n\nfunc main() {\n    fc, _, err := imgedit.NewFileConverter(\"srcImage.png\")\n    if err != nil {\n        panic(err)\n    }\n    fc.Filter(imgedit.GrayModel)\n    err = fc.SaveAs(\"dstImage.png\", imgedit.Png)\n    if err != nil {\n        panic(err)\n    }\n}\n```\n\nIt can also work with just convert bytes through io.Writer and io.Reader.\n\n```go\npackage main\n\nimport (\n\t\"bytes\"\n\t\"os\"\n\n\t\"github.com/icemint0828/imgedit\"\n)\n\nfunc main() {\n\tsrcFile, err := os.Open(\"srcImage.png\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer srcFile.Close()\n\n\tbc, _, err := imgedit.NewByteConverter(srcFile)\n\tbc.ResizeRatio(0.5)\n\n\tbuffer := bytes.NewBuffer([]byte{})\n\t_ = bc.WriteAs(buffer, imgedit.Jpeg)\n\n\tdstFile, err := os.Create(\"dstImage.png\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer dstFile.Close()\n\n\t_, _ = buffer.WriteTo(dstFile)\n}\n\n```\n\nIt can also work with just convert image.\n\n```go\npackage main\n\nimport (\n    \"image/png\"\n    \"os\"\n\n    \"github.com/icemint0828/imgedit\"\n)\n\nfunc main() {\n    srcFile, err := os.Open(\"srcImage.png\")\n    if err != nil {\n        panic(err)\n    }\n    defer srcFile.Close()\n    srcImage, err := png.Decode(srcFile)\n    if err != nil {\n        panic(err)\n    }\n\n    c := imgedit.NewConverter(srcImage)\n    c.Resize(500, 500)\n    dstImage := c.Convert()\n\n    dstFile, err := os.Create(\"dstImage.png\")\n    if err != nil {\n        panic(err)\n    }\n    defer dstFile.Close()\n    err = png.Encode(dstFile, dstImage)\n    if err != nil {\n        panic(err)\n    }\n}\n```\n\n## Usage (CLI)\n\nYou can download the executable file from the link below.\n\n- ### [Windows](https://github.com/icemint0828/imgedit/releases/latest/download/imgedit_Windows.zip)\n\n- ### [Linux](https://github.com/icemint0828/imgedit/releases/latest/download/imgedit_Linux.zip)\n\n- ### [mac OS](https://github.com/icemint0828/imgedit/releases/latest/download/imgedit_MacOS.zip)\n\nOr if you can use `brew` on mac OS.\n\n```shell\n$ brew install icemint0828/tap/imgedit\n```\n\nFor more information, please use the help command:\n\n```shell\n$ imgedit -help\n```\n\n## Usage (CLI on docker)\n\nYou can also run the CLI on docker.\nThis procedure can only convert files under the current working directory(WD).\n\n```shell\n$ docker run --rm -e WD=$(pwd) -v $(pwd):/mnt ghcr.io/icemint0828/imgedit:latest filter srcImage.png -mode gray\n```\n\nFor more information, please use the help command:\n\n```shell\n$ docker run --rm -e WD=$(pwd) -v $(pwd):/mnt ghcr.io/icemint0828/imgedit:latest -help\n```\n\n## Usage (GUI)\n\nYou can also use a [sample GUI tool](https://github.com/icemint0828/imgedit-wasm) that is created with `WASM` by this package.\n\n- ### Check out the [image edit tool](https://icemint0828.github.io/imgedit-wasm/)\n\n## Contributing\n\nThis project is currently at early stages and is being developed by internal members.\n\n- Report your issues through [GitHub issues](https://github.com/icemint0828/imgedit/issues).\n\n## License\n\n`imgedit` is under [MIT license](https://github.com/icemint0828/imgedit/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficemint0828%2Fimgedit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficemint0828%2Fimgedit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficemint0828%2Fimgedit/lists"}