Lines Matching refs:image
112 $image = $this->imageManager()->read(input: $filesystem->readStream($path));
113 … $image = $this->resizeImage(image: $image, width: $width, height: $height, fit: $fit);
114 …$quality = $this->extractImageQuality(image: $image, default: static::GD_DEFAULT_THUMBNAIL_QUALI…
115 $data = $image->encodeByMediaType(type: $mime_type, quality: $quality)->toString();
147 $image = $this->imageManager()->read(input: $filesystem->readStream($path));
148 …$watermark = $this->createWatermark(width: $image->width(), height: $image->height(), media_file: …
149 $image = $this->addWatermark(image: $image, watermark: $watermark);
151 … $quality = $this->extractImageQuality(image: $image, default: static::GD_DEFAULT_IMAGE_QUALITY);
152 … $data = $image->encodeByMediaType(type: $mime_type, quality: $quality)->toString();
197 $image = $this->imageManager()->read(input: $filesystem->readStream($path));
198 … $image = $this->resizeImage(image: $image, width: $width, height: $height, fit: $fit);
201 …$watermark = $this->createWatermark(width: $image->width(), height: $image->height(), media_file: …
202 $image = $this->addWatermark(image: $image, watermark: $watermark);
205 …$quality = $this->extractImageQuality(image: $image, default: static::GD_DEFAULT_THUMBNAIL_QUALIT…
207 … return $image->encodeByMediaType(type: $media_file->mimeType(), quality: $quality)->toString();
261 public function addWatermark(ImageInterface $image, ImageInterface $watermark): ImageInterface argument
263 return $image->place(element: $watermark, position: 'center');
322 …protected function resizeImage(ImageInterface $image, int $width, int $height, string $fit): Image… argument
325 'crop' => $image->cover(width: $width, height: $height),
326 'contain' => $image->scale(width: $width, height: $height),
334 protected function extractImageQuality(ImageInterface $image, int $default): int argument
336 $native = $image->core()->native();