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();
$thumb->setMimeType($_FILES['upload']['type']);
$thumb->setFilename($prefix."thumb".$filestorename);
$thumb->open("write");
$thumb->write($thumbnail);
$thumb->close();
$file->thumbnail = $prefix."thumb".$filestorename;
unset($thumbnail);
}
-------------------------------------------------------------
but the output thumbnail is different to the source PNG file sample there is no transparence in the thumbail
please any help
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Paweł Sroka@srokap
Paweł Sroka - 0 likes
- bouguima@bouguima001
bouguima - 0 likes
You must log in to post replies.Elgg version? I thought we merged transparency handling long time ago in 1.8 branch.
18.16