Skip to content

SubFieldImage makes image file size larger instead of smaller during resize #480

@dgarciabriseno

Description

@dgarciabriseno

While testing PUNCH, I noticed that when executing downloadImage on a PUNCH image, this code

$coloredImage->resizeImage(
round($this->subfieldRelWidth),
round($this->subfieldRelHeight),
$this->imageOptions['rescale'],
$rescaleBlurFactor
);

increases the file size from ~5MB to ~14MB

The resulting image looks the same before and after this line, they are both square 4k images.
We should figure out what's going on here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions