info("Regenerating images for ".$image->filename); $image->clearExisting(); $originalFile = new File($image->getFile(Image::ORIGINAL)); foreach (Image::$ImageTypes as $imageType) { Image::processFile($originalFile, $image->getFile($imageType['id']), $imageType); } } } }