def image_has_transparent_pixels(img):
 img = image_from_data(img)
 if img.isNull():
  return False
 return imageops.has_transparent_pixels(img)

def image_has_transparent_pixels ( img ) : img = image_from_data ( img ) if img . isNull ( ) : return False return imageops . has_transparent_pixels ( img )
return true iff the image has at least one semi-transparent pixel .