When i thumbnail a transparent background image it gets displayed as a image with white background. I want the thumbnailed image also to be transparent. How can i achieve this through my code? 'productImage' is the actual image which is thumbnailed.
Okay.. Well I can see in that both are supported. Try and remove the Compression parameter. compression is for jpegs only, so maybe that could be the cause :-)
Even after removing the compression parameter it appears with white background.. i added an attribute BgColor=black and it appears transparent after that but with dirty black border.. the original image is around 130kb and the thumb version comes around 4 kb.. is there something i can do using imaggen ??
White background on Image Thumbnail
When i thumbnail a transparent background image it gets displayed as a image with white background. I want the thumbnailed image also to be transparent. How can i achieve this through my code? 'productImage' is the actual image which is thumbnailed.
<xsl:attribute name="src">
<
xsl:text>/ImageGen.ashx?image=</xsl:text>
<
xsl:value-of select="umbraco.library:ReplaceLineBreaks(productImage)"/>
<
xsl:text>&width=90</xsl:text><xsl:text>&compression=95</xsl:text><xsl:text>&Transparent=true</xsl:text>
</
xsl:attribute>
Are you using png's or gifs? :-)
Hi Peter,
i am using gifs ..
Okay.. Well I can see in that both are supported. Try and remove the Compression parameter. compression is for jpegs only, so maybe that could be the cause :-)
Even after removing the compression parameter it appears with white background.. i added an attribute BgColor=black and it appears transparent after that but with dirty black border.. the original image is around 130kb and the thumb version comes around 4 kb.. is there something i can do using imaggen ??
with white background:
after using bgcoor=black:
is working on a reply...