public function cropCopy(int $x, int $y, int $w, int $h): IImage {
$image = new OC_Image(null, $this->logger, $this->config);
+ $image->imageType = $this->imageType;
+ $image->mimeType = $this->mimeType;
+ $image->bitDepth = $this->bitDepth;
$image->resource = $this->cropNew($x, $y, $w, $h);
return $image;
public function preciseResizeCopy(int $width, int $height): IImage {
$image = new OC_Image(null, $this->logger, $this->config);
+ $image->imageType = $this->imageType;
+ $image->mimeType = $this->mimeType;
+ $image->bitDepth = $this->bitDepth;
$image->resource = $this->preciseResizeNew($width, $height);
return $image;
public function resizeCopy(int $maxSize): IImage {
$image = new OC_Image(null, $this->logger, $this->config);
+ $image->imageType = $this->imageType;
+ $image->mimeType = $this->mimeType;
+ $image->bitDepth = $this->bitDepth;
$image->resource = $this->resizeNew($maxSize);
return $image;