convert -filter Cubic doesn't work but convert -filter cubic does

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
Bu11d0zer
Posts: 2
Joined: 2017-03-25T02:01:48-07:00
Authentication code: 1151

convert -filter Cubic doesn't work but convert -filter cubic does

Post by Bu11d0zer »

On Centos 5.11, using the latest ImageMagick as of 3/25/17 (or older versions, it doesn't matter), the following produces bad or blank GIF files:

convert -filter Cubic -geometry 32x32 infile.png outfile.gif

But this works:

convert -filter cubic -geometry 32x32 infile.png outfile.gif

By changing the C in Cubic from uppercase to lowercase, it fixed the problem. This, in itself, is a bug.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: convert -filter Cubic doesn't work but convert -filter cubic does

Post by snibgo »

Personally, I don't use "-geometry" to resize. But if you want that, the correct syntax is after the input file, not before it:

Code: Select all

convert toes.png -filter cubic -geometry 32x32 x.gif
convert toes.png -filter Cubic -geometry 32x32 x.gif
These both work for me, with IM v6.9.5-3.
snibgo's IM pages: im.snibgo.com
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: convert -filter Cubic doesn't work but convert -filter cubic does

Post by magick »

Unfortunately we cannot reproduce the problem (IMv7 7.0.5-3):

Code: Select all

-> convert -filter Cubic -geometry 32x32 infile.png reference.gif

-> convert -filter cubic -geometry 32x32 infile.png outfile.gif
 
-> compare -metric rmse outfile.gif reference.gif null:
0 (0)
 
Bu11d0zer
Posts: 2
Joined: 2017-03-25T02:01:48-07:00
Authentication code: 1151

Re: convert -filter Cubic doesn't work but convert -filter cubic does

Post by Bu11d0zer »

Folks, sorry to waste your time. The shell in which I was using Cubic did not have the path rehashed so it was using ImageMagick 6.7.2-7. The one with cubic was using ImageMagick 7.0.5-3. The compare result for the difference in output of those versions using the command you gave is "25.7125 (0.000392348)". However the result image is corrupt. So it must have been fixed between 6.7 and 7.0.
Post Reply