imaginary icon indicating copy to clipboard operation
imaginary copied to clipboard

extend=white does not work on some images

Open gallart opened this issue 5 years ago • 1 comments

Hi,

Using these versions :

"imaginary": "1.2.1", "bimg": "1.1.2", "libvips": "8.9.2"

I don't get the expected result with following command :

https://imagine.nexylan.dev/resize?extend=white&embed=true&width=580&height=580&url=https://photos.zodio.fr/zodio-magento/catalog/products/source/1/0/10124801_D.jpg&nocrop=true

Source image : https://photos.zodio.fr/zodio-magento/catalog/products/source/1/0/10124801_D.jpg

Resized area should be white.

Gaëtan

gallart avatar Aug 05 '20 14:08 gallart

All right, I have some part of answer.

Source image is CMJN, then color-code is opposite of RGB.

extend=black gives me white background...

https://imagine.nexylan.dev/resize?extend=black&embed=true&width=580&height=580&url=https://photos.zodio.fr/zodio-magento/catalog/products/source/1/0/10124801_D.jpg&nocrop=true

Gaëtan

gallart avatar Aug 05 '20 14:08 gallart