Skip to content

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.

Notifications You must be signed in to change notification settings

legibe-com/logoNeedsBackground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

logoNeedsBackground()

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... :)

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

No packages published

Languages