Simply use logoNeedsBackground('path/to/image.png') in your PHP code, it will return true if the image is too bright/white to be displayed over a white background, or false otherwise. Then you do your thing... :)
-
Notifications
You must be signed in to change notification settings - Fork 0
Simple PHP function to detect if a logo image needs a background color or not to be visible, so you can avoid to display a white or very bright logo on a white background, where it would be otherwise invisible.
legibe-com/logoNeedsBackground
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Simple PHP function to detect if a logo image needs a background color or not to be visible, so you can avoid to display a white or very bright logo on a white background, where it would be otherwise invisible.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published