Image png distort
png Image distort after open by fromData method.
use Gregwar\Image\Image;
require "vendor/autoload.php";
$content = file_get_contents('image-png.png');
echo '<img src="'.Image::fromData($content)->cacheFile('png').'"><br><br>';
Result:

original image:

Thanks!
Hello
Do you have the sale issue with ::open?
Hello, No, with ::open work fine, but i can't use ::open because of the image (content) is stored on database.
-----Mensagem Original----- De: "Grégoire Passault" [email protected] Enviada em: 30/04/2016 14:58 Para: "Gregwar/Image" [email protected] Cc: "Thiago Oliveira" [email protected]; "Author" [email protected] Assunto: Re: [Gregwar/Image] Image png distort (#113)
Hello Do you have the sale issue with ::open? — You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub
Hi all,
Any answer ? method fromData can't support transparent PNG ?
Thanks
When $content is the string (file_get_contents) of my transparent PNG Image:
Don't work:
$image = GregwarImage::fromData($content);
This work:
$image = GregwarImage::fromResource(imagecreatefromstring(content));