My english is not the best, but I hope it's understandable.
I am programming on a document-manageing-system. Now every entry on the database should be displayed in a table with a small thumbnail from the file. All the files are .tif files and are about 100MB up to 1.6GB. The problem is not to get the informations from database to table, the problem is generating the thumbnail. Everytime I use imagick in php, nothing behind the usage shows up in browser. I think this was not understandable, here an example (PHP-Source-Code):
Code: Select all
<?php
//this part shows up in browser
header('Content-type: image/jpg');
$image = new Imagick('test.jpg');
$image->thumbnailImage(100, 0);
echo $image;
//this part doesn't show up
echo "test after using imagick";
?>
Code: Select all
<body>
<img src="http://192.168.0.119/auftragsverwaltung_imagick/thumbnail.php" alt="http://192.168.0.119/auftragsverwaltung_imagick/thumbnail.php">
</body>
The system is ubuntu 14.10 and the ImageMagick version is 6.7.7-10. I've installed the Imagick-extension using
Code: Select all
sudo apt-get install php5-imagick
Did I do something wrong? It would be nice if someone could help me.
If there are some informations missing, just ask.
Thanks a lot, Niclas