php-image-converter icon indicating copy to clipboard operation
php-image-converter copied to clipboard

Method to convert to gd object and return that

Open jenstornell opened this issue 6 years ago • 3 comments

May be good when using together with resize libraries.

Maybe just set null as second argument to do that.

jenstornell avatar Apr 27 '19 04:04 jenstornell

Regarding WebP, there's this library, if you are interested in ways to improve stuff with your own, and Bjørn is very actively developing it.

Cheers! S1SYPHOS

S1SYPHOS avatar Apr 27 '19 07:04 S1SYPHOS

@S1SYPHOS Thanks! These repos are quite different with different advantages. His uses multiple files, multiple image modules and many options, but not that many image formats to convert to/from. Mine only uses GD and has a single file, but can convert a larger range of formats both from and to, but has only a few options.

I think I'm going to keep it to my own repo. Maybe I'll add some minor things to it, but it already feel like I'm done already. It does what it should, in below 50 lines of code.

jenstornell avatar Apr 28 '19 03:04 jenstornell

Wait with this issue until a resize library supports it. Else there will just be unused code for no reason.

jenstornell avatar Apr 30 '19 06:04 jenstornell