Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // $this->log('resizing to '.$new_h.' from w:'.$org_w.'/h:'.$org_h);
- //
- // $image = imagecreatefromstring(base64_decode(explode(',', $coverImage)[1]));
- ////
- // $image_p = imagecreatetruecolor(1920, 445);
- // imagecopyresampled($image_p, $image, 0, 0, 0, 0, $new_w, $new_h, $org_w, $org_h);
- // ob_start();
- //
- // $this->log(gettype($image_p));
- // imagepng($image_p);
- // $data = ob_get_contents();
- // ob_end_clean();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement