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?".
I'm trying to add text to a transparent image, but without nice results. The weird thing is that this works on versions 6.2.1 and 6.5.1, but not 6.6.0-8 I'm currently using.
It seems that the antialiasing get's "eaten" up in the process and the letters look "crumbly".
I also get a good result using png, but when I create a tif it looks crumbled.
What I'm doiing is using this as a part of a slate system and compose the tif over the images that need slating. When I use the png the result isn't as nice as with the tif. (On another version then 6.6.0-8, that is.)
I read somewhere that the same problem could appear on Gif's. Any knowledge on that? or if it's the same thing?
I suspect there is something fishy with the tiff module in IM. We're also having trouble with speed using tif's on nfs mounts. Found out that we had to use the following code to match the speed working on a local file system
I found out that if I used rgba(100%,100%,100%,75%) format it didn't work again. I had to use a float number for the alpha to get the proper alpha mask.
that is true, alpha values are specified in range 0-1, but the rest can be raw values 0-255 or percent values. That is just the way it is defined in IM
[The RGB color model is extended in this specification to include ‘alpha’ to allow specification of the opacity of a color. See simple alpha compositing for details. These examples all specify the same color:
Example(s):
em { color: rgb(255,0,0) } /* integer range 0 - 255 */
em { color: rgba(255,0,0,1) /* the same, with explicit opacity of 1 */
em { color: rgb(100%,0%,0%) } /* float range 0.0% - 100.0% */
em { color: rgba(100%,0%,0%,1) } /* the same, with explicit opacity of 1 */
The format of an RGBA value in the functional notation is ‘rgba(’ followed by a comma-separated list of three numerical values (either three integer values or three percentage values), followed by an <alphavalue>, followed by ‘)’. The integer value 255 corresponds to 100%, rgba(255,255,255,0.8) = rgba(100%,100%,100%,0.8). White space characters are allowed around the numerical values.
Implementations must clip the red, green, and blue components of RGBA color values to the device gamut according to the rules for the RGB color value composed of those components.
These examples specify new effects that are now possible with the new rgba() notation:
Example(s):
p { color: rgba(0,0,255,0.5) } /* semi-transparent solid blue */
p { color: rgba(100%, 50%, 0%, 0.1) } /* very transparent solid orange */