{"id":42499873,"url":"https://github.com/linxlib/openjpeg","last_synced_at":"2026-01-28T13:03:45.655Z","repository":{"id":64497420,"uuid":"575654929","full_name":"linxlib/openjpeg","owner":"linxlib","description":"golang wrapper for openjpeg library","archived":false,"fork":false,"pushed_at":"2022-12-13T05:26:53.000Z","size":864,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-08-12T03:37:01.111Z","etag":null,"topics":["cgo-bindings","golang","image-processing","jpeg2000","openjpeg"],"latest_commit_sha":null,"homepage":"","language":"C","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/linxlib.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":"2022-12-08T02:08:47.000Z","updated_at":"2022-12-09T12:30:17.000Z","dependencies_parsed_at":"2022-12-27T20:20:40.434Z","dependency_job_id":null,"html_url":"https://github.com/linxlib/openjpeg","commit_stats":null,"previous_names":[],"tags_count":5,"template":null,"template_full_name":null,"purl":"pkg:github/linxlib/openjpeg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linxlib%2Fopenjpeg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linxlib%2Fopenjpeg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linxlib%2Fopenjpeg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linxlib%2Fopenjpeg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linxlib","download_url":"https://codeload.github.com/linxlib/openjpeg/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linxlib%2Fopenjpeg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28845783,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T13:02:32.985Z","status":"ssl_error","status_checked_at":"2026-01-28T13:02:04.945Z","response_time":57,"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":["cgo-bindings","golang","image-processing","jpeg2000","openjpeg"],"created_at":"2026-01-28T13:03:45.518Z","updated_at":"2026-01-28T13:03:45.646Z","avatar_url":"https://github.com/linxlib.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openjpeg ![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/linxlib/openjpeg?style=flat-square)\ngolang wrapper for openjpeg library v2.5.0\n\n# description\nonly tested on `windows x64 (Windows 7 Windows 10)` `Mac OS X 13` `centos 7` `ubuntu 22.04`. you should test it yourself for other platforms.\n\n# usage\nrefer to `example` dir\n```go\nimport openjpeg \"github.com/linxlib/openjpeg\"\n```\n\n# build\n\ninstall golang \u003e 1.18 first\n\n## Windows\n\n- install [MSYS2](http://www.msys2.org/)\n- add `C:\\msys64\\mingw64\\bin` to `PATH` environment\n- open `MSYS2 MSYS` from start menu, install gcc with `pacman -S mingw-w64-x86_64-gcc`\n- `git clone https://github.com/linxlib/openjpeg`\n- `cd openjpeg\\example`\n- `go run -v .\\main.go`\n- then you get a `jp2000.jpg` in the same dir. you can change the example code to get different image file\n\n\n## Linux (Centos 7)\nThe version of openjpeg in package manager may not the latest (v2.5.0), so we need to build from source.\n\n### build and install openjpeg 2.5.0 (optional)\n- install gcc cmake ...etc\n- `wget https://github.com/uclouvain/openjpeg/archive/refs/tags/v2.5.0.zip`\n- `unzip v2.5.0.zip \u0026\u0026 cd openjpeg-2.5.0/`\n- `mkdir build \u0026\u0026 cd build`\n- `cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS:bool=on`\n- `make`\n- `make install`\n- you will find openjpeg(libopenjp2) library and  in `/usr/local/lib` `/usr/local/include` ...\n\n### run\n- `git clone https://github.com/linxlib/openjpeg`\n- `cd openjpeg\\example`\n- `go run main.go`\n- then you get a `jp2000.jpg` in the same dir. you can change the example code to get different image file\n\n\n## Mac OS X\nMay be you don't need to install openjpeg just like linux.\n\n- configure cgo compile environment by yourself\n- if you have installed ffmpeg, so openjpeg 2.5.0 already installed, just skip the next step\n- `brew install openjpeg` and make sure `opj_decompress -h` can get something like `openjp2 library v2.5.0`\n- `git clone https://github.com/linxlib/openjpeg`\n- `cd openjpeg/example`\n- `go run main.go`\n- then you get a `jp2000.jpg` in the same dir. you can change the example code to get different image file\n\n\n## TODO\n\n- [ ] cross compile (compile executable file in only one platform (may be docker))\n- [ ] add some other platforms support\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinxlib%2Fopenjpeg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinxlib%2Fopenjpeg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinxlib%2Fopenjpeg/lists"}