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

Method png

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

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

($frame, $filename = false, $pixelPerPoint = 4, $outerFrame = 4,$saveandprint=FALSE)

Source from the content-addressed store, hash-verified

939
940 //----------------------------------------------------------------------
941 public static function png($frame, $filename = false, $pixelPerPoint = 4, $outerFrame = 4,$saveandprint=FALSE)
942 {
943 $image = self::image($frame, $pixelPerPoint, $outerFrame);
944
945 if ($filename === false) {
946 Header("Content-type: image/png");
947 ImagePng($image);
948 } else {
949 if($saveandprint===TRUE){
950 ImagePng($image, $filename);
951 header("Content-type: image/png");
952 ImagePng($image);
953 }else{
954 ImagePng($image, $filename);
955 }
956 }
957
958 ImageDestroy($image);
959 }
960
961 //----------------------------------------------------------------------
962 public static function jpg($frame, $filename = false, $pixelPerPoint = 8, $outerFrame = 4, $q = 85)

Callers

nothing calls this directly

Calls 2

imageMethod · 0.95
HeaderFunction · 0.50

Tested by

no test coverage detected