sorry i forgot to provide the version.
Code: Select all
convert -version
Version: ImageMagick 6.9.3-7 Q16 x86_64 2016-03-08 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenCL OpenMP
Delegates (built-in): bzlib cairo fontconfig freetype gslib jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png ps rsvg tiff webp wmf x xml zlib
and
Code: Select all
convert -list format
---snip---
PNG* PNG rw- Portable Network Graphics (libpng 1.6.21)
See http://www.libpng.org/ for details about the PNG format.
PNG00* PNG rw- PNG inheriting bit-depth, color-type from original if possible
PNG24* PNG rw- opaque or binary transparent 24-bit RGB (zlib 1.2.8)
PNG32* PNG rw- opaque or transparent 32-bit RGBA
PNG48* PNG rw- opaque or binary transparent 48-bit RGB
PNG64* PNG rw- opaque or transparent 64-bit RGBA
PNG8* PNG rw- 8-bit indexed with optional binary transparency
---snip---
Flatten against a solid colour, or what?
yes, that's what i want. and i want the results from the two commands from my original post to be consistent.
except that the first command provides a preview of what that tiled pattern, with that particular background color, looks like on a larger canvas, and the second command simply transforms the original transparent tile (nami.png) to a same-size non-transparent tile with the previously given background color.
the larger image in my original post shows the results from both commands in one image.
many transparent tiles show this inconsistency, but some don't.
here's a better example, with seperate images:
spawned from
this transparent tile and #ff0000 as background color:
- the display command produced
this preview canvas
- the convert command produced
this non-transparent tile (here's an
800x800 canvas produced from that tile, for better comparison).
i guess i could work around the problem by creating the flattened tile first, then create a preview canvas from it -
but even so, i'd like to understand the inconsistency i'm seeing.
and just to give you some context, i am writing a script for myself to preview a large collection of tiles & choose a background color & choose a combination of tile + background to use as the desktop background.
edit:
saying "transparent tiles" i mean of course
partly transparent tiles, usually kept grayscale, specifically for the purpose of applying different bg-colors, see e.g.
here. the site also illustrates how my script works (preview canvas).