{"id":23333810,"url":"https://github.com/thientu995/t4image_example","last_synced_at":"2025-04-07T12:13:24.364Z","repository":{"id":106004094,"uuid":"243454207","full_name":"thientu995/T4Image_Example","owner":"thientu995","description":"T4 Image: Compress, Resize, Create QR Code, Barcode,...","archived":false,"fork":false,"pushed_at":"2023-05-31T18:55:24.000Z","size":11707,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T21:06:11.411Z","etag":null,"topics":["fileextension","iinput","imagefile","ioutput","optimizer","priority","quality","readimg","storage"],"latest_commit_sha":null,"homepage":"https://www.nuget.org/packages/T4Image/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thientu995.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-02-27T07:07:26.000Z","updated_at":"2022-08-04T06:30:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"f08f8cb0-eceb-4c00-9f8b-85e86b9ae26d","html_url":"https://github.com/thientu995/T4Image_Example","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/thientu995%2FT4Image_Example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thientu995%2FT4Image_Example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thientu995%2FT4Image_Example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thientu995%2FT4Image_Example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thientu995","download_url":"https://codeload.github.com/thientu995/T4Image_Example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648976,"owners_count":20972945,"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":["fileextension","iinput","imagefile","ioutput","optimizer","priority","quality","readimg","storage"],"created_at":"2024-12-21T00:32:24.673Z","updated_at":"2025-04-07T12:13:24.338Z","avatar_url":"https://github.com/thientu995.png","language":"C#","readme":"[![Video demo](https://img.youtube.com/vi/QHQsBKkcvoE/0.jpg)](https://www.youtube.com/watch?v=QHQsBKkcvoE \"Video demo\")\n\nT4 Image: Compress, Resize, Create QR Code, Barcode,...\n\nT4 Image is library compress images on the .net platform. Has been added 2 function NEW: BarCode and QRCode\n\nT4 Image use core SkiaSharp.\n- Upgrade image compression algorithm compared to older versions. For more optimal compression results.\n- Support image compression with the quality selected in the range (from-to), instead of fixing a value like the old version.\n- Support compression level (Quality, Balance and Storage):\n   + Quality: High file size, quality and speed\n   + Balance: Normal file size, quality and speed\n   + Storage: Low file size, quality and speed\n\n### T4Image.QRCode: T4Image.QRCode qrcode = new T4Image.QRCode(TextInput, EECLevel);\nT4Image.IInput readImg = qrcode.Export();\n\n### T4Image.BarCode: T4Image.BarCode barcode = new T4Image.BarCode(BarcodeStandard.TYPE, TextInput, Show/HideLabel);\nT4Image.IInput readImg = barcode.Export();\n\n### T4Image.IInput: T4Image.IInput readImg = new T4Image.Input(fileImage)\n- Input image with: Url, Uri, File, String Base64, Bytes.\n- Details: \n   + Url: readImg.Url()\n   + Uri format data:[media type][;base64],data (EX: data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA): readImg.Url()\n   + File: readImg.File()\n   + String Base64: readImg.Base64()\n   + Bytes: readImg.Bytes(byte[] bytesInput)\n   + FromImage: readImg.FromImage(Image img)\n   + ImageFile: Type Image after read\n   + StreamFile: Type Stream after read\n   + FileName: File name after read\n   + FileExtension: File extension after read (default png)\n\n### T4Image.IOutput (Option): T4Image.IOutput writeImg = new T4Image.Output(T4Image.Output.LevelOptimal.Storage, (100), \"/_t4\", \"\", \"\")\n- Output image with: Quality, Level Optimal, FolderExport, FileName, FileExtension\n- Details:\n   + Level Optimal: Priority level optimal (Quality, Balance, Storage).\n   + Quality: (int, int) =\u003e (From, To). Default (25, 80).\n   + FolderExport: Default (string.Empty) get folder import.\n   + FileName: Rename file export. Default (string.Empty) is get default \n   + FileExtension: Change extension. Default (string.Empty) is get default\n\n### T4Image.IResize (Option): new T4Image.Resize(readImg.ImageFile, 800, 900, T4Image.Resize.Priority.Auto);\n- Resize image with: Image, Width, Height, Priority\n- Details:\n   + Image: Type Image from T4Image.IInput\n   + Width: Resize Width\n   + Height: Resize Height\n   + Priority:\n      ++ None: Not priority, set width, height width resize.\n      ++ Auto: Auto Width or Height priority (size image width \u003e height =\u003e Width, else Height)\n      ++ Width: Lock Width, change Height\n      ++ Height: Lock Height, change Width\n\n### T4Image.Optimizer: T4Image.Optimizer op = new T4Image.Optimizer(readImg, writeImg, resizeImg)\n- Process compress image with ExportMemoryStream, ExportFile or ExportImage\n- Details:\n   + IInput: T4Image.IInput\n   + IOutput: T4Image.IOutput\n   + IResize (Option): T4Image.IResize\n   + ExportStream: Export result type Stream\n   + ExportImage: Export result type Image\n   + ExportFile: Export result file with folder from T4Image.IOutput\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthientu995%2Ft4image_example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthientu995%2Ft4image_example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthientu995%2Ft4image_example/lists"}