Fatal error: Uncaught exception 'Nette\Utils\ImageException' with message 'Empty string or invalid image' in phar:///var/www/periodik/predplatne/lib/nette.phar/Utils/Image.php:108 Stack trace: #0 phar:///var/www/periodik/predplatne/lib/nette.phar/Utils/Callback.php(31): Nette\Utils\Image::Nette\Utils\{closure}('Empty string or...', 2) #1 [internal function]: Nette\Utils\Callback::Nette\Utils\{closure}(2, 'imagecreatefrom...', 'phar:///var/www...', 33, Array) #2 [internal function]: imagecreatefromstring('') #3 phar:///var/www/periodik/predplatne/lib/nette.phar/Utils/Callback.php(33): call_user_func_array('imagecreatefrom...', Array) #4 phar:///var/www/periodik/predplatne/lib/nette.phar/Utils/Image.php(108): Nette\Utils\Callback::invokeSafe('imagecreatefrom...', Array, Object(Closure)) #5 /var/www/periodik/predplatne/img/darek.php(73): Nette\Utils\Image::fromString(NULL) #6 {main} thrown in phar:///var/www/periodik/predplatne/lib/nette.phar/Utils/Image.php on line 108