lundi 2 mars 2015

Get rgba values of top sliver of image

I'm working on a site that has two types of images.


Image Type 1 has all white space at the top.


Image Type 2 has at least one pixel of non-white space at the top.


I am wondering if there is a way to detect if the image has white space anywhere along the first full width of the image (at a height of 1px).


Image Type 1


enter image description here


Image Type 2


enter image description here


Aucun commentaire:

Enregistrer un commentaire