diff --git a/imagecolor/services/ImageColorService.php b/imagecolor/services/ImageColorService.php index ed29dd6..384d8b5 100644 --- a/imagecolor/services/ImageColorService.php +++ b/imagecolor/services/ImageColorService.php @@ -15,7 +15,8 @@ public function saveColors($image) $imageColor = new \ColorsOfImage( $image->url ); $colors = $imageColor->getProminentColors(); */ - $image_to_read = $image->url; + $siteUrl = craft()->config->get('siteUrl'); + $image_to_read = $siteUrl . $image->url; $pal = new \GetMostCommonColors(); $pal->image = $image_to_read; @@ -79,4 +80,4 @@ public function getColors($image) } -} \ No newline at end of file +}