Jaggy results with using maps for perspective transform

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?".
perspector
Posts: 7
Joined: 2020-02-17T06:18:13-07:00
Authentication code: 1152

Re: Jaggy results with using maps for perspective transform

Post by perspector »

fmw42: almost, it’s 96, not 72. Also requires -background none. I tried up to a factor 8 to no avail.

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

Re: Jaggy results with using maps for perspective transform

Post by snibgo »

If you double the size, you effectively get one more bit of precision, so 9 instead of 8. If you supersample by a factor of 8, that is an extra 3 bits, so 11 instead of 8.

In my link I show we generally need at least 8 more bits, so 16 instead of 8. To get this by supersampling, you would need to resize by a factor of 256.
snibgo's IM pages: im.snibgo.com

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

Re: Jaggy results with using maps for perspective transform

Post by fmw42 »

perspector wrote:
2020-02-18T10:22:52-07:00
fmw42: almost, it’s 96, not 72. Also requires -background none. I tried up to a factor 8 to no avail.
Correct, my mistake. 72 is for PDF, etc. But for SVG it also depends upon which renderer you are using and what version. See https://imagemagick.org/discourse-serve ... =4&t=35112

Post Reply