Last active
November 12, 2025 16:38
-
-
Save hayesr/9f2fad55b529937ecf857dbd9dbb6a39 to your computer and use it in GitHub Desktop.
Revisions
-
hayesr revised this gist
Jul 15, 2017 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,7 @@ # Get colors from a photo using ImageMagick ## Command Using image: https://unsplash.com/new?photo=5RydGpXvpxE by [Thomas Bühler](http://unsplash.com/@thoemi?utm_medium=referral&utm_campaign=photographer-credit&utm_content=creditBadge) ```shell convert thomas-buhler-301493.jpg -colors 16 -depth 8 -format '%c' histogram:info:- \ -
hayesr revised this gist
Jul 15, 2017 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,8 @@ Original Image: https://unsplash.com/new?photo=5RydGpXvpxE by [Thomas Bühler](h ```shell convert thomas-buhler-301493.jpg -colors 16 -depth 8 -format '%c' histogram:info:- \ | sort --reverse --numeric-sort ``` ## Output -
hayesr revised this gist
Jul 15, 2017 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,6 @@ # Get colors from a photo using ImageMagick Original Image: https://unsplash.com/new?photo=5RydGpXvpxE by [Thomas Bühler](http://unsplash.com/@thoemi?utm_medium=referral&utm_campaign=photographer-credit&utm_content=creditBadge) ```shell convert thomas-buhler-301493.jpg -colors 16 -depth 8 -format '%c' histogram:info:- | sort --reverse --numeric-sort -
hayesr created this gist
Jul 15, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,28 @@ # Get colors from a photo using ImageMagick Original Image: https://unsplash.com/new?photo=5RydGpXvpxE <a style="background-color:black;color:white;text-decoration:none;padding:4px 6px;font-family:-apple-system, BlinkMacSystemFont, "San Francisco", "Helvetica Neue", Helvetica, Ubuntu, Roboto, Noto, "Segoe UI", Arial, sans-serif;font-size:12px;font-weight:bold;line-height:1.2;display:inline-block;border-radius:3px;" href="http://unsplash.com/@thoemi?utm_medium=referral&utm_campaign=photographer-credit&utm_content=creditBadge" target="_blank" rel="noopener noreferrer" title="Download free do whatever you want high-resolution photos from Thomas Bühler"><span style="display:inline-block;padding:2px 3px;"><svg xmlns="http://www.w3.org/2000/svg" style="height:12px;width:auto;position:relative;vertical-align:middle;top:-1px;fill:white;" viewBox="0 0 32 32"><title></title><path d="M20.8 18.1c0 2.7-2.2 4.8-4.8 4.8s-4.8-2.1-4.8-4.8c0-2.7 2.2-4.8 4.8-4.8 2.7.1 4.8 2.2 4.8 4.8zm11.2-7.4v14.9c0 2.3-1.9 4.3-4.3 4.3h-23.4c-2.4 0-4.3-1.9-4.3-4.3v-15c0-2.3 1.9-4.3 4.3-4.3h3.7l.8-2.3c.4-1.1 1.7-2 2.9-2h8.6c1.2 0 2.5.9 2.9 2l.8 2.4h3.7c2.4 0 4.3 1.9 4.3 4.3zm-8.6 7.5c0-4.1-3.3-7.5-7.5-7.5-4.1 0-7.5 3.4-7.5 7.5s3.3 7.5 7.5 7.5c4.2-.1 7.5-3.4 7.5-7.5z"></path></svg></span><span style="display:inline-block;padding:2px 3px;">Thomas Bühler</span></a> ```shell convert thomas-buhler-301493.jpg -colors 16 -depth 8 -format '%c' histogram:info:- | sort --reverse --numeric-sort ``` ## Output ``` 2580689: (174,175,188) #AEAFBC srgb(174,175,188) 2552855: (156,172,195) #9CACC3 srgb(156,172,195) 2532178: (181,193,206) #B5C1CE srgb(181,193,206) 2498111: ( 2, 22, 54) #021636 srgb(2,22,54) 2103417: (171,183,198) #ABB7C6 srgb(171,183,198) 1152417: (149,149,175) #9595AF srgb(149,149,175) 944167: ( 94,112,153) #5E7099 srgb(94,112,153) 929520: (120,133,171) #7885AB srgb(120,133,171) 864409: (211,198,200) #D3C6C8 srgb(211,198,200) 816953: (210,179,180) #D2B3B4 srgb(210,179,180) 740881: ( 49, 86,139) #31568B srgb(49,86,139) 545659: (156,109,120) #9C6D78 srgb(156,109,120) 520687: ( 68, 74,112) #444A70 srgb(68,74,112) 458231: ( 24, 46, 90) #182E5A srgb(24,46,90) 429733: ( 31, 34, 60) #1F223C srgb(31,34,60) 291949: (120,146,195) #7892C3 srgb(120,146,195) ```