There is no way to add a product image description using the addImageToMediaGallery function. The following code does the job though:

foreach($product->getData('media_gallery') as $each){
    foreach($each as $image){
         $attributes = $product->getTypeInstance(true)->getSetAttributes($product);
         $attributes['media_gallery']->getBackend()->updateImage($product, $image['file'], array('label' => 'whatever'));
     }
}
Adding a product image description programmatically
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.
Tags: