-unsharp also brightens

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
snibgo
Posts: 12400
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

-unsharp also brightens

Post by snibgo » 2019-12-03T05:45:45-07:00

IM v7.0.8-64 on Windows 8.1:

Code: Select all

magick rose: -unsharp 0x1 uns_v7.png
Image
The v7.0.8-64 result is too light.

Code: Select all

convert rose: -unsharp 0x1 uns_v6.png
Image
The v6.9.9-50 result is correct.
snibgo's IM pages: im.snibgo.com

User avatar
fmw42
Posts: 25742
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: -unsharp also brightens

Post by fmw42 » 2019-12-03T10:49:03-07:00

Works fine for me on IM 7.0.9.7 Q16 Mac OSX

snibgo
Posts: 12400
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: -unsharp also brightens

Post by snibgo » 2019-12-03T12:23:57-07:00

Okay, thanks Fred, I'll assume a transient bug.
snibgo's IM pages: im.snibgo.com

User avatar
dlemstra
Posts: 1585
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: -unsharp also brightens

Post by dlemstra » 2019-12-03T14:05:04-07:00

This looks like an OpenCL bug to me. Not sure what is causing this though. Will need to take a look at it.

*Edit* Disabled the kernel for now.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate

snibgo
Posts: 12400
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: -unsharp also brightens

Post by snibgo » 2019-12-03T15:07:31-07:00

Ah, yes, quite possibly OpenCL. My own-built IM v7.0.8-64, Q32, doesn't have OpenCL, and gives the correct result.

Own-built (correct result):

Code: Select all

f:\web\im>%IM7DEV%magick -version
Version: ImageMagick 7.0.8-64 Q32 x86_64 2019-09-15 https://imagemagick.org
Copyright: © 1999-2019 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP(4.5)
Delegates (built-in): bzlib cairo fftw fontconfig fpx freetype jbig jng jpeg lcms ltdl lzma pangocairo png rsvg tiff webp wmf x xml zlib
Pre-built (result too light):

Code: Select all

f:\web\im>%IMG7%magick -version
Version: ImageMagick 7.0.8-64 Q16 x64 2019-09-08 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2018 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Visual C++: 180040629
Features: Cipher DPC HDRI Modules OpenCL OpenMP(2.0)
Delegates (built-in): bzlib cairo flif freetype gslib heic jng jp2 jpeg lcms lqr lzma openexr pangocairo png ps raw rsvg tiff webp xml zlib
snibgo's IM pages: im.snibgo.com

User avatar
fmw42
Posts: 25742
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: -unsharp also brightens

Post by fmw42 » 2019-12-03T15:33:08-07:00

My correct result was also without OpenCL

Post Reply