Skip to content

Instantly share code, notes, and snippets.

@e2kaneko
Created October 1, 2012 09:09
Show Gist options
  • Save e2kaneko/3810477 to your computer and use it in GitHub Desktop.
Save e2kaneko/3810477 to your computer and use it in GitHub Desktop.
PHP - 画像からカラーコード取得
<?php
require_once "lib/ImageFileProperty.php";
$imageUrl = "http://example.com/file_path_here.jpg";
$ex = new ImageFileProperty();
$ex->image = $imageUrl;
$colors = $ex->getColor();
print_r($colors);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment