A clean image is important for many different reasons. If you have thousands of pictures if can be hard to figure out what needs to be cleaned and what doesn't. Is there an easy way to check a pixel to see if it is pure white or not in php?
A clean image is important for many different reasons. If you have thousands of pictures if can be hard to figure out what needs to be cleaned and what doesn't. Is there an easy way to check a pixel to see if it is pure white or not in php?
Wow! Interesting...
$width = imagesx($resource);
$height = imagesy($resource);
for($x = 0; $x < $width; $x++) {
for($y = 0; $y < $height; $y++) {
// pixel color at (x, y)
$color = imagecolorat($resource, $x, $y);
}
}
More Interesting things here:
https://www.php.net/manual/en/function.imagecolorat.php
https://www.php.net/manual/en/functi...opyresized.php
Bookmarks