crispy-computing-machine / Winbinder-PHP8

WinBinder - The native Windows binding for PHP 8.3.2 x64
Other
2 stars 1 forks source link

GD #1

Closed crispy-computing-machine closed 3 months ago

crispy-computing-machine commented 3 months ago

@ZmotriN couldn't get your GD patch to apply during build process.

BUT, I did make a few changes that allow you to work with the Winbinder image functions and GD/Imagick:

# Create Winbinder image
$image = wb_create_image($width, $height, $dibbmi, $dibbits);
$imageData = wb_get_image_data();

# GD
$newImage = imagecreatefromstring($imageData);

# Imagick
$imagick = new \Imagick();
$imagick->readImageBlob($imageData);
ZmotriN commented 3 months ago

On the beginning, my patch was an independent extension but since GD2, I couldn't get it work... That why it's now a patch...

Can I see log of the compilation ? (Or the unsuccessful patch apply)

crispy-computing-machine commented 3 months ago

I think its a case of having all the relevant deps in the right directory, I just couldn't work it out :(

I am looking at your static builder and having a play with that now!

ZmotriN commented 3 months ago

Have fun and don't be shy if you have any questions, bugs to report or suggestions.

ZmotriN commented 3 months ago

For the moment, the static builder clone my fork of Winbinder but I'll change that today to point at yours.