MCPcopy Create free account
hub / github.com/codemistic/Web-Development / jpg

Method jpg

text-to-qr/lib/phpqrcode/phpqrcode.php:962–974  ·  view source on GitHub ↗

----------------------------------------------------------------------

($frame, $filename = false, $pixelPerPoint = 8, $outerFrame = 4, $q = 85)

Source from the content-addressed store, hash-verified

960
961 //----------------------------------------------------------------------
962 public static function jpg($frame, $filename = false, $pixelPerPoint = 8, $outerFrame = 4, $q = 85)
963 {
964 $image = self::image($frame, $pixelPerPoint, $outerFrame);
965
966 if ($filename === false) {
967 Header("Content-type: image/jpeg");
968 ImageJpeg($image, null, $q);
969 } else {
970 ImageJpeg($image, $filename, $q);
971 }
972
973 ImageDestroy($image);
974 }
975
976 //----------------------------------------------------------------------
977 private static function image($frame, $pixelPerPoint = 4, $outerFrame = 4)

Callers

nothing calls this directly

Calls 2

imageMethod · 0.95
HeaderFunction · 0.50

Tested by

no test coverage detected