public function create_thumbnail($path, $filename, $extension) { $width = 50; $height = 50; $mode = ImageInterface::THUMBNAIL_OUTBOUND; $size = new Box($width, $height); $thumbnail = Imagine::open("{$path}/{$filename}.{$extension}")->thumbnail($size, $mode); $destination = "{$filename}.thumb.{$extension}"; $thumbnail->save("{$path}/{$destination}"); }
/** * @internal */ public function getWrappedFont($color, $fontSize) { $color = $this->createColor($color); return $this->imagine->font($this->fontResources[$this->currentStyle], $fontSize, $color); }