Reputation: 153
It works on Xampp localhost , but when I try it on my server, it doesnt.
require_once "lib/WideImage.php";
$img = WideImage::load('i/big.jpg');
$res = $img ->resize(400, 300);
$res->saveToFile("i/small.jpg");
Server version: 5.1.61-0ubuntu0.10.10.1
Gd is installed on the server.
Upvotes: 0
Views: 1731
Reputation: 12535
After a little research I found this:
WideImage is an object-oriented library for image manipulation. It requires PHP 5.2+ with GD2 extension.
But php version on your server is <5.2 Updating it will help you.
Maybe the problem is in permissions (you don't have permission to create new file).
Upvotes: 3