Exemplo n.º 1
0
 /**
  * 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;
 }
Exemplo n.º 2
0
 /**
  * Reset medium.
  *
  * @return $this
  */
 public function reset()
 {
     parent::reset();
     $this->attributes['controls'] = true;
     return $this;
 }
Exemplo n.º 3
0
 /**
  * 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;
 }
Exemplo n.º 4
0
 /**
  * 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;
 }