Skip to content

[Feature Request] Optional magick class support? #132

@whotopia

Description

@whotopia

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)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions