cordova - PHP GD2 Images not printing -


recently launched in store activation has take photo galaxy tab 2 , feeds our central server. done phonegap. on server use php , gd2 generate images. works on server , images created perfectly, problem comes when want print these photos out printer. using hiti photo printer, same issue occurs on our normal in house printer, on in house printer print photo comes out small no bigger 4mm x 2mm on page.

below code using generating jpeg on sever php:

//define image name $image_name = $this->genuid() .'.jpg';  //get image attributes list($curwidth, $curheight, $type, $attr) = getimagesize($files['my_picture']['tmp_name']);  //create image in today's directory $ni = imagecreatefromjpeg($files['my_picture']['tmp_name']); $np = imagecreatetruecolor($this->minimum_image_width, $this->minimum_image_height); $widthresizeratio = ($this->minimum_image_width / $curwidth); $newwidth = $this->minimum_image_width; $newheight = round(($curheight * $widthresizeratio),0); $offsetx = 0; $offsety = 180; imagecopyresampled($np, $ni, 0, 0, $offsetx, $offsety, $newwidth, $newheight, $curwidth, $curheight); imageinterlace($np, true); imagejpeg($np, $this->image_directory .'/'. $this->curdate .'/'. $image_name, 100); imagedestroy($ni); imagedestroy($np); 

your appreciated.

you said images on server created perfectly...i test claim more carefully. if indeed true, issue lies how send images printer or how printer handles images once receives them. in either situation don't think going here.....i wrong. gl.


Comments