{"id":18624794,"url":"https://github.com/gabrieldarezzo/colorizzar","last_synced_at":"2025-04-11T04:32:17.486Z","repository":{"id":56982814,"uuid":"97791884","full_name":"gabrieldarezzo/colorizzar","owner":"gabrieldarezzo","description":":green_book: -\u003e :blue_book: Change color of png keep alpha channel in php!","archived":false,"fork":false,"pushed_at":"2019-06-11T21:05:20.000Z","size":125,"stargazers_count":27,"open_issues_count":3,"forks_count":6,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-25T09:12:24.594Z","etag":null,"topics":["change-color","color","composer","ext-gd","hexadecimal","image-processing","imagem","php","php-gd","tdd","travis-ci"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/gabrieldarezzo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-20T04:54:27.000Z","updated_at":"2025-02-22T11:19:37.000Z","dependencies_parsed_at":"2022-08-21T12:20:17.143Z","dependency_job_id":null,"html_url":"https://github.com/gabrieldarezzo/colorizzar","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrieldarezzo%2Fcolorizzar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrieldarezzo%2Fcolorizzar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrieldarezzo%2Fcolorizzar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrieldarezzo%2Fcolorizzar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gabrieldarezzo","download_url":"https://codeload.github.com/gabrieldarezzo/colorizzar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248345159,"owners_count":21088231,"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":["change-color","color","composer","ext-gd","hexadecimal","image-processing","imagem","php","php-gd","tdd","travis-ci"],"created_at":"2024-11-07T04:31:05.755Z","updated_at":"2025-04-11T04:32:16.793Z","avatar_url":"https://github.com/gabrieldarezzo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/gabrieldarezzo/colorizzar.svg?branch=master)](https://travis-ci.org/gabrieldarezzo/colorizzar/)\n[![Version](https://img.shields.io/packagist/v/gabrieldarezzo/colorizzar.svg)](https://packagist.org/packages/gabrieldarezzo/colorizzar)\n[![Total Downloads](https://img.shields.io/packagist/dt/gabrieldarezzo/colorizzar.svg)](https://packagist.org/packages/gabrieldarezzo/colorizzar)  \n\n# Colorizzar \n\n\nChange color of an image without lose alpha channel (alpha layer)  \nAltere a cor da sua imagem sem perder a camada alpha (camada de transparência)\n\n\nYou can change the color of this [car](https://github.com/gabrieldarezzo/colorizzar/blob/master/car.png?raw=true) (Or any imagem you want), example:\n\n\nChange color from [red](https://www.webpagefx.com/web-design/random-color-picker/#FF1F28) color pick by Hexadecimal to [blue](https://www.webpagefx.com/web-design/random-color-picker/#1F75FE):  \n\n\n\n```php\n\u003c?php\nrequire_once 'vendor/autoload.php';\n\nuse Colorizzar\\ChangeColor;\n\n$changeColor = new ChangeColor('red_car.png');\n\n//From Red Hexadecimal\n$changeColor-\u003esetFromHex('#FF1F28');\n\n// Will create 'blue.png' in new_cars/ folder\n$changeColor-\u003ecolorizeByNameColor('Blue', 'new_cars/');\n\n```\n\nOr create by specific color name, example from red to blue:  \n\n```php\n\u003c?php\n\nrequire_once 'vendor/autoload.php';\n\nuse Colorizzar\\ChangeColor;\n\n$changeColor = new ChangeColor('red_car.png');\n\n//From Red Hexadecimal\n$changeColor-\u003esetFromHex('#FF1F28');\n$changeColor-\u003esetToHex('#1F75FE');\n\n// Will create 'blue.png' in new_cars/ folder\n$changeColor-\u003ecolorizeKeepAplhaChannnel('new_cars/blue.png');\n\n```   \n \n \nResult of   `colorizeKeepAplhaChannnel()`/`colorizeByNameColor()` :\n\n![Scheme](doc/to_from_rgb.png)  \n\n-----------\n\n\nCreate all `135` COLORS with `colorizeToAllColors()` !\n\nExample of code:\n```php\n\u003c?php\n....\n\n$changeColor = new ChangeColor('red_car.png');\n$changeColor-\u003esetFromHex('#FF1F28');\n$changeColor-\u003ecolorizeToAllColors('cars/');\n```  \n\n![Scheme](doc/to_from.png)  \n\n\n\n\n\n### TODO-LIST:\n  - FIX (ChangeColorTests.php:testColorizeLoopColors())  \n  - FIX require_once() on tests, (Maybe a custom vendor.php for tests)    \n  - Create a plugin in JS consume colorizzar and show in realtime result    \n  - Improve tests (check in image created has new rgb expected)  \n  - (almost done -\u003e `ColorizzarWebService.php`) Create a WebService recive a file and manipulate methods to create dynamic  \n  - (done) IMPROVE TODOLIST and update readme with new methods (hexadecimal)  \n  - (done) Add DockBlock in all methods  \n  - (done) Improve ChangeColor.php SOLID  \n  - testExtensionIsFilePng()\n\n\n\n\n\n\n#### ColorizzarWebService.php will be:   \n  - Hash create by upload image  \n  - create a folder with same name of hash  \n  - result a JSON with all urls created    \n\n\nJS-Plugin will consume ColorizzarWebService.php and show final result to user like a magic!   \n\n\n### Helpfull links\n  - Don't know RGB color of your HEX?!  -\u003e https://www.webpagefx.com/web-design/hex-to-rgb/\n\n\n## How Contribute  \nRead:  \nhttps://github.com/gabrieldarezzo/colorizzar/blob/master/CONTRIBUTING.md  \n\n\n\n\n### Thanks to:\n\n * [@augustohp](https://github.com/augustohp) for code-review and 'JSON to Class' script on commit [@236b6f3734981d9e7f3758b5b5d8e709687675c3](https://github.com/gabrieldarezzo/colorizzar/pull/1/commits/236b6f3734981d9e7f3758b5b5d8e709687675c3)\n * https://stackoverflow.com/users/433392/steap\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrieldarezzo%2Fcolorizzar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabrieldarezzo%2Fcolorizzar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrieldarezzo%2Fcolorizzar/lists"}