public static function deleteThumbnails($imagePath)
    {
        $imagePath = normalizePath("{$imagePath}/");
        $fileName = basename($imagePath);
        $tmbPath = normalizePath(dirname($imagePath) . '/.tmb/');
        $folder = new Folder($tmbPath);
        $pattern = preg_quote(static::removeExt($fileName));

        foreach ($folder->find(".*{$pattern}.*") as $tn) {
            $tn = new File($tmbPath . $tn);
            $tn->delete();
        }
    }
public static function deleteThumbnails($imagePath)
    {
        $imagePath = normalizePath("{$imagePath}/");
        $fileName = basename($imagePath);
        $tmbPath = normalizePath(dirname($imagePath) . '/.tmb/');
        $folder = new Folder($tmbPath);
        $pattern = preg_quote(static::removeExt($fileName));

        foreach ($folder->find(".*{$pattern}.*") as $tn) {
            $tn = new File($tmbPath . $tn);
            $tn->delete();
        }
    }
public static function deleteThumbnails ( $ imagePath ) { $ imagePath = normalizePath ( "{$imagePath}/" ) ; $ fileName = basename ( $ imagePath ) ; $ tmbPath = normalizePath ( dirname ( $ imagePath ) . '/.tmb/' ) ; $ folder = new Folder ( $ tmbPath ) ; $ pattern = preg_quote ( static :: removeExt ( $ fileName ) ) ; foreach ( $ folder -> find ( ".*{$pattern}.*" ) as $ tn ) { $ tn = new File ( $ tmbPath . $ tn ) ; $ tn -> delete ( ) ; } }
Delete image's thumbnails if exists.

@param string $imagePath Full path to original image file
@return void
Delete image s thumbnails if exists .