Skip to content

Colored image become grayscale randomly on resize #7152

@L3o-pold

Description

@L3o-pold

ImageMagick version

7.1.1-29

Operating system

Linux 5.10.0-0.deb10.16-amd64 #1 SMP Debian 5.10.127-2~bpo10+1 (2022-07-28) x86_64 GNU/Linux

Description

Randomly when resizing a file the result became grayscale (black and white only).

Steps to Reproduce

#!/bin/bash
for i in {1..1000}
do
  magick convert test.jpg -resize '1920x>' -verbose ./tmp/test.jpg`
done

When the resized image is correct it will output:

test.jpg=>/tmp/test.jpg JPEG 1402x1039 1402x1039+0+0 8-bit sRGB 93218B 0.040u 0:00.037

test-12

When the resized image is not correct it will output:

test.jpg=>/tmp/test.jpg JPEG 1402x1039 1402x1039+0+0 8-bit sRGB 81473B 0.040u 0:00.073

test-12

Images

CleanShot

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