Warning: rename(): The second argument to copy() function cannot be a directory in /home/4/b/bilde/www/images/img2cache.php on line 334

Warning: rename(/tmp/Try_hph5XL,/home/4/b/bilde/www/files/originals/pellesdesign.no/2/): Success in /home/4/b/bilde/www/images/img2cache.php on line 334

Fatal error: Uncaught ImagickException: The path is a directory: /home/4/b/bilde/www/files/originals/pellesdesign.no/2/ in /home/4/b/bilde/www/images/img2cache.php:110 Stack trace: #0 /home/4/b/bilde/www/images/img2cache.php(110): Imagick->__construct('/home/4/b/bilde...') #1 /home/4/b/bilde/www/images/img2cache.php(359): Image->__construct(Object(Source)) #2 /home/4/b/bilde/www/images/pellesdesign.no/img2cache.php(1): include('/home/4/b/bilde...') #3 {main} thrown in /home/4/b/bilde/www/images/img2cache.php on line 110