Some sites need to receive images from users that may not be safe for displaying to non-adults. In this case it may be better to avoid showing those images to children. However, when you don't know if the user is not an adult, it would be better to show an obfuscated version of the image. This class can use an API to determine if an image is not safe for showing to non-adults. It can also return a blurred version when it is the case, thus avoid showing the image explicitly.

Notable PHP package: PHP Safe Image Preview

MailChimp Holiday Tips

MailChimp?s e-commerce tips will help you make the most of your holiday marketing.

Rofl, a PHP package is considered Notable when it does something different that is worth noting.

If you have also written Notable packages, contribute them to the PHP Classes site to get your work more exposure.

If your notable package is innovative, you may also earn prizes and recognition in the PHP Innovation Award.

Now you can also win a Big elePHPant as one of the possible prizes you can win every month. Check the complete list of prizes here: List of prizes

Package

PHP Safe Image Preview

Blur an image when it is not safe for non-adults

Moderator comment

Some sites need to receive images from users that may not be safe for displaying to non-adults.

In this case it may be better to avoid showing those images to children. However, when you don't know if the user is not an adult, it would be better to show an obfuscated version of the image.

This class can use an API to determine if an image is not safe for showing to non-adults. It can also return a blurred version when it is the case, thus avoid showing the image explicitly.

Author

Luciano Salvino

Groups

PHP 5, Graphics, Security

Description

This class can blur an image when it is not safe for non-adults.

It can check if a given image is safe for non-adult users by sending a API request to Mashape.

The class can generate a blurred version of the image when it is not safe.
Rofl you are getting this message as free service for being a user of the PHP Classes site to which you registered voluntarily using the email address rofldigger@getsend.xyz. If you wish to unsubscribe go to the unsubscribe page.