2

When I use some function like imagecreate() or imagecreatefromjpeg() the result that I get is an internal server error.

The code is the following:

<?php

$width = 520;
$height = 360;

$image = imagecreate($width, $height);

?>

The version I'm using is php 7.2. I've tried to install the following package:

apt-get install php7.2-gd

Thanks.

Ivan Beldad
  • 2,285
  • 2
  • 21
  • 33
aroabarberan
  • 157
  • 1
  • 2
  • 10

0 Answers0