i try to filter product collection to get a product collection which only has at least one image like this:
$collection->addAttributeToFilter('image', array("neq"=>'no_selection'));
$collection->addAttributeToFilter('small_image', array("neq"=>'no_selection'));
but it's not working at all, it still shows the product with the placeholder image
Best Answer
Other idea ... get all unique
entity_id
(product Ids) fromcatalog_product_entity_media_gallery
table and use result to filter collection.For your collection
Edit:
Note: for performance I'd use first approach.