Open thiagopr opened 8 years ago
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" notifications@github.com Enviada em: 30/04/2016 14:58 Para: "Gregwar/Image" Image@noreply.github.com Cc: "Thiago Oliveira" thiagopr.oliveira@gmail.com; "Author" author@noreply.github.com 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));
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!