{"id":17871250,"url":"https://github.com/stulzq/dotnetcore-image","last_synced_at":"2025-03-21T16:31:20.839Z","repository":{"id":95704580,"uuid":"161752907","full_name":"stulzq/dotnetcore-image","owner":"stulzq","description":"Solution of .NET Core GDI+(Image) on Linux/Docker","archived":false,"fork":false,"pushed_at":"2024-04-15T20:23:59.000Z","size":77,"stargazers_count":22,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-18T03:05:48.616Z","etag":null,"topics":["aspnetcore","dotnetcore","image"],"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/stulzq.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-14T08:12:54.000Z","updated_at":"2024-08-25T22:47:14.000Z","dependencies_parsed_at":"2023-03-09T13:00:30.968Z","dependency_job_id":null,"html_url":"https://github.com/stulzq/dotnetcore-image","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/stulzq%2Fdotnetcore-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stulzq%2Fdotnetcore-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stulzq%2Fdotnetcore-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stulzq%2Fdotnetcore-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stulzq","download_url":"https://codeload.github.com/stulzq/dotnetcore-image/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244829497,"owners_count":20517311,"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":["aspnetcore","dotnetcore","image"],"created_at":"2024-10-28T10:27:45.828Z","updated_at":"2025-03-21T16:31:20.830Z","avatar_url":"https://github.com/stulzq.png","language":"C#","funding_links":[],"categories":["C\\#"],"sub_categories":[],"readme":"# dotnetcore-image\n\n\u003cimg src=\"assets/1545105916728.png\" alt=\".NET Core\" align=\"right\" height=\"80px\"   /\u003e\n\n[![Build Status](https://ci2.xcmaster.com/job/dotnetcore-image/job/master/badge/icon)](https://ci2.xcmaster.com/job/dotnetcore-image/job/master/) \n![](https://img.shields.io/docker/pulls/stulzq/dotnet.svg)\n\nSolution of .NET Core GDI+(Image) on Linux/Docker.\n\n.NET Core does not provide an Image, Bitmap, etc. class by default.Microsoft officially provides a component that provides access to GDI+ graphics functionality - `System.Drawing.Common`.This seems to be no abnormal.I believe most people use the Windows to develop applications.If we use `System.Drawing.Common`, we have no problems developing, debugging, and running on Windows.But if we deploy the program to run on Linux, this will get a GDI+ exception,  because we can no longer use GDI+ on Linux. `libgdiplus`(https://github.com/mono/libgdiplus) is  C-based implementation of the GDI+ API .We can use it to solve our problem.\n\n## Quick installation libgdiplus \n\n### 1.In the Linux system\n\n#### CentOS 7\n\n````shell\nsudo curl https://raw.githubusercontent.com/stulzq/awesome-dotnetcore-image/master/install/centos7.sh|sh\n````\n\n#### Ubuntu\n\n````shell\nsudo curl https://raw.githubusercontent.com/stulzq/awesome-dotnetcore-image/master/install/ubuntu.sh|sh\n````\n\n### 2.In Docker(Base on Linux Image)\n\nThis project builds an ASP.NET Core image to replace the official image(microsoft/dotnet).These images base on official image and install libgdiplus.\n\n#### ASP.NET Core 2.2\n\n\u003e base on microsoft/dotnet:2.2.0-aspnetcore-runtime\n\n````shell\nFROM stulzq/dotnet:2.2.0-aspnetcore-runtime-with-image\n````\n\n[Sample](src/awesome-dotnetcore-image-hello/awesome-dotnetcore-image-hello/Dockerfile)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstulzq%2Fdotnetcore-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstulzq%2Fdotnetcore-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstulzq%2Fdotnetcore-image/lists"}