eflorit / mosaic-generator

Mosaic generator using PHP, GD, MySQL
67 stars 21 forks source link

Not a Multiple #6

Open ghost opened 1 year ago

ghost commented 1 year ago

Iam get this error on PHP

: Got error 'PHP message: PHP Fatal error: Uncaught Exception: 1272 not a multiple of 1600 in /home/defaultwebsite/public/inc/Mosaic.php:69\nStack trace:\n#0 /home/defaultwebsite/public/inc/Mosaic.php(43): Mosaic->prepare()\n#1 /home/defaultwebsite/public/test.php(11): Mosaic->__construct('/home/defaultwe...', 1920, 1272, true)\n#2 {main}\n thrown in /home/defaultwebsite/public/inc/Mosaic.php on line 69'

My test file code:

include_once('inc/Mosaic.php');

ini_set('max_execution_time', '20000');
ini_set('memory_limit',       '1000M');

$input_filename = HD.'upload/6440167340712_foto_1.jpeg';

//function __construct($input_filename, $rows, $columns, $gen_thumbs = true) $out = new Mosaic($input_filename, 1920, 1272 , true);

print($out);

what to do? Thanks