Advertisement
Reptor7

RGBcount 20200529

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