Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- Revised HTML best viewed in Mozilla Firefox 76.0.1 or higher! -->
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <title>RGBcount | Logfile 20200529</title>
- <style type="text/css">
- body { background-color:#121212; color:#DADADA; width:50%; margin:0px auto; }
- div { background-color:#202020; border:1px solid #2f2f2f; padding:8px;
- font-family:arial,helvetica,sans-serif; }
- h2,h3 { color:#ff2020; }
- </style>
- </head>
- <body>
- <div>
- <h2>Advanced RGB Color Count</h2>
- <h3>by Emilian Alexander Kowalewski</h3>
- <p>Photoshop and GIMP let you count the total number of unique colors in any image.<br>
- That's an easy function to code for an advanced user and programmer like myself.<br>
- See the line "RGB Color Count" below for which I added "RGB Color Density" in %!
- </p>
- <p>But for years I am missing a set of specialized functions that do 3 more things:</br>
- <ul><li>counts the appearance of each unique RGB color in any given image</li>
- <li>sorts the count of 256 unique colors in descending order (TOP to low)</li>
- <li>identifies common and known RGB color values from websites, apps, etc.</li></ul>
- </p>
- <p>It is also a smart way to extract all existing RGB values from any image<br>
- and re-use the favorite ones for custom color palettes and HTML / CSS themes!
- </p>
- <p>So, said and done, I proudly present a demo/example of my command-line tool<br>
- named "RGBcount.exe" that does all those desired things for me! See logfile.
- </p>
- <p>I took a screenshot of the Pastebin website while being logged in and then<br>
- resaved it as a RAW image in GIMP's headerless .data file format (R, G, B).<br>
- And finally I executed my tool to scan the file and dump results as text :)
- </p>
- <p>P.S. The tool is not completely finished yet. It requires some tweaking<br>
- and more RGB color values to be identified, especially when the image<br>
- is a photo taken with a smartphone or camera, with millions of colors...</p>
- <hr>
- <pre>
- > Logfile generated by RGBcount [DA2K] 2020-05-29
- > RGB Image File: pastebin-screenshot-1348x766.data
- > RGB Color Count: 4632 Unique Colors (1032568 Pixels)
- > RGB Color Density: 0.45% [(100%/Pixels)*Colors]
- > RGB Color Palette: (TOP)
- [1] FFFFFF = 701842 (White)
- [2] F7F7F7 = 151836 (White Smoke F7) {Pastebin.Frame.BG}
- [3] 69A6FD = 45997 (Cornflower Blue) {Pastebin.Banner.Ads}
- [4] DDDDDD = 6512 (Gainsboro Gray DD) {Pastebin.Borderline.1px}
- [5] E3E3E3 = 5334 (Gainsboro Gray E3) {Pastebin.FrameButton.BG}
- [6] 023859 = 4038
- [7] 02446B = 4038
- [8] 02395B = 3999
- [9] 024369 = 3977
- [10] 023A5C = 3967
- [11] 024268 = 3748
- [12] 023B5E = 2423
- [13] 024166 = 2356
- [14] 023C5F = 2315
- [15] 024065 = 2228
- [16] 023D60 = 2182
- [17] 023D61 = 2145
- [18] 023F63 = 2129 (Prussian Blue) {Pastebin.Banner.Top}
- [19] 023E62 = 2120
- [20] 023F64 = 2119
- [21] 61BA65 = 1763 (Fern Green) {Pastebin.PasteButton.BG}
- [22] 02395A = 1350
- [23] 02385A = 1346
- [24] 02436A = 1346
- [25] 02446A = 1346
- [26] FFFFC5 = 1298
- [27] 024267 = 1223
- [28] 023A5D = 1221
- [29] 023B5D = 1214
- [30] 024167 = 1209
- [31] FFFFDF = 1177
- [32] 024066 = 1167
- [33] 023C5E = 1162
- [34] 024064 = 1114
- [35] FF9577 = 1093
- [36] 023C60 = 1087
- [37] 023E63 = 1042
- [38] 023E61 = 1040
- [39] C8EFFF = 1032
- [40] E2DFFF = 992
- [41] 3DF14C = 922
- [42] DA0059 = 888 (Razzmatazz / Magenta Red) {Pastebin.PasteTitle.Link}
- [43] 69A6FC = 885
- [44] FFEF08 = 822
- [45] 3B5998 = 798
- [46] B899A8 = 765
- [47] 55ACEE = 760
- [48] 8CBAFD = 754
- [49] 69A5FB = 740
- [50] CE7EC7 = 731
- [51] DEDEDE = 672
- [52] 999999 = 640 (Nobel Grey 99)
- [53] D6D6D6 = 635 (Light Grey D6) {Pastebin.FrameButton.Shadow}
- [54] CC0033 = 630 (Crimson Red)
- [55] 9B9B9B = 600 (Nobel Grey 9B)
- [56] 333333 = 459 (Night Rider 33 / Dark Gray) {Pastebin.PasteTitle.Big}
- [57] FF6363 = 404
- [58] DFFFFF = 396
- [59] 68A5FA = 384
- [60] 000000 = 356 (Black)
- [61] FFEFC8 = 349
- [62] 67A3F8 = 347
- [63] 67A3F7 = 344
- [64] FF8F00 = 324
- [65] 66A1F5 = 313
- [66] FFDFA5 = 311
- [67] 3EEF4B = 310
- [68] 40F14F = 296
- [69] E1E1E1 = 293
- [70] FFFFB7 = 288
- [71] D7D7D7 = 287
- [72] DFDFDF = 281
- [73] 3FE649 = 277
- [74] FFFFE5 = 275
- [75] 3DEE4A = 274
- [76] E3E3B4 = 270
- [77] C5FFFF = 266
- [78] FFDF8F = 259
- [79] 370000 = 245
- [80] 5FB7FF = 226
- [81] B8DFFF = 225
- [82] E0E0E0 = 223
- [83] FEFEFE = 221
- [84] EDFFFF = 220
- [85] 9ACEE3 = 211
- [86] B7FFFF = 211
- [87] FFDFB8 = 209
- [88] 37C8DF = 198
- [89] CCCCCC = 196 (Light Grey CC) {GIMP}
- [90] ACACAC = 196 (Gray AC)
- [91] EFFFFF = 193
- [92] 65A0F3 = 192
- [93] FFFFEF = 191
- [94] 7B3D61 = 189
- [95] CC5FC5 = 188
- [96] DBDBDB = 183 (Gainsboro Gray DB)
- [97] 808080 = 182 (Medium Grey)
- [98] CECECE = 180 (Very Light Grey CE)
- [99] FFB779 = 180
- [100] 793379 = 177
- [101] D28FE5 = 174
- [102] DAB7FF = 173
- [103] DA0033 = 169
- [104] C3DDF7 = 169
- [105] 649EF1 = 168
- [106] 639CEE = 165
- [107] 3DF04B = 162
- [108] DADADA = 161 (Gainsboro Gray DA)
- [109] A3A3A3 = 158 (Gray A3)
- [110] 9BC4FD = 158
- [111] B7B800 = 157 (La Rioja B7B8) {#CCCC}
- [112] FFB75F = 157
- [113] 88B8FD = 155
- [114] FFFFCF = 154
- [115] 8FDFFF = 154
- [116] 9999A8 = 153
- [117] E2E2E2 = 150 (Gainsboro Gray E2)
- [118] 40E54B = 150
- [119] F7F7EB = 148
- [120] 6BA7FD = 147
- [121] 43F04F = 146
- [122] 50EB59 = 144
- [123] EDEDED = 143 (Whisper White ED)
- [124] FAFCFE = 143
- [125] C8A899 = 143
- [126] 80B3FD = 143
- [127] 5F97E5 = 143
- [128] 48EE52 = 142
- [129] 6EA9FD = 141
- [130] 45EF50 = 141
- [131] 5F0000 = 140 (Maroon / Dark Red 5F)
- [132] B899B8 = 139
- [133] DFB899 = 138
- [134] B89999 = 138
- [135] 3DEB4A = 138
- [136] 378FDF = 138
- [137] CDCDCD = 137 (Very Light Grey CD)
- [138] 4AEE55 = 137
- [139] 3CE949 = 137
- [140] 4DED57 = 135
- [141] 6198E8 = 134
- [142] CFB5AC = 134
- [143] D4D4D4 = 132 (Light Grey D4)
- [144] 99A8C8 = 132
- [145] D1D1D1 = 130 (Light Grey D1)
- [146] 000037 = 129
- [147] D3D3D3 = 126 (Light Grey D3)
- [148] D20033 = 126
- [149] A899B8 = 123
- [150] EFC8A8 = 122
- [151] 5E95E3 = 122
- [152] B7E7FF = 120
- [153] D8D8D8 = 118 (Gainsboro Gray D8)
- [154] ABCDFD = 118
- [155] A55933 = 117
- [156] F0F6FE = 117
- [157] E5E5E5 = 116
- [158] E23733 = 116
- [159] F58F59 = 115
- [160] A6CAFD = 115
- [161] E5FFFF = 114
- [162] 79C5FF = 114
- [163] D5D5D5 = 114
- [164] A0C7FD = 113
- [165] A5E5FF = 112
- [166] B3D2FD = 110
- [167] F5FFFF = 109
- [168] 68A4F9 = 108
- [169] ECECEC = 107
- [170] FFC579 = 107
- [171] D20079 = 107
- [172] 336699 = 104
- [173] A89999 = 103
- [174] DCEAFE = 103
- [175] D8E7FE = 103
- [176] 80A7D7 = 103
- [177] 5FDFFF = 103
- [178] 95667D = 102
- [179] 3359A5 = 101
- [180] CC0079 = 101
- [181] B0D0FD = 101
- [182] FFE5A5 = 100
- [183] 7DB2FD = 100
- [184] 005FB7 = 99
- [185] CDE1FE = 98
- [186] 8F3700 = 97
- [187] 3379C5 = 96
- [188] A8C8EF = 96
- [189] 71AAFD = 96
- [190] 83B5FD = 95
- [191] 3D3D3D = 95
- [192] 8FA800 = 95
- [193] CFCFCF = 94 (Very Light Grey CF)
- [194] D7A780 = 94
- [195] C57933 = 93
- [196] EBFFFF = 93
- [197] 7AB0FD = 93
- [198] FFD7A7 = 92
- [199] F8F8F8 = 91 (White Smoke F8) {eBay.BG}
- [200] 99B8DF = 91
- [201] 77AEFD = 89
- [202] E2EDFE = 89
- [203] CC37A5 = 86
- [204] A5A5A5 = 85 (Gray A5)
- [205] A6A6A6 = 84 (Gray A6)
- [206] A2A2A2 = 84 (Nobel Grey A2)
- [207] A0A0A0 = 84 (Nobel Grey A0)
- [208] 9F9F9F = 84 (Nobel Grey 9F)
- [209] 9D9D9D = 84 (Nobel Grey 9D)
- [210] FF0000 = 84 (Red)
- [211] B9D6FE = 83
- [212] 96C0FD = 83
- [213] E5A559 = 82
- [214] 59A5E5 = 81
- [215] 92BEFD = 81
- [216] DCDCDC = 80 (Gainsboro Gray DC)
- [217] FCFDFE = 79
- [218] FFEBBB = 79
- [219] EBBB93 = 79
- [220] 3A6985 = 78
- [221] ED5F33 = 78
- [222] D9D9D9 = 76 (Gainsboro Gray D9)
- [223] 333379 = 76
- [224] FEFFFF = 76 (Azure White)
- [225] F7DDC3 = 76
- [226] E6E6E6 = 75
- [227] 00B8B7 = 74
- [228] DFC837 = 74
- [229] 969696 = 73 (Nobel Grey 96)
- [230] D0D0D0 = 73 (Light Grey D0)
- [231] D2D2D2 = 73 (Light Grey D2)
- [232] 72ABFD = 73
- [233] 9999B8 = 72
- [234] F7FAFE = 72
- [235] 93BBEB = 72
- [236] FDFDFD = 71
- [237] E6F0FE = 71
- [238] 793333 = 70
- [239] A7D7FF = 70
- [240] 5F9900 = 70 (Christi Green) {#6699}
- [241] C5DCFE = 69
- [242] A8A8C8 = 68
- [243] E3CE9A = 68
- [244] 666666 = 67 (Dim Gray)
- [245] EBF3FE = 67
- [246] BBEBFF = 66
- [247] 00995F = 66
- [248] E9E9E9 = 65 (Whisper White E9)
- [249] 8FBCFD = 64
- [250] 43EA4E = 64
- [251] FFFFEB = 63
- [252] FF8E00 = 62
- [253] A899A8 = 61
- [254] 7AF584 = 61
- [255] EEEEEE = 60 (Whisper White EE)
- [256] F2F2F2 = 60 (White Smoke F2)
- > End of Logfile.
- </pre>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement