vertical stripes in a resized image

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.
Locked
Jack_Brody
Posts: 7
Joined: 2018-11-25T10:11:38-07:00
Authentication code: 1152

vertical stripes in a resized image

Post by Jack_Brody »

I ran into a weird behavior during resizing using ImageMagick 7.0.10-2 Q16 x64 (ImageMagick-7.0.10-3-portable-Q16-x64.zip) on Windows 10 x64. There are vertical 1-pixel wide stripes in the output images.

My source and output images are here on my Dropbox so you may reproduce.

Lookout tower:

Code: Select all

magick.exe tower.jpg -filter Lanczos -resize 2000x2000 tower_Lanczos.jpg
Image


Code: Select all

magick.exe tower.jpg -filter Mitchell -resize 2000x2000 tower_Mitchell.jpg
Image




Horses:

Code: Select all

magick.exe horses.jpg -filter Lanczos -resize 2000x2000 horses_Lanczos.jpg
Image

Mitchell is OK with the horses.
Last edited by Jack_Brody on 2020-03-28T13:48:04-07:00, edited 1 time in total.

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

Re: vertical stripes in a resized image

Post by fmw42 »

It works fine for me on IM 7.0.11.2 Q16 Mac OSX. Perhaps try upgrading. Also what are your versions of libpng and libjpeg?

Jack_Brody
Posts: 7
Joined: 2018-11-25T10:11:38-07:00
Authentication code: 1152

Re: vertical stripes in a resized image

Post by Jack_Brody »

7.0.10-2 is the latest stable for Windows.

As for libpng and libjpeg - I suppose these are files. But they are not in the imagemagick package I downloaded (ImageMagick-7.0.10-2-portable-Q16-x64.zip).

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

Re: vertical stripes in a resized image

Post by fmw42 »

They are the delegates for PNG and JPEG. Image magick use them for reading/writing those formats. If they are old, they could be buggy or incompatible. As for Windows ImageMagick, sorry, I mistyped. I was testing on 7.0.10.2, which is indeed the current version.

User avatar
GeeMack
Posts: 757
Joined: 2015-12-01T22:09:46-07:00
Authentication code: 1151
Location: Central Illinois, USA

Re: vertical stripes in a resized image

Post by GeeMack »

I'm using IM 7.0.10-2 Q16 x64 HDRI static that I get from ftp.imagemagick.org/pub/ImageMagick/binaries/. Running CLI on Windows 10 and testing both sample images with both filters, the outputs don't show that distortion for me.

Jack_Brody
Posts: 7
Joined: 2018-11-25T10:11:38-07:00
Authentication code: 1152

Re: vertical stripes in a resized image

Post by Jack_Brody »

One thing to add: the imagemagick download page states:
If you have any problems, you likely need vcomp120.dll. To install it, download Visual C++ Redistributable Package.
I downloaded installer of Visual C++ from the provided link. The installation ran without problems. But I don't see vcomp12.dll in my system, only vcomp140.dll in c:\Windows\SysWOW64\. Could that be the cause?

Jack_Brody
Posts: 7
Joined: 2018-11-25T10:11:38-07:00
Authentication code: 1152

Re: vertical stripes in a resized image

Post by Jack_Brody »

Just an update: I have downloaded current version (ImageMagick-7.0.10-10-portable-Q16-x64.zip). It creates the stripes as well.

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

Re: vertical stripes in a resized image

Post by fmw42 »

What is your version of libjpeg?

Code: Select all

magick -list format
look at the end of the line for JPG

It works fine using your horse image and your command on IM 7.0.10.10 Q16 HDRI Mac OSX Sierra

Jack_Brody
Posts: 7
Joined: 2018-11-25T10:11:38-07:00
Authentication code: 1152

Re: vertical stripes in a resized image

Post by Jack_Brody »

The line for JPG is following:

Code: Select all

JPG* rw-   Joint Photographic Experts Group JFIF format (libjpeg-turbo 2.0.2)

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

Re: vertical stripes in a resized image

Post by fmw42 »

That could be the cause. I do not use that, so cannot say for sure. But you might want to check for an update. I have been using libjpeg (90)

Code: Select all

 JPE* JPEG      rw-   Joint Photographic Experts Group JFIF format (libjpeg 90)
See https://github.com/libjpeg-turbo/libjpeg-turbo

and

https://sourceforge.net/projects/libjpeg-turbo/files/ (current version is 2.0.4)

Locked