Support

Support is part of Event Gallery Extended.

Please get a subscription if you need support. Feel free to use the ticket system or the contact form for reporting defects or pre-sale questions. Make sure you're logged in in order to be able to create a new ticket.

For general information you can also jump to the manual.

Subscribe now!

#2619 Black background on png

Posted in ‘Event Gallery - General’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by sbluege on Friday, 24 March 2017 08:12 UTC

Genito
Hello I got a problem uploading certain images.

Whenever I upload an transparent .png file, it gets rendered with black background.

How to prevent this? Or in any case change background to different color?

Hope this can be solved.

- Mark

sbluege
Hi,

using PNG files as source images is already an edge case for Event Gallery. Using PNG files with transparent background is even worst. Out of the box you're out of luck. There is no option to configure this behavior differently. Keep in mind that all thumbnails are JPEG files. So the easiest way would be to upload JPEG files initially.

If you're able to do some coding this might help you too:

http://stackoverflow.com/questions/2611852/imagecreatefrompng-makes-a-black-background-instead-of-transparent

The file components\com_eventgallery\library\common\imageprocessor.php contains the line imagecreatefrompng(..) where you need to add some code to adjust the background color.

Genito
I guess tranparent .png's is a general problem all over when it comes to CMS systems from what I can gather.

And I'm afraid my line of work is more focused in the graphic design, rather than coding.
However I think you've pointed me in the right direction! Guess I'll give it a go thank you :)

sbluege
You're welcome :)