{"_id":"@somesoap/react-native-image-palette","_rev":"9-3e4d6e77a2c1e352c167e8524b1e7f94","name":"@somesoap/react-native-image-palette","dist-tags":{"latest":"1.2.2"},"versions":{"1.0.0":{"name":"@somesoap/react-native-image-palette","version":"1.0.0","keywords":["react-native","ios","android"],"author":{"url":"https://github.com/someSOAP","name":"someSOAP","email":"andrey.meg@gmail.com"},"license":"MIT","_id":"@somesoap/react-native-image-palette@1.0.0","maintainers":[{"name":"somesoap","email":"andrey.meg@gmail.com"}],"homepage":"https://github.com/someSOAP/react-native-image-palette#readme","bugs":{"url":"https://github.com/someSOAP/react-native-image-palette/issues"},"dist":{"shasum":"8bfe2dfcbe42d1322b9e1b95d4abce1c68cbe52b","tarball":"https://registry.npmjs.org/@somesoap/react-native-image-palette/-/react-native-image-palette-1.0.0.tgz","fileCount":56,"integrity":"sha512-hm69I1adujtwR0klz8tAUfijM/dfIVdlcAMK8LyAvL25XgD6ySWxt/JN5yPtrHbCe58g7Rjn3mPFpgHNIjZUIg==","signatures":[{"sig":"MEUCIB6CngB1AsvyHPJGMbu/Fx7tEiAEHcGF97OihkviSRmHAiEAhnHsw322k6QxqrSZaLSf74ZY8fxemDSfIGl+5gczgDQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":111991},"jest":{"preset":"react-native","modulePathIgnorePatterns":["<rootDir>/example/node_modules","<rootDir>/lib/"]},"main":"lib/commonjs/index","types":"lib/typescript/src/index.d.ts","module":"lib/module/index","source":"src/index","gitHead":"60ff09a2190058523c122e3afe1107fd37b61d88","scripts":{"lint":"eslint \"**/*.{js,ts,tsx}\"","test":"jest","clean":"del-cli android/build example/android/build example/android/app/build example/ios/build lib","example":"yarn workspace react-native-image-palette-example","prepare":"bob build","release":"release-it","typecheck":"tsc --noEmit","open:xcode":"xed example/ios","example:start":"yarn example start","example:pod-install":"cd example/ios && pod install","open:android-studio":"open -a \"Android Studio\" example/android"},"_npmUser":{"name":"somesoap","email":"andrey.meg@gmail.com"},"prettier":{"useTabs":false,"tabWidth":2,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"},"commitlint":{"extends":["@commitlint/config-conventional"]},"release-it":{"git":{"tagName":"v${version}","commitMessage":"chore: release ${version}"},"npm":{"publish":true},"github":{"release":true},"plugins":{"@release-it/conventional-changelog":{"preset":"angular"}}},"repository":{"url":"git+https://github.com/someSOAP/react-native-image-palette.git","type":"git"},"workspaces":["example"],"_npmVersion":"10.7.0","description":"Get average color or a colors palette from an image or the image segments","directories":{},"resolutions":{"@types/react":"^18.2.44"},"_nodeVersion":"20.15.1","eslintConfig":{"root":true,"rules":{"prettier/prettier":["error",{"useTabs":false,"tabWidth":2,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"}]},"extends":["@react-native","prettier"]},"eslintIgnore":["node_modules/","lib/"],"react-native":"src/index","codegenConfig":{"name":"RNImagePaletteSpec","type":"modules","jsSrcsDir":"src"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"yarn@3.6.1","devDependencies":{"jest":"^29.7.0","react":"18.3.1","turbo":"^1.10.7","eslint":"^8.51.0","del-cli":"^5.1.0","prettier":"^3.0.3","commitlint":"^17.0.2","release-it":"^15.0.0","typescript":"^5.2.2","@types/jest":"^29.5.5","@types/react":"^18.2.44","react-native":"0.75.2","@evilmartians/lefthook":"^1.5.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","react-native-builder-bob":"^0.20.0","@react-native/eslint-config":"^0.73.1","@commitlint/config-conventional":"^17.0.2","@release-it/conventional-changelog":"^5.0.0"},"peerDependencies":{"react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/react-native-image-palette_1.0.0_1726076742773_0.7048761918257396","host":"s3://npm-registry-packages"},"react-native-builder-bob":{"output":"lib","source":"src","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]}},"1.0.1":{"name":"@somesoap/react-native-image-palette","version":"1.0.1","keywords":["react-native","ios","android"],"author":{"url":"https://github.com/someSOAP","name":"someSOAP","email":"andrey.meg@gmail.com"},"license":"MIT","_id":"@somesoap/react-native-image-palette@1.0.1","maintainers":[{"name":"somesoap","email":"andrey.meg@gmail.com"}],"homepage":"https://github.com/someSOAP/react-native-image-palette#readme","bugs":{"url":"https://github.com/someSOAP/react-native-image-palette/issues"},"dist":{"shasum":"c32d2c5acec28a1a4e53850a1f2a653ff9e39bd8","tarball":"https://registry.npmjs.org/@somesoap/react-native-image-palette/-/react-native-image-palette-1.0.1.tgz","fileCount":44,"integrity":"sha512-5KR5+dH6pW3X6Y0IrSWL42n4xyiUA0LuZiHQYL1ZRwxeqk5JOAQrSJ6x+DrD7h/ZcbvsD/ZUUGHwpDEzHC1bHA==","signatures":[{"sig":"MEQCIFoVz/f7J63E+X5I9CZ1xyU8zX4P+3ekFtwgKx9N5GXhAiB5GmXcECivHehMY2Ebka9z1Ni2B8YUME8bu4k4dNOENg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":64353},"jest":{"preset":"react-native","modulePathIgnorePatterns":["<rootDir>/example/node_modules","<rootDir>/lib/"]},"main":"lib/commonjs/index","types":"lib/typescript/src/index.d.ts","module":"lib/module/index","source":"src/index","gitHead":"1dd914bf09962f16e1dfde12a93b4f7e9adcd113","scripts":{"lint":"eslint \"**/*.{js,ts,tsx}\"","test":"jest","clean":"del-cli android/build example/android/build example/android/app/build example/ios/build lib","example":"yarn workspace react-native-image-palette-example","prepare":"bob build","release":"release-it","typecheck":"tsc --noEmit","open:xcode":"xed example/ios","example:start":"yarn example start","example:pod-install":"cd example/ios && pod install","open:android-studio":"open -a \"Android Studio\" example/android"},"_npmUser":{"name":"somesoap","email":"andrey.meg@gmail.com"},"prettier":{"useTabs":false,"tabWidth":2,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"},"commitlint":{"extends":["@commitlint/config-conventional"]},"release-it":{"git":{"tagName":"v${version}","commitMessage":"chore: release ${version}"},"npm":{"publish":true},"github":{"release":true},"plugins":{"@release-it/conventional-changelog":{"preset":"angular"}}},"repository":{"url":"git+https://github.com/someSOAP/react-native-image-palette.git","type":"git"},"workspaces":["example"],"_npmVersion":"10.7.0","description":"Get average color or a colors palette from an image or the image segments","directories":{},"resolutions":{"@types/react":"^18.2.44"},"_nodeVersion":"20.15.1","eslintConfig":{"root":true,"rules":{"prettier/prettier":["error",{"useTabs":false,"tabWidth":2,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"}]},"extends":["@react-native","prettier"]},"eslintIgnore":["node_modules/","lib/"],"react-native":"src/index","codegenConfig":{"name":"RNImagePaletteSpec","type":"modules","jsSrcsDir":"src"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"yarn@3.6.1","devDependencies":{"jest":"^29.7.0","react":"18.3.1","turbo":"^1.10.7","eslint":"^8.51.0","del-cli":"^5.1.0","prettier":"^3.0.3","commitlint":"^17.0.2","release-it":"^15.0.0","typescript":"^5.2.2","@types/jest":"^29.5.5","@types/react":"^18.2.44","react-native":"0.75.2","@evilmartians/lefthook":"^1.5.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","react-native-builder-bob":"^0.20.0","@react-native/eslint-config":"^0.73.1","@commitlint/config-conventional":"^17.0.2","@release-it/conventional-changelog":"^5.0.0"},"peerDependencies":{"react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/react-native-image-palette_1.0.1_1726137056386_0.772342453041152","host":"s3://npm-registry-packages"},"react-native-builder-bob":{"output":"lib","source":"src","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]}},"1.0.2":{"name":"@somesoap/react-native-image-palette","version":"1.0.2","keywords":["react-native","ios","android"],"author":{"url":"https://github.com/someSOAP","name":"someSOAP","email":"andrey.meg@gmail.com"},"license":"MIT","_id":"@somesoap/react-native-image-palette@1.0.2","maintainers":[{"name":"somesoap","email":"andrey.meg@gmail.com"}],"homepage":"https://github.com/someSOAP/react-native-image-palette#readme","bugs":{"url":"https://github.com/someSOAP/react-native-image-palette/issues"},"dist":{"shasum":"16e4b8f230cf65a8209f701435a1ab05fbc41e8b","tarball":"https://registry.npmjs.org/@somesoap/react-native-image-palette/-/react-native-image-palette-1.0.2.tgz","fileCount":44,"integrity":"sha512-Cawp7xVDnnuo28Jg09l4V7tICkvvNDVWb311iDmiU+J8CDWLdd38mf1q7cFfcfHkm4JMl1rV5NEmYz8zUmvVqg==","signatures":[{"sig":"MEYCIQCsKHcuvFGS1zuAQUh3XRyhGgSNtJkyuj1Jaimpy5WEWQIhANyM+QPY+CaqWB/DOYXl/5rUjCCc/UTXJ1ovsqSbW8zb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":70151},"jest":{"preset":"react-native","modulePathIgnorePatterns":["<rootDir>/example/node_modules","<rootDir>/lib/"]},"main":"lib/commonjs/index","types":"lib/typescript/src/index.d.ts","module":"lib/module/index","source":"src/index","gitHead":"4de7cb9c49c781ff6b7791a4136680881180fed3","scripts":{"lint":"eslint \"**/*.{js,ts,tsx}\"","test":"jest","clean":"del-cli android/build example/android/build example/android/app/build example/ios/build lib","example":"yarn workspace react-native-image-palette-example","prepare":"bob build","release":"release-it","typecheck":"tsc --noEmit","open:xcode":"xed example/ios","example:start":"yarn example start","example:pod-install":"cd example/ios && pod install","open:android-studio":"open -a \"Android Studio\" example/android"},"_npmUser":{"name":"somesoap","email":"andrey.meg@gmail.com"},"prettier":{"useTabs":false,"tabWidth":2,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"},"commitlint":{"extends":["@commitlint/config-conventional"]},"release-it":{"git":{"tagName":"v${version}","commitMessage":"chore: release ${version}"},"npm":{"publish":true},"github":{"release":true},"plugins":{"@release-it/conventional-changelog":{"preset":"angular"}}},"repository":{"url":"git+https://github.com/someSOAP/react-native-image-palette.git","type":"git"},"workspaces":["example"],"_npmVersion":"10.7.0","description":"Get average color or a colors palette from an image or the image segments","directories":{},"resolutions":{"@types/react":"^18.2.44"},"_nodeVersion":"20.15.1","eslintConfig":{"root":true,"rules":{"prettier/prettier":["error",{"useTabs":false,"tabWidth":2,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"}]},"extends":["@react-native","prettier"]},"eslintIgnore":["node_modules/","lib/"],"react-native":"src/index","codegenConfig":{"name":"RNImagePaletteSpec","type":"modules","jsSrcsDir":"src"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"yarn@3.6.1","devDependencies":{"jest":"^29.7.0","react":"18.3.1","turbo":"^1.10.7","eslint":"^8.51.0","del-cli":"^5.1.0","prettier":"^3.0.3","commitlint":"^17.0.2","release-it":"^15.0.0","typescript":"^5.2.2","@types/jest":"^29.5.5","@types/react":"^18.2.44","react-native":"0.75.2","@evilmartians/lefthook":"^1.5.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","react-native-builder-bob":"^0.20.0","@react-native/eslint-config":"^0.73.1","@commitlint/config-conventional":"^17.0.2","@release-it/conventional-changelog":"^5.0.0"},"peerDependencies":{"react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/react-native-image-palette_1.0.2_1726166625262_0.627194350832323","host":"s3://npm-registry-packages"},"react-native-builder-bob":{"output":"lib","source":"src","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]}},"1.0.3":{"name":"@somesoap/react-native-image-palette","version":"1.0.3","keywords":["react-native","ios","android"],"author":{"url":"https://github.com/someSOAP","name":"someSOAP","email":"andrey.meg@gmail.com"},"license":"MIT","_id":"@somesoap/react-native-image-palette@1.0.3","maintainers":[{"name":"somesoap","email":"andrey.meg@gmail.com"}],"homepage":"https://github.com/someSOAP/react-native-image-palette#readme","bugs":{"url":"https://github.com/someSOAP/react-native-image-palette/issues"},"dist":{"shasum":"efe22368d981cf355a87194c810d0e61fdb267fc","tarball":"https://registry.npmjs.org/@somesoap/react-native-image-palette/-/react-native-image-palette-1.0.3.tgz","fileCount":44,"integrity":"sha512-mpFHJceoAbgRUmLXn0HGByxsm/AE7koqXZ5Kx0PVCY7Nls+Cg2k1juB1WrTKRlR5wPE4gKQYBEesoz6B0xDozA==","signatures":[{"sig":"MEUCIFoEG67gvftGFVGo1a46U9/7mT9V6NyR4gP0gJPIl2npAiEAqeWQJ1HzjdYjrR9myrK3B3a7unzZLaHy2gmBbkXCcNw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":70152},"jest":{"preset":"react-native","modulePathIgnorePatterns":["<rootDir>/example/node_modules","<rootDir>/lib/"]},"main":"lib/commonjs/index","types":"lib/typescript/src/index.d.ts","module":"lib/module/index","source":"src/index","gitHead":"8d6327bfd45ea0800212314a5cfeff133558662f","scripts":{"lint":"eslint \"**/*.{js,ts,tsx}\"","test":"jest","clean":"del-cli android/build example/android/build example/android/app/build example/ios/build lib","example":"yarn workspace react-native-image-palette-example","prepare":"bob build","release":"release-it","typecheck":"tsc --noEmit","open:xcode":"xed example/ios","example:start":"yarn example start","example:pod-install":"cd example/ios && pod install","open:android-studio":"open -a \"Android Studio\" example/android"},"_npmUser":{"name":"somesoap","email":"andrey.meg@gmail.com"},"prettier":{"useTabs":false,"tabWidth":2,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"},"commitlint":{"extends":["@commitlint/config-conventional"]},"release-it":{"git":{"tagName":"v${version}","commitMessage":"chore: release ${version}"},"npm":{"publish":true},"github":{"release":true},"plugins":{"@release-it/conventional-changelog":{"preset":"angular"}}},"repository":{"url":"git+https://github.com/someSOAP/react-native-image-palette.git","type":"git"},"workspaces":["example"],"_npmVersion":"10.7.0","description":"Get average color or a colors palette from an image or the image segments","directories":{},"resolutions":{"@types/react":"^18.2.44"},"_nodeVersion":"20.15.1","eslintConfig":{"root":true,"rules":{"prettier/prettier":["error",{"useTabs":false,"tabWidth":2,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"}]},"extends":["@react-native","prettier"]},"eslintIgnore":["node_modules/","lib/"],"react-native":"src/index","codegenConfig":{"name":"RNImagePaletteSpec","type":"modules","jsSrcsDir":"src"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"yarn@3.6.1","devDependencies":{"jest":"^29.7.0","react":"18.3.1","turbo":"^1.10.7","eslint":"^8.51.0","del-cli":"^5.1.0","prettier":"^3.0.3","commitlint":"^17.0.2","release-it":"^15.0.0","typescript":"^5.2.2","@types/jest":"^29.5.5","@types/react":"^18.2.44","react-native":"0.75.2","@evilmartians/lefthook":"^1.5.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","react-native-builder-bob":"^0.20.0","@react-native/eslint-config":"^0.73.1","@commitlint/config-conventional":"^17.0.2","@release-it/conventional-changelog":"^5.0.0"},"peerDependencies":{"react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/react-native-image-palette_1.0.3_1726207092520_0.5339960356699303","host":"s3://npm-registry-packages"},"react-native-builder-bob":{"output":"lib","source":"src","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]}},"1.0.4":{"name":"@somesoap/react-native-image-palette","version":"1.0.4","keywords":["react-native","ios","android","image","prominent","dominant","vibrant","color","avergae","mean","palette","react-native-image-palette"],"author":{"url":"https://github.com/someSOAP","name":"someSOAP","email":"andrey.meg@gmail.com"},"license":"MIT","_id":"@somesoap/react-native-image-palette@1.0.4","maintainers":[{"name":"somesoap","email":"andrey.meg@gmail.com"}],"homepage":"https://github.com/someSOAP/react-native-image-palette#readme","bugs":{"url":"https://github.com/someSOAP/react-native-image-palette/issues"},"dist":{"shasum":"bf8e14ec7ec94271b38c728c062ef91cd3fa4842","tarball":"https://registry.npmjs.org/@somesoap/react-native-image-palette/-/react-native-image-palette-1.0.4.tgz","fileCount":44,"integrity":"sha512-LRfhlnM6nN7uYSp/u6CGXcfIB/T/EaOIelatW8uhIYr9zJjVeY9plPfTH/1+vVGj5svsgisGmZuND/luoCW4HQ==","signatures":[{"sig":"MEQCIA7Cvy4rwo0zwxf2etdgNgYxdgEh8tqFcfP/6kOBAFAUAiA4APHXy6nHROsmYpBemB4lu4eylHwBCfFqU1RJbKjcIg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":70302},"jest":{"preset":"react-native","modulePathIgnorePatterns":["<rootDir>/example/node_modules","<rootDir>/lib/"]},"main":"lib/commonjs/index","types":"lib/typescript/src/index.d.ts","module":"lib/module/index","source":"src/index","gitHead":"2aa983224da88a5c4f76d49e3b604755e37424e1","scripts":{"lint":"eslint \"**/*.{js,ts,tsx}\"","test":"jest","clean":"del-cli android/build example/android/build example/android/app/build example/ios/build lib","example":"yarn workspace react-native-image-palette-example","prepare":"bob build","release":"release-it","typecheck":"tsc --noEmit","open:xcode":"xed example/ios","example:start":"yarn example start","example:pod-install":"cd example/ios && pod install","open:android-studio":"open -a \"Android Studio\" example/android"},"_npmUser":{"name":"somesoap","email":"andrey.meg@gmail.com"},"prettier":{"useTabs":false,"tabWidth":2,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"},"commitlint":{"extends":["@commitlint/config-conventional"]},"release-it":{"git":{"tagName":"v${version}","commitMessage":"chore: release ${version}"},"npm":{"publish":true},"github":{"release":true},"plugins":{"@release-it/conventional-changelog":{"preset":"angular"}}},"repository":{"url":"git+https://github.com/someSOAP/react-native-image-palette.git","type":"git"},"workspaces":["example"],"_npmVersion":"10.7.0","description":"Get average color or a colors palette from an image or the image segments","directories":{},"resolutions":{"@types/react":"^18.2.44"},"_nodeVersion":"20.15.1","eslintConfig":{"root":true,"rules":{"prettier/prettier":["error",{"useTabs":false,"tabWidth":2,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"}]},"extends":["@react-native","prettier"]},"eslintIgnore":["node_modules/","lib/"],"react-native":"src/index","codegenConfig":{"name":"RNImagePaletteSpec","type":"modules","jsSrcsDir":"src"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"yarn@3.6.1","devDependencies":{"jest":"^29.7.0","react":"18.3.1","turbo":"^1.10.7","eslint":"^8.51.0","del-cli":"^5.1.0","prettier":"^3.0.3","commitlint":"^17.0.2","release-it":"^15.0.0","typescript":"^5.2.2","@types/jest":"^29.5.5","@types/react":"^18.2.44","react-native":"0.75.2","@evilmartians/lefthook":"^1.5.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","react-native-builder-bob":"^0.20.0","@react-native/eslint-config":"^0.73.1","@commitlint/config-conventional":"^17.0.2","@release-it/conventional-changelog":"^5.0.0"},"peerDependencies":{"react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/react-native-image-palette_1.0.4_1726417458580_0.18387392640770583","host":"s3://npm-registry-packages"},"react-native-builder-bob":{"output":"lib","source":"src","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]}},"1.1.0":{"name":"@somesoap/react-native-image-palette","version":"1.1.0","keywords":["react-native","ios","android","image","prominent","dominant","vibrant","color","avergae","mean","palette","react-native-image-palette"],"author":{"url":"https://github.com/someSOAP","name":"someSOAP","email":"andrey.meg@gmail.com"},"license":"MIT","_id":"@somesoap/react-native-image-palette@1.1.0","maintainers":[{"name":"somesoap","email":"andrey.meg@gmail.com"}],"homepage":"https://github.com/someSOAP/react-native-image-palette#readme","bugs":{"url":"https://github.com/someSOAP/react-native-image-palette/issues"},"dist":{"shasum":"6511f96b56dbfe04a0b1695a3e3ace40c3c296bd","tarball":"https://registry.npmjs.org/@somesoap/react-native-image-palette/-/react-native-image-palette-1.1.0.tgz","fileCount":44,"integrity":"sha512-GyNbBdE3I+M6ZROeUh/UUoFQL/Cequn+oowdtrwfemLRnbs7Im+il/NE+F9HoonEZ8JkarNGaEPm8vaLy4rMxw==","signatures":[{"sig":"MEQCIF2IdbAtSi99MUdM/sC0Zk9no2rKoeLl8S8LP69n3Lx/AiAmx5vt1n+1QMcHg78+o1JS6TcjZ+dguqlDn92JfgAaTw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":70565},"jest":{"preset":"react-native","modulePathIgnorePatterns":["<rootDir>/example/node_modules","<rootDir>/lib/"]},"main":"lib/commonjs/index","types":"lib/typescript/src/index.d.ts","module":"lib/module/index","source":"src/index","gitHead":"c7251fbf033f340277d62e9ea340070aeceb3105","scripts":{"lint":"eslint \"**/*.{js,ts,tsx}\"","test":"jest","clean":"del-cli android/build example/android/build example/android/app/build example/ios/build lib","example":"yarn workspace react-native-image-palette-example","prepare":"bob build","release":"release-it","typecheck":"tsc --noEmit","open:xcode":"xed example/ios","example:start":"yarn example start","example:pod-install":"cd example/ios && pod install","open:android-studio":"open -a \"Android Studio\" example/android"},"_npmUser":{"name":"somesoap","email":"andrey.meg@gmail.com"},"prettier":{"useTabs":false,"tabWidth":2,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"},"commitlint":{"extends":["@commitlint/config-conventional"]},"release-it":{"git":{"tagName":"v${version}","commitMessage":"chore: release ${version}"},"npm":{"publish":true},"github":{"release":true},"plugins":{"@release-it/conventional-changelog":{"preset":"angular"}}},"repository":{"url":"git+https://github.com/someSOAP/react-native-image-palette.git","type":"git"},"workspaces":["example"],"_npmVersion":"10.9.0","description":"Get average color or a colors palette from an image or the image segments","directories":{},"resolutions":{"@types/react":"^18.2.44"},"_nodeVersion":"22.12.0","eslintConfig":{"root":true,"rules":{"prettier/prettier":["error",{"useTabs":false,"tabWidth":2,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"}]},"extends":["@react-native","prettier"]},"eslintIgnore":["node_modules/","lib/"],"react-native":"src/index","codegenConfig":{"name":"RNImagePaletteSpec","type":"modules","jsSrcsDir":"src"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"yarn@3.6.1","devDependencies":{"jest":"^29.7.0","react":"18.3.1","turbo":"^1.10.7","eslint":"^8.51.0","del-cli":"^5.1.0","prettier":"^3.0.3","commitlint":"^17.0.2","release-it":"^15.0.0","typescript":"^5.2.2","@types/jest":"^29.5.5","@types/react":"^18.2.44","react-native":"0.75.2","@evilmartians/lefthook":"^1.5.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","react-native-builder-bob":"^0.20.0","@react-native/eslint-config":"^0.73.1","@commitlint/config-conventional":"^17.0.2","@release-it/conventional-changelog":"^5.0.0"},"peerDependencies":{"react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/react-native-image-palette_1.1.0_1734626762799_0.9340891063536914","host":"s3://npm-registry-packages-npm-production"},"react-native-builder-bob":{"output":"lib","source":"src","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]}},"1.2.0":{"name":"@somesoap/react-native-image-palette","version":"1.2.0","keywords":["react-native","ios","android","image","prominent","dominant","vibrant","color","avergae","mean","palette","react-native-image-palette"],"author":{"url":"https://github.com/someSOAP","name":"someSOAP","email":"andrey.meg@gmail.com"},"license":"MIT","_id":"@somesoap/react-native-image-palette@1.2.0","maintainers":[{"name":"somesoap","email":"andrey.meg@gmail.com"}],"homepage":"https://github.com/someSOAP/react-native-image-palette#readme","bugs":{"url":"https://github.com/someSOAP/react-native-image-palette/issues"},"dist":{"shasum":"35f3ae57b6de829b59c7c2dc413a0161c7317360","tarball":"https://registry.npmjs.org/@somesoap/react-native-image-palette/-/react-native-image-palette-1.2.0.tgz","fileCount":44,"integrity":"sha512-LxEPVd14NA5t5Civ7Awy5o0XD/abcCgbg6/O9JLkfLRP8sWDbnsWkvUXz+OJelAOu4ZEwfXZ+1qYqiyoNrkvKw==","signatures":[{"sig":"MEUCIE84K26f6f0h/82DucmBW7oA3uoGybEjZlBBcgsUF0EiAiEAiOVc8nOkAsS1vMvzRKuIvFLopLI3+jYjpnFSxTiWW+U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":70678},"jest":{"preset":"react-native","modulePathIgnorePatterns":["<rootDir>/example/node_modules","<rootDir>/lib/"]},"main":"lib/commonjs/index","types":"lib/typescript/src/index.d.ts","module":"lib/module/index","source":"src/index","gitHead":"a97a0e1f96a8da12317235cbc27a2a5e942e7433","scripts":{"lint":"eslint \"**/*.{js,ts,tsx}\"","test":"jest","clean":"del-cli android/build example/android/build example/android/app/build example/ios/build lib","example":"yarn workspace react-native-image-palette-example","prepare":"bob build","release":"release-it","typecheck":"tsc --noEmit","open:xcode":"xed example/ios","example:start":"yarn example start","example:pod-install":"cd example/ios && pod install","open:android-studio":"open -a \"Android Studio\" example/android"},"_npmUser":{"name":"somesoap","email":"andrey.meg@gmail.com"},"prettier":{"useTabs":false,"tabWidth":2,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"},"commitlint":{"extends":["@commitlint/config-conventional"]},"release-it":{"git":{"tagName":"v${version}","commitMessage":"chore: release ${version}"},"npm":{"publish":true},"github":{"release":true},"plugins":{"@release-it/conventional-changelog":{"preset":"angular"}}},"repository":{"url":"git+https://github.com/someSOAP/react-native-image-palette.git","type":"git"},"workspaces":["example"],"_npmVersion":"11.2.0","description":"Get average color or a colors palette from an image or the image segments","directories":{},"resolutions":{"@types/react":"^18.2.44"},"_nodeVersion":"22.12.0","eslintConfig":{"root":true,"rules":{"prettier/prettier":["error",{"useTabs":false,"tabWidth":2,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"}]},"extends":["@react-native","prettier"]},"eslintIgnore":["node_modules/","lib/"],"react-native":"src/index","codegenConfig":{"name":"RNImagePaletteSpec","type":"modules","jsSrcsDir":"src"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"yarn@3.6.1","devDependencies":{"jest":"^29.7.0","react":"18.3.1","turbo":"^1.10.7","eslint":"^8.51.0","del-cli":"^5.1.0","prettier":"^3.0.3","commitlint":"^17.0.2","release-it":"^15.0.0","typescript":"^5.2.2","@types/jest":"^29.5.5","@types/react":"^18.2.44","react-native":"0.75.2","@evilmartians/lefthook":"^1.5.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","react-native-builder-bob":"^0.20.0","@react-native/eslint-config":"^0.73.1","@commitlint/config-conventional":"^17.0.2","@release-it/conventional-changelog":"^5.0.0"},"peerDependencies":{"react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/react-native-image-palette_1.2.0_1745786289717_0.9746056729199792","host":"s3://npm-registry-packages-npm-production"},"react-native-builder-bob":{"output":"lib","source":"src","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]}},"1.2.1":{"name":"@somesoap/react-native-image-palette","version":"1.2.1","keywords":["react-native","ios","android","image","prominent","dominant","vibrant","color","avergae","mean","palette","react-native-image-palette"],"author":{"url":"https://github.com/someSOAP","name":"someSOAP","email":"andrey.meg@gmail.com"},"license":"MIT","_id":"@somesoap/react-native-image-palette@1.2.1","maintainers":[{"name":"somesoap","email":"andrey.meg@gmail.com"}],"homepage":"https://github.com/someSOAP/react-native-image-palette#readme","bugs":{"url":"https://github.com/someSOAP/react-native-image-palette/issues"},"dist":{"shasum":"d987869ea370123f6a94ddc178e18cb5c58be55a","tarball":"https://registry.npmjs.org/@somesoap/react-native-image-palette/-/react-native-image-palette-1.2.1.tgz","fileCount":44,"integrity":"sha512-RkXwkhiA7VVuPl4gAHzkLGbb/OJ2XxzqXkQFjopbMmbapLBNhmlTb/3uY9guzjrtElRZ2JtuoVHHL98UYmjFnA==","signatures":[{"sig":"MEUCIE04I0Dtt8ZKU/ZyduZvvclev7/70mU+Hr0Xml/SvZ/PAiEA82LXVXfyLtahZAKlTP/ws3dJysYgrEE5ejcXZJwXD8o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":70535},"jest":{"preset":"react-native","modulePathIgnorePatterns":["<rootDir>/example/node_modules","<rootDir>/lib/"]},"main":"lib/commonjs/index","types":"lib/typescript/src/index.d.ts","module":"lib/module/index","source":"src/index","gitHead":"a55857fbdf0aac9b9029b112114f028605cfac5d","scripts":{"lint":"eslint \"**/*.{js,ts,tsx}\"","test":"jest","clean":"del-cli android/build example/android/build example/android/app/build example/ios/build lib","example":"yarn workspace react-native-image-palette-example","prepare":"bob build","release":"release-it","typecheck":"tsc --noEmit","open:xcode":"xed example/ios","example:start":"yarn example start","example:pod-install":"cd example/ios && pod install","open:android-studio":"open -a \"Android Studio\" example/android"},"_npmUser":{"name":"somesoap","email":"andrey.meg@gmail.com"},"prettier":{"useTabs":false,"tabWidth":2,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"},"commitlint":{"extends":["@commitlint/config-conventional"]},"release-it":{"git":{"tagName":"v${version}","commitMessage":"chore: release ${version}"},"npm":{"publish":true},"github":{"release":true},"plugins":{"@release-it/conventional-changelog":{"preset":"angular"}}},"repository":{"url":"git+https://github.com/someSOAP/react-native-image-palette.git","type":"git"},"workspaces":["example"],"_npmVersion":"11.2.0","description":"Get average color or a colors palette from an image or the image segments","directories":{},"resolutions":{"@types/react":"^18.2.44"},"_nodeVersion":"22.12.0","eslintConfig":{"root":true,"rules":{"prettier/prettier":["error",{"useTabs":false,"tabWidth":2,"quoteProps":"consistent","singleQuote":true,"trailingComma":"es5"}]},"extends":["@react-native","prettier"]},"eslintIgnore":["node_modules/","lib/"],"react-native":"src/index","codegenConfig":{"name":"RNImagePaletteSpec","type":"modules","jsSrcsDir":"src"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"yarn@3.6.1","devDependencies":{"jest":"^29.7.0","react":"18.3.1","turbo":"^1.10.7","eslint":"^8.51.0","del-cli":"^5.1.0","prettier":"^3.0.3","commitlint":"^17.0.2","release-it":"^15.0.0","typescript":"^5.2.2","@types/jest":"^29.5.5","@types/react":"^18.2.44","react-native":"0.75.2","@evilmartians/lefthook":"^1.5.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","react-native-builder-bob":"^0.20.0","@react-native/eslint-config":"^0.73.1","@commitlint/config-conventional":"^17.0.2","@release-it/conventional-changelog":"^5.0.0"},"peerDependencies":{"react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/react-native-image-palette_1.2.1_1746182326510_0.36040522668617103","host":"s3://npm-registry-packages-npm-production"},"react-native-builder-bob":{"output":"lib","source":"src","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]}},"1.2.2":{"name":"@somesoap/react-native-image-palette","version":"1.2.2","description":"Get average color or a colors palette from an image or the image segments","main":"lib/commonjs/index","module":"lib/module/index","types":"lib/typescript/src/index.d.ts","react-native":"src/index","source":"src/index","scripts":{"example":"yarn workspace react-native-image-palette-example","example:start":"yarn example start","example:pod-install":"cd example/ios && pod install","open:xcode":"xed example/ios","open:android-studio":"open -a \"Android Studio\" example/android","test":"jest","typecheck":"tsc --noEmit","lint":"eslint \"**/*.{js,ts,tsx}\"","clean":"del-cli android/build example/android/build example/android/app/build example/ios/build lib","prepare":"bob build","release":"release-it"},"keywords":["react-native","ios","android","image","prominent","dominant","vibrant","color","avergae","mean","palette","react-native-image-palette"],"repository":{"type":"git","url":"git+https://github.com/someSOAP/react-native-image-palette.git"},"author":{"name":"someSOAP","email":"andrey.meg@gmail.com","url":"https://github.com/someSOAP"},"license":"MIT","bugs":{"url":"https://github.com/someSOAP/react-native-image-palette/issues"},"homepage":"https://github.com/someSOAP/react-native-image-palette#readme","publishConfig":{"registry":"https://registry.npmjs.org/"},"devDependencies":{"@commitlint/config-conventional":"^17.0.2","@evilmartians/lefthook":"^1.5.0","@react-native/eslint-config":"^0.73.1","@release-it/conventional-changelog":"^5.0.0","@types/jest":"^29.5.5","@types/react":"^18.2.44","commitlint":"^17.0.2","del-cli":"^5.1.0","eslint":"^8.51.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","jest":"^29.7.0","prettier":"^3.0.3","react":"18.3.1","react-native":"0.75.2","react-native-builder-bob":"^0.20.0","release-it":"^15.0.0","turbo":"^1.10.7","typescript":"^5.2.2"},"resolutions":{"@types/react":"^18.2.44"},"peerDependencies":{"react":"*","react-native":"*"},"workspaces":["example"],"packageManager":"yarn@3.6.1","jest":{"preset":"react-native","modulePathIgnorePatterns":["<rootDir>/example/node_modules","<rootDir>/lib/"]},"commitlint":{"extends":["@commitlint/config-conventional"]},"release-it":{"git":{"commitMessage":"chore: release ${version}","tagName":"v${version}"},"npm":{"publish":true},"github":{"release":true},"plugins":{"@release-it/conventional-changelog":{"preset":"angular"}}},"eslintConfig":{"root":true,"extends":["@react-native","prettier"],"rules":{"prettier/prettier":["error",{"quoteProps":"consistent","singleQuote":true,"tabWidth":2,"trailingComma":"es5","useTabs":false}]}},"eslintIgnore":["node_modules/","lib/"],"prettier":{"quoteProps":"consistent","singleQuote":true,"tabWidth":2,"trailingComma":"es5","useTabs":false},"react-native-builder-bob":{"source":"src","output":"lib","targets":["commonjs","module",["typescript",{"project":"tsconfig.build.json"}]]},"codegenConfig":{"name":"RNImagePaletteSpec","type":"modules","jsSrcsDir":"src"},"_id":"@somesoap/react-native-image-palette@1.2.2","gitHead":"6fca5c8387d4eaa0c140b0a5aba6d050ba6b81e5","_nodeVersion":"22.12.0","_npmVersion":"11.2.0","dist":{"integrity":"sha512-91O9pDEeYrA5vJzZs8x5h50uwTTAvqSrAnu5sWs4jeHiRXeGDgDY0keVB0s3RrIlbeF61KBK7OZpXxymSMyz5Q==","shasum":"30fb6576ce9101d846ca9bf9a7b30dd242b18792","tarball":"https://registry.npmjs.org/@somesoap/react-native-image-palette/-/react-native-image-palette-1.2.2.tgz","fileCount":44,"unpackedSize":70610,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAZ1WDsDRs0p5Z2N2D9OdVq06GU4TuTuRk/4TWTJH7vqAiBvblBqSsqpBQKMb2tZb/cn5jUMZg31rVov/zjiimaeqw=="}]},"_npmUser":{"name":"somesoap","email":"andrey.meg@gmail.com"},"directories":{},"maintainers":[{"name":"somesoap","email":"andrey.meg@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/react-native-image-palette_1.2.2_1754254719381_0.2791902281136105"},"_hasShrinkwrap":false}},"time":{"created":"2024-09-11T17:45:42.689Z","modified":"2025-08-03T20:58:39.734Z","1.0.0":"2024-09-11T17:45:42.907Z","1.0.1":"2024-09-12T10:30:56.512Z","1.0.2":"2024-09-12T18:43:45.440Z","1.0.3":"2024-09-13T05:58:12.672Z","1.0.4":"2024-09-15T16:24:18.783Z","1.1.0":"2024-12-19T16:46:02.967Z","1.2.0":"2025-04-27T20:38:09.917Z","1.2.1":"2025-05-02T10:38:46.689Z","1.2.2":"2025-08-03T20:58:39.571Z"},"bugs":{"url":"https://github.com/someSOAP/react-native-image-palette/issues"},"author":{"name":"someSOAP","email":"andrey.meg@gmail.com","url":"https://github.com/someSOAP"},"license":"MIT","homepage":"https://github.com/someSOAP/react-native-image-palette#readme","keywords":["react-native","ios","android","image","prominent","dominant","vibrant","color","avergae","mean","palette","react-native-image-palette"],"repository":{"type":"git","url":"git+https://github.com/someSOAP/react-native-image-palette.git"},"description":"Get average color or a colors palette from an image or the image segments","maintainers":[{"name":"somesoap","email":"andrey.meg@gmail.com"}],"readme":"# react-native-image-palette\n\n![Platform](https://img.shields.io/badge/platform-android%20%7C%20ios-%239cf)\n[![NPM Badge](https://img.shields.io/npm/v/@somesoap/react-native-image-palette)](https://www.npmjs.com/package/@somesoap/react-native-image-palette)\n\n\nGet average color and palette from image or from multiple different segments of the image.\n\nThis package was inspired by [react-native-image-colors](https://www.npmjs.com/package/react-native-image-colors)\nenhancing its functionality, making it independent of Expo modules and unifying return types.\\\nIn current implementation you can define a **specific segment** of the image to get palette or average color of.\n\nFor palette calculation this module uses the [Palette](https://developer.android.com/reference/androidx/palette/graphics/Palette) class on Android and [swift-vibrant](https://github.com/bd452/swift-vibrant) on iOS.\n\nSince the implementation of getting palette is different for each platform you can get **different color results for each**.\\\nResults of calculating average color will be more accurate and only have insufficient difference.\n\n\n<p align=\"center\" >\n  <img\n    width=\"720px\"\n    src=\"https://github.com/someSOAP/react-native-image-palette/blob/main/assets/preview.png?raw=true\"\n    alt=\"Example 1\"\n  />\n</p>\n\n## Installation\n\n```sh\nnpm install @somesoap/react-native-image-palette\n```\nor\n```sh\nyarn add @somesoap/react-native-image-palette\n```\n\n## Usage\nImport functions you need:\n```ts\nimport {\n  getPalette,\n  getAverageColor,\n  getSegmentsAverageColor,\n  getSegmentsPalette,\n} from '@somesoap/react-native-image-palette';\n```\n\nDefine image source\n```js\nconst image = \"https://picsum.photos/id/85/1280/774\"\n// const image = \"https://picsum.photos/id/28/4928/3264\"\n```\nOr\n```js\nconst image = require('./image.jpeg');\n```\nReceive the result:\n```ts\n\ngetPalette(image)\n  .then((palette) => console.log(palette.vibrant))\n\ngetAverageColor(image)\n  .then((averageColor) => console.log(averageColor))\n\n```\n\n## API\n\n### `getPalette(image, config): Primise<PaletteResult>`\n\nRetrieve the pallet of the given image.\\\n⚠️ Results can be slightly different on each platform.\n\n| Property | Type                         | Description                                                                  |\n|----------|------------------------------|------------------------------------------------------------------------------|\n| `image`  | string \\| ImageRequireSource | - can be string (image uri or base64) or local file `require('./image.jpg')` |\n| `config` | PaletteConfig?               | Optional config object                                                       |\n\n`PaletteConfig` - optional config type description\n\n| Property        | Type                    | Description                                                                                             |\n|-----------------|-------------------------|---------------------------------------------------------------------------------------------------------|\n| `headers`       | Record<string, string>? | HTTP headers to be sent along with the GET request to download the image (Auth token or e.g.)           |\n| `fallbackColor` | string?                 | If a color property couldn't be retrieved, it will default to this hex color string. By default is #fff |\n\n\n#### Return type `PaletteResult`\n\n| Property          | Type    |\n|-------------------|---------|\n| `vibrant`         | string  |\n| `darkVibrant`     | string  |\n| `lightVibrant`    | string  |\n| `muted`           | string  |\n| `darkMuted`       | string  |\n| `lightMuted`      | string  |\n| `dominantAndroid` | string? |\n\nNote `dominantAndroid` is only available on Android.\n\n### `getAverageColor(image, config): Primise<string>`\n\nReturns average (mean) color from the given image.\n\n| Property | Type                           | Description                                                                  |\n|----------|--------------------------------|------------------------------------------------------------------------------|\n| `image`  | string \\| ImageRequireSource   | - can be string (image uri or base64) or local file `require('./image.jpg')` |\n| `config` | AverageColorConfig?            | Optional config object                                                       |\n\n`AverageColorConfig` - optional config type description\n\n| Property              | Type                    | Description                                                                                                                                               |\n|-----------------------|-------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `headers`             | Record<string, string>? | HTTP headers to be sent along with the GET request to download the image (Auth token or e.g.)                                                             |\n| `pixelSpacingAndroid` | `number?`               | How many pixels to skip when iterating over image pixels. Higher means better performance (**note**: value cannot be lower than 1). Default value is `5`. |\n\n#### Return type `string`\n\n## Get average color or palette by image segments\n\nThis module provides functionality to get average color or palette from multiple segments of the given image.\\\nFor example, you can calculate average color only for top and bottom borders of the image, or get palette only from\ncenter of the image.\n\n\nFunctions  `getSegmentsAverageColor(image, segments, config): Promise<string[]>` and `getSegmentsPalette(image, segments, config): Promise<PaletteResult[]>`\nenhancing functionality of the functions described above, by adding `segments` argument.\\\nThis argument is required array of coordinates in percents from which to which points you need to crop an image.\\\nIn the result you will receive an array with the same length as the length of `segments` array being passed.\n\n`ImageSegmentConfig` has following structure:\n\n| Property | Type             | Description                                                                                                                                                             |\n|----------|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `fromX`  | number (0..100)  | Offset in % from the left side of the image. Under the hood we get image size and multiply this value on the amount of pixels in width of the image.                    |\n| `toX`    | number (0..100)  | Must be > `fromX`. Offset in % from the left side of the image. Under the hood we get image size and multiply this value on the amount of pixels in width of the image. |\n| `fromY`  | number (0..100)  | Offset in % from the top of the image. Under the hood we get image size and multiply this value on the amount of pixels in height of the image.                         |\n| `toX`    | number (0..100)  | Must be > `fromY`. Offset in % from the top of the image. Under the hood we get image size and multiply this value on the amount of pixels in height of the image.      |\n\n\n### Usage\n\n```ts\ngetSegmentsAverageColor(image, [\n  { fromX: 0, toX: 100, fromY: 0, toY: 10 }, // from 0% to 100% by width and from 0% to 10% of height\n  { fromX: 40, toX: 60, fromY: 40, toY: 60 }, // from 40% to 60% by width and from 40% to 60% of height\n  { fromX: 0, toX: 100, fromY: 90, toY: 100 }, // from 0% to 100% by width and from 90% to 100% of height\n])\n  .then(([top, center, bottom]) => {\n    console.log(\"Top border average color is: \", top)\n    console.log(\"Center average color is: \", center)\n    console.log(\"Bottom border average color is: \", bottom)\n  })\n\n\ngetSegmentsPalette(image, [\n  { fromX: 0, toX: 100, fromY: 0, toY: 10 }, // from 0% to 100% by width and from 0% to 10% of height\n  { fromX: 40, toX: 60, fromY: 40, toY: 60 }, // from 40% to 60% by width and from 40% to 60% of height\n  { fromX: 0, toX: 100, fromY: 90, toY: 100 }, // from 0% to 100% by width and from 90% to 100% of height\n])\n  .then(([top, center, bottom]) => {\n    console.log(\"Top vibrant color is: \", top.vibrant)\n    console.log(\"Center darkMuted color is: \", center.darkMuted)\n    console.log(\"Bottom lightVibrant color is: \", bottom.lightVibrant)\n  })\n  .catch(console.error);\n```\n","readmeFilename":"README.md"}