Skip to content
New issue

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

[Feature Request] Optional magick class support? #132

Open
whotopia opened this issue Sep 27, 2024 · 0 comments
Open

[Feature Request] Optional magick class support? #132

whotopia opened this issue Sep 27, 2024 · 0 comments

Comments

@whotopia
Copy link

Feature request. I'm trying to get some software that uses Gregwar/Captcha working in an embedded Linux environment (OpenWRT) where the native php8-mod-gd library is not built with jpeg support. Can the code be enhanced so that, optionally, if there are no working gd functions, the library tries to do equivalent operations using Imagick class?

root@coolhost:/www/sms/lib/composer/vendor/gregwar/captcha/src/Gregwar/Captcha# php8-cli -r "var_dump(gd_info());"
array(15) {
  ["GD Version"]=>
  string(5) "2.3.3"
  ["FreeType Support"]=>
  bool(true)
  ["FreeType Linkage"]=>
  string(13) "with freetype"
  ["GIF Read Support"]=>
  bool(true)
  ["GIF Create Support"]=>
  bool(true)
  ["JPEG Support"]=>
  bool(false)
  ["PNG Support"]=>
  bool(false)
  ["WBMP Support"]=>
  bool(true)
  ["XPM Support"]=>
  bool(false)
  ["XBM Support"]=>
  bool(true)
  ["WebP Support"]=>
  bool(false)
  ["BMP Support"]=>
  bool(false)
  ["AVIF Support"]=>
  bool(false)
  ["TGA Read Support"]=>
  bool(false)
  ["JIS-mapped Japanese Font Support"]=>
  bool(false)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant