current location: Home > download site > Library download > Other libraries > extractor PHP library for extracting colors
extractor PHP library for extracting colors
Classify: Library download / Other libraries | Release time: 2017-12-18 | visits: 3193 |
Download: 51 |
Latest Downloads
Fantasy Aquarium
Girls Frontline
Wings of Stars
Little Flower Fairy Fairy Paradise
Restaurant Cute Story
Shanhe Travel Exploration
Love and Producer
The most powerful brain 3
Odd Dust: Damila
Young Journey to the West 2
24 HoursReading Leaderboard
- 1 This is the third part of this article. Here is the second part. A recent survey by Grayscale shows how voters perceive investment behaviors and the influence of crypto on their political outlook.
- 2 A Comprehensive Guide to ESnd Arrow Functions
- 3 JavaScript Control Structures
- 4 How to Handle iframes in Cypress
- 5 Miners Reduce Exchange Inflows, Signaling a Potential Bullish Trend for Bitcoin Recovery
- 6 DTX Exchange (DTX) Seen as a Market Disruptor
- 7 Pepe Unchained ($PEPU) Presale Raises $17M, Promises to Revolutionize Meme Coins with Layer 2 Blockchain
- 8 Pepe (PEPE) is climbing toward Dogecoin’s (DOGE) top spot, but analysts predict Rollblock (RBLK) could grow 1,000x by 2026
- 9 Robinhood Unveils New Feature Enabling European Customers to Transfer Their Crypto Assets
- 10 The Unbelievable Growth of CZ's Wealth: Behind the Prison Walls
- 11 Crypto Market Fairly Cautious, Here's Why
- 12 Why Is Flare (FLR) Price Pumping? Analyst Sights a 150% Rally
- 13 Pixelverse Introduces PixelTap Daily Combo Bonus: A Step-by-Step Guide
- 14 Factory Design Pattern in JavaScript
- 15 Explore all console features in JavaScript
Latest Tutorials
-
- Go language practical GraphQL
- 1739 2024-04-19
-
- 550W fan master learns JavaScript from scratch step by step
- 3163 2024-04-18
-
- Getting Started with MySQL (Teacher mosh)
- 1614 2024-04-07
-
- Mock.js | Axios.js | Json | Ajax--Ten days of quality class
- 2455 2024-03-29
<?php namespace League\ColorExtractor\Test; use League\ColorExtractor\Color; use League\ColorExtractor\ColorExtractor; use League\ColorExtractor\Palette; class PaletteTest extends \PHPUnit_Framework_TestCase { protected $jpegPath = './tests/assets/test.jpeg'; protected $gifPath = './tests/assets/test.gif'; protected $pngPath = './tests/assets/test.png'; protected $transparentPngPath = './tests/assets/red-transparent-50.png'; public function testJpegExtractSingleColor() { $extractor = new ColorExtractor(Palette::fromFilename($this->jpegPath)); $colors = $extractor->extract(1); $this->assertInternalType('array', $colors); $this->assertCount(1, $colors); $this->assertEquals(15985688, $colors[0]); } public function testGifExtractSingleColor() { $extractor = new ColorExtractor(Palette::fromFilename($this->gifPath)); $colors = $extractor->extract(1); $this->assertInternalType('array', $colors); $this->assertCount(1, $colors); $this->assertEquals(12022491, $colors[0]); }
13 features of this library
1. Color capture allows you to pick and detect and identify colors instantly with the camera.
2. The application is designed for graphic designers and color blinds.
3. Color name, hue, RGB and HSV representation.
(No click to capture is required) Real-time color diagnosis.
4. Set the color of the shot to a solid wallpaper.
5. Intelligent color stability.
6. Intelligent autofocus.
7. Camera flashlight, turn on/off.
8. Supports all mobile phone cameras (front and rear).
9. Instant color selection and saving.
10. Color, color name, RGB hexadecimal, RGB decimal and HSV representation.
11. Up to 1300 colors and 16 basic color categories.
12. Instantly share and export captured colors.
13. Embedded help.