add 'returned' flag in items
This commit is contained in:
parent
6bdbd2039b
commit
b349690996
4 changed files with 61 additions and 16 deletions
|
@ -12,6 +12,8 @@ $thumb = getcwd() . $_GET["id"];
|
|||
$img = str_replace("thumbnails", "staticimages", $thumb);
|
||||
if (is_file($img)) {
|
||||
try {
|
||||
if(!file_exists("thumbnails"))
|
||||
mkdir("thumbnails");
|
||||
$imagick = new Imagick($img);
|
||||
$imagick->setImageFormat('jpeg');
|
||||
$imagick->setImageCompression(Imagick::COMPRESSION_JPEG);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue