PHP(imagecreate) in Ubuntu - The image cannot be displayed because it contains errors.

Subscribers:
4,970
Published on ● Video Link: https://www.youtube.com/watch?v=D6QY-McvuRM



Duration: 5:05
4,046 views
4


The image cannot be displayed because it contains errors.

---

I'm trying to create a image (PNG) with PHP. But, get this error..
I searching how to fix in google, and finally get the solution ..

Just install PHP GD module .. GD is Graphic Draw .. So, to create image with PHP, you must using GD module ..

--- how to install GD --
sudo apt-get install php-gd

then restart your apache with :
sudo service apache2 restart




Other Videos By Ambar Hasbiyatmoko


2017-03-15Steam - your local dota 2 files conflict with the ones stored in the steam cloud.
2017-03-15PHP Trick - php roundup() like in excel
2017-03-13Phpmyadmin Centos 7 - login without a password is forbidden by configuration (see AllowNoPassword)
2017-03-06Phpmyadmin (php 5.6) - the mbstring extension and mysql|mysqli is missing in Ubuntu 16.04
2017-03-06Ubuntu 16.04 - Display image 360 degree (photospehere) on localhost with photosphere viewer
2017-03-03Phpmyadmin Ubuntu 16.04 - The mysqli|mysql extension is missing. Please check your PHP configuration
2017-03-02Ubuntu 16.04 - Failed to install google chrome (depends on libpango1 and libappindicator1)
2017-03-01Ubuntu - How to fix Failed to fetch...404 Not Found when apt-get update
2017-02-28Steam Error - An error occurred while updating Dota 2 (corrupt download)
2017-02-18Ubuntu 16.04 problem - Failure to download extra data files ttf-mscorefonts-installer
2017-02-05PHP(imagecreate) in Ubuntu - The image cannot be displayed because it contains errors.
2017-02-05SFTP Ubuntu - Oops! Something went wrong. Don't have permission to access the requested location
2017-01-25Gimp in Ubuntu - missing Toolbox GIMP
2017-01-23PHP Tricks - Backup DB postgre (.backup) in ubuntu 16.04
2017-01-19Screen Recorder + Webcam with Vokoscreen in Ubuntu 16.04
2017-01-16How to Convert coordinate (lat,lng) to TILE (x,y) in google maps
2017-01-12Codeigniter problem : No input file specified. when open the page
2017-01-12Ubuntu 16.04 problem after reinstall : low screen resolution and no internet connection
2017-01-09Bucardo : (Basic Tutorial) Postgresql Replication Master to master in 1 server Centos7
2017-01-09Error Install Flash Plugin in Ubuntu 16 04 : adobe flashplugin amd64 404 Not Found
2017-01-08Codeigniter - error when Redirect URL(Not Found) in Ubuntu 16.04



Tags:
image
error
create
php
png
gd
graphic
browser
ubuntu
linux
script
apache
imagecreate
module
display