protected function imageThumbRemove($f) { $p = path::info($f); $thumb = sprintf($this->thumb_tp, '', $p['base'], '%s'); foreach ($this->thumb_sizes as $suffix => $s) { try { parent::removeFile(sprintf($thumb, $suffix)); } catch (Exception $e) { } } }
public function imageThumbRemove($f) { $p = path::info($f); $alpha = $p['extension'] == 'png' || $p['extension'] == 'PNG'; $thumb = sprintf($alpha ? $this->thumb_tp_alpha : $this->thumb_tp, '', $p['base'], '%s'); foreach ($this->thumb_sizes as $suffix => $s) { try { parent::removeFile(sprintf($thumb, $suffix)); } catch (Exception $e) { } } }