<?php
$URL="https://raw.githubusercontent.com/panticz/magento/master/scripts/delete_unused_images.sh";
echo "
"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $URL); $result = curl_exec($ch); curl_close($ch); htmlspecialchars($result); echo "
";
?>
Links
http://www.magentocommerce.com/magento-connect/defcon2/extension/1147/image-clean/reviews#review_6087
http://stackoverflow.com/questions/4339699/delete-unused-product-images-in-magento