All Projects → gabrieldarezzo → colorizzar

gabrieldarezzo / colorizzar

Licence: other
📗 -> 📘 Change color of png keep alpha channel in php!

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to colorizzar

Dockerspec
A small Ruby Gem to run RSpec and Serverspec, Infrataster and Capybara tests against Dockerfiles or Docker images easily.
Stars: ✭ 181 (+570.37%)
Mutual labels:  tdd, travis-ci
Kitchen In Travis
Chef cookbook example to run test-kitchen inside Travis CI.
Stars: ✭ 36 (+33.33%)
Mutual labels:  tdd, travis-ci
Clean Ts Api
API em NodeJs usando Typescript, TDD, Clean Architecture, Design Patterns e SOLID principles
Stars: ✭ 619 (+2192.59%)
Mutual labels:  tdd, travis-ci
przm
🎨 A simple, yet feature rich color picker and manipulator
Stars: ✭ 19 (-29.63%)
Mutual labels:  color, hexadecimal
eye drops
Configurable Elixir mix task to watch file changes and run the corresponding command.
Stars: ✭ 51 (+88.89%)
Mutual labels:  tdd
goss
Quick and Easy server testing/validation
Stars: ✭ 26 (-3.7%)
Mutual labels:  tdd
quickpalette
🏃‍♀️🎨 R package for quick extraction of color palettes from text and images
Stars: ✭ 24 (-11.11%)
Mutual labels:  color
dlang-bot
dlang-bot for automated bugzilla, github, and trello references
Stars: ✭ 20 (-25.93%)
Mutual labels:  travis-ci
color
C++ library thats implemets class color. Available models: RGB, HSL, HSV, CMY, CMYK, YIQ, YUV and growing.
Stars: ✭ 142 (+425.93%)
Mutual labels:  color
TelegramBot-Go
Telegram bot which search information in Wikipedia and written on Go language
Stars: ✭ 35 (+29.63%)
Mutual labels:  travis-ci
Chalk
✏️Expressive styling on terminal string. (chalk for swift)
Stars: ✭ 59 (+118.52%)
Mutual labels:  color
mugshot
Framework independent visual testing library
Stars: ✭ 126 (+366.67%)
Mutual labels:  tdd
strip-ansi-stream
Strip ANSI escape codes
Stars: ✭ 32 (+18.52%)
Mutual labels:  color
ColorByNumber-iOS
Color by Number: a pixel coloring game on iOS.
Stars: ✭ 50 (+85.19%)
Mutual labels:  color
colr pickr
Colr Pickr, a vanilla JavaScript color picker component built with SVGs, with features like saving colors. Similar design to the chrome-dev-tools color picker.
Stars: ✭ 27 (+0%)
Mutual labels:  color
nxColor
Haxe color manipulation library.
Stars: ✭ 38 (+40.74%)
Mutual labels:  color
rebass
⚛️ React primitive UI components built with styled-system.
Stars: ✭ 7,844 (+28951.85%)
Mutual labels:  color
doctest
The fastest feature-rich C++11/14/17/20 single-header testing framework
Stars: ✭ 4,434 (+16322.22%)
Mutual labels:  tdd
sprout
Golang logging library supporting log retrieval.
Stars: ✭ 85 (+214.81%)
Mutual labels:  color
SwiftColorWheel
Delightful color picker wheel for iOS in Swift.
Stars: ✭ 37 (+37.04%)
Mutual labels:  color

Build Status Version Total Downloads

Colorizzar

Change color of an image without lose alpha channel (alpha layer)
Altere a cor da sua imagem sem perder a camada alpha (camada de transparência)

You can change the color of this car (Or any imagem you want), example:

Change color from red color pick by Hexadecimal to blue:

<?php
require_once 'vendor/autoload.php';

use Colorizzar\ChangeColor;

$changeColor = new ChangeColor('red_car.png');

//From Red Hexadecimal
$changeColor->setFromHex('#FF1F28');

// Will create 'blue.png' in new_cars/ folder
$changeColor->colorizeByNameColor('Blue', 'new_cars/');

Or create by specific color name, example from red to blue:

<?php

require_once 'vendor/autoload.php';

use Colorizzar\ChangeColor;

$changeColor = new ChangeColor('red_car.png');

//From Red Hexadecimal
$changeColor->setFromHex('#FF1F28');
$changeColor->setToHex('#1F75FE');

// Will create 'blue.png' in new_cars/ folder
$changeColor->colorizeKeepAplhaChannnel('new_cars/blue.png');

Result of colorizeKeepAplhaChannnel()/colorizeByNameColor() :

Scheme


Create all 135 COLORS with colorizeToAllColors() !

Example of code:

<?php
....

$changeColor = new ChangeColor('red_car.png');
$changeColor->setFromHex('#FF1F28');
$changeColor->colorizeToAllColors('cars/');

Scheme

TODO-LIST:

  • FIX (ChangeColorTests.php:testColorizeLoopColors())
  • FIX require_once() on tests, (Maybe a custom vendor.php for tests)
  • Create a plugin in JS consume colorizzar and show in realtime result
  • Improve tests (check in image created has new rgb expected)
  • (almost done -> ColorizzarWebService.php) Create a WebService recive a file and manipulate methods to create dynamic
  • (done) IMPROVE TODOLIST and update readme with new methods (hexadecimal)
  • (done) Add DockBlock in all methods
  • (done) Improve ChangeColor.php SOLID
  • testExtensionIsFilePng()

ColorizzarWebService.php will be:

  • Hash create by upload image
  • create a folder with same name of hash
  • result a JSON with all urls created

JS-Plugin will consume ColorizzarWebService.php and show final result to user like a magic!

Helpfull links

How Contribute

Read:
https://github.com/gabrieldarezzo/colorizzar/blob/master/CONTRIBUTING.md

Thanks to:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].