Try our conversational search powered by Generative AI!

Community ImageHandler.ashx turns transparent background to black

Vote:
 

Community gallery's transparent background images are displayed with black background when image is resized (from ImageHandler.ashx). When image is displayed in its real resolution without resizing everything is ok. How can I handle transaparent image resize?

 

#70140
Apr 12, 2013 13:27
Vote:
 

Not knowing how the ImageHandler.ashx works, but it's not an easy task to resize palette based and transparent images. You could use the popular framework ImageResizer.Net. You can also search StackOverflow for some answers http://stackoverflow.com/questions/30569/resize-transparent-images-using-c-sharp.

#70176
Apr 12, 2013 16:16
Vote:
 

Hello Garancha,

I think you should be able to change a setting called imgExtension in Web.config under episerver.community --> sites --> site --> imageGallery. If you change this to ".png" it should hopefully work better. I remember having the same problem a couple of years ago and I think this solved our problem.

/Martin

#70260
Apr 16, 2013 11:12
Vote:
 

Johan, ImageHandler.ashx functionality is out of the box for Community. Community costs about 200000NOK. Why should I have to rewrite or replace default image handler? It points out that Community is broken by desing. There is no value for money.

 

Martin, I allready changed format from .jpg to .png but it does not work.

#70340
Apr 17, 2013 14:26
This thread is locked and should be used for reference only. Please use the Legacy add-ons forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.