/** * Reset image. * * @return $this */ public function reset() { parent::reset(); if ($this->image) { $this->image(); $this->image->clearOperations(); // Clear previously applied operations $this->filter(); } $this->format = 'guess'; $this->quality = $this->default_quality; $this->debug_watermarked = false; return $this; }
/** * Reset medium. * * @return $this */ public function reset() { parent::reset(); $this->attributes['controls'] = true; return $this; }
/** * Reset image. * * @return $this */ public function reset() { parent::reset(); if ($this->image) { $this->image(); $this->filter(); } $this->format = 'guess'; $this->quality = $this->default_quality; $this->debug_watermarked = false; return $this; }
/** * Construct. * @param array $attributes * @param Medium $medium */ public function __construct(array $attributes, Medium $medium) { $this->attributes = $attributes; $this->source = $medium->reset()->thumbnail('auto')->display('thumbnail'); $this->source->linked = true; }