create a thumbnail from PNG file

Hi all

i'm using elgg to generate  thumbnail from my PNG file using this code


$thumbnail = get_resized_image_from_existing_file($file->getFilenameOnFilestore(), 60, 60, false);
        if ($thumbnail) {
            $thumb = new ElggFile();


            $file->thumbnail = $prefix."thumb".$filestorename;


but the output thumbnail is different to the source  PNG file sample there is no  transparence in the thumbail 


please any help


Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking