Quantcast
Channel: DreamFactory Forum - Latest topics
Viewing all articles
Browse latest Browse all 1523

PHP Script using gd with no result

$
0
0

@escriou wrote:

Hello,
I try to use gd to make a small image in a get post process but i don’t success
Something to do to use gd ?

     $thumb = imagecreatetruecolor(80, 100);

// list($new_width, $new_height) = getimagesize($thumb);

    $text_color = imagecolorallocate($thumb, 233, 14, 91);
    imagestring($thumb, 1, 5, 5,  'text to show', $text_color);

     $b64 = base64_encode($thumb);

     $record['bitmapdata'] = $b64;
     $content['resource'][$k] = $record;

Bitnami dreamfactory 2.12

Thanks for advices

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 1523

Trending Articles