We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've just written a converting library to convert all the common image formats from/to.
https://github.com/jenstornell/php-image-converter free-open-source/php-image-converter#2
The pitfall of using it with this library is that I need to save the image two times, one for the format conversion and one for the resize.
That's because I can't create an image from a GD object. Here is a suggestion of how that could look like.
$image = ImageResize::createFromGD($gd_object); $image->scale(50); $image->save('image.jpg');
https://www.php.net/manual/en/function.imagejpeg.php https://www.php.net/manual/en/function.imagepng.php https://www.php.net/manual/en/function.imagewebp.php https://www.php.net/manual/en/function.imagegif.php
The text was updated successfully, but these errors were encountered:
According to the one of image functions, the $gd_object type is resource?
$gd_object
resource
I think we should consider following points if the author @adityapatadia will accept this feature request.
Sorry, something went wrong.
How about adding conversion functions to this library itself?
peter279k
No branches or pull requests
I've just written a converting library to convert all the common image formats from/to.
https://github.com/jenstornell/php-image-converter
free-open-source/php-image-converter#2
The pitfall of using it with this library is that I need to save the image two times, one for the format conversion and one for the resize.
That's because I can't create an image from a GD object. Here is a suggestion of how that could look like.
https://www.php.net/manual/en/function.imagejpeg.php
https://www.php.net/manual/en/function.imagepng.php
https://www.php.net/manual/en/function.imagewebp.php
https://www.php.net/manual/en/function.imagegif.php
The text was updated successfully, but these errors were encountered: