Magento: How to exclude image from gallery programmatically?
<p>I am creating products and images programmatically. The only thing that is not working is the "exclude from gallery" feature.</p>

<p>See <a href="http://snag.gy/QGhPg.jpg" rel="nofollow">http://snag.gy/QGhPg.jpg</a> for details.</p>

<p>How would I set that in the code? My current code looks like that:</p>

<pre><code>$product-&gt;addImageToMediaGallery($myImage, array('image','thumbnail','small_image'), false, false);
</code></pre>

<p>The flag is called <code>disabled</code> I think, not sure though.</p>

<p>Thanks!</p>