Esempio n. 1
0
 public function save($filename = null, $mime_type = null)
 {
     $is_animated_gif = GifFrameExtractor::isAnimatedGif($this->file);
     if (!$is_animated_gif) {
         return parent::save($filename, $mime_type);
     }
     $saved = $this->_save_animated_gif($this->image_animated_gif, $filename, $mime_type);
     if (!is_wp_error($saved)) {
         $this->file = $saved['path'];
         $this->mime_type = $saved['mime-type'];
     }
     return $saved;
 }