What does turning alpha on and then off again do?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: What does turning alpha on and then off again do?

Post by snibgo »

Upthread, I said I reported the OP situation as a bug. But I was wrong; it isn't.

The reason "-alpha off" makes a slightly different resize, even for images that are fully opaque, is that IM uses a different default filter. I suggest that if you prefer the result from "-alpha off", you remove that (and the "-alpha on") and instead use an explicit "-filter":

Code: Select all

convert.exe input.tga -filter Lanczos -resize 128x128! output.tga
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: What does turning alpha on and then off again do?

Post by fmw42 »

Post Reply