diff --git a/man/rgbgfx.1 b/man/rgbgfx.1 index 253cdc9b..f4570c32 100644 --- a/man/rgbgfx.1 +++ b/man/rgbgfx.1 @@ -491,9 +491,17 @@ deduplication if .Fl u was enabled, so you probably don't want to use this option in combination with .Fl u . -Note also that the tiles that don't get output will not count towards +.Pp +Also note that the tiles that don't get output in the tile data +.Em do +still count towards .Fl N Ap s -limit. +limit, since they may get output in the tilemap or attribute map. +If you need to omit input tiles from all output in a way that does not count towards +.Fl N , +use +.Fl B +background tiles. .It Fl Y , Fl \-mirror-y Deduplicate tiles that are vertically symmetrical mirror images of each other across the Y axis. Implies diff --git a/test/gfx/trim_past_n.err b/test/gfx/trim_past_n.err new file mode 100644 index 00000000..1625857c --- /dev/null +++ b/test/gfx/trim_past_n.err @@ -0,0 +1,2 @@ +FATAL: Image contains 9 tiles, exceeding the limit of 4 + 4 +Conversion aborted after 1 error diff --git a/test/gfx/trim_past_n.flags b/test/gfx/trim_past_n.flags new file mode 100644 index 00000000..1706562e --- /dev/null +++ b/test/gfx/trim_past_n.flags @@ -0,0 +1 @@ +-N 4,4 -x 1 -c dmg diff --git a/test/gfx/trim_past_n.png b/test/gfx/trim_past_n.png new file mode 100644 index 00000000..4873231a Binary files /dev/null and b/test/gfx/trim_past_n.png differ