1. Kunstwerk New existence

    Myra de Vries

    1. Myra de Vries
    2. New existence
    3. 20-01-2020
    4. 105 x 125
    5. € 2990
  2. Kunstwerk ukiyo-e

    Lenie de Kruiff-van Esse

    1. Lenie de Kruiff-van Esse
    2. ukiyo-e
    3. 26-11-2007
    4. 40 x 40
    5. € 600
  3. Kunstwerk Landschap met tulp

    Liesbeth Sevenhuijsen

    1. Liesbeth Sevenhuijsen
    2. Landschap met tulp
    3. 18-07-2011
    4. 80 x 40
    5. € 960
  4. Kunstwerk The Boys from Boston

    EUS Erlinde Ufkes Stephanus

    1. EUS Erlinde Ufkes Stephanus
    2. The Boys from Boston
    3. 22-02-2013
    4. 115 x 75
    5. € 1350
  5. Kunstwerk Bodi

    Franz Wilhelm

    1. Franz Wilhelm
    2. Bodi
    3. 19-05-2011
    4. 63 x 63
    5. € 1100
  6. Kunstwerk Mijmeringen

    Marian Steenbergen-Waanders

    1. Marian Steenbergen-Waanders
    2. Mijmeringen
    3. 22-02-2007
    4. 100 x 120
    5. € 1475
  7. Kunstwerk kraai met karkas

    Leslie Kamps

    1. Leslie Kamps
    2. kraai met karkas
    3. 04-05-2011
    4. 50 x 50
    5. € 750
  8. Kunstwerk spinoza

    Anke van Hout

    1. Anke van Hout
    2. spinoza
    3. 19-03-2007
    4. 102 x 100
    5. € 1500
  9. Kunstwerk Haven van Borkum

    Marike Stokker

    1. Marike Stokker
    2. Haven van Borkum
    3. 13-01-2016
    4. 50 x 60
    5. € 750
  10. Kunstwerk Rozentuin 2

    Marian Steenbergen-Waanders

    1. Marian Steenbergen-Waanders
    2. Rozentuin 2
    3. 24-04-2010
    4. 70 x 70
    5. € 800
  11. Kunstwerk The love boat.

    John Ory

    1. John Ory
    2. The love boat.
    3. 21-06-2012
    4. 50 x 60
    5. € 450
  12. Kunstwerk fun2

    Nicola Rozemeijer

    1. Nicola Rozemeijer
    2. fun2
    3. 04-10-2004
    4. 55 x 65
    5. € 1250
  13. Kunstwerk Bright spot

    Myra de Vries

    1. Myra de Vries
    2. Bright spot
    3. 21-04-2021
    4. 105 x 95
    5. € 2475
  14. Kunstwerk Twee Maaikes

    Dewy Baak

    1. Dewy Baak
    2. Twee Maaikes
    3. 20-11-2006
    4. 109 x 60
    5. € 1431
  15. Kunstwerk Birds are singing

    rik berkhout

    1. rik berkhout
    2. Birds are singing
    3. 01-12-2010
    4. 150 x 200
    5. € 4500
  16. Kunstwerk Sirene 2.

    Ine de Cock

    1. Ine de Cock
    2. Sirene 2.
    3. 21-02-2004
    4. 90 x 75
    5. € 850
  17. Kunstwerk Sexy baby

    TINKEBELL.

    1. TINKEBELL.
    2. Sexy baby
    3. 16-11-2005
    4. 80 x 70
    5. € 848
  18. Kunstwerk Dreiging

    Sofia Ramselaar

    1. Sofia Ramselaar
    2. Dreiging
    3. 28-11-2012
    4. 110 x 80
    5. € 1350
  19. Kunstwerk zonder titel

    Maaike Flissebaalje

    1. Maaike Flissebaalje
    2. zonder titel
    3. 31-05-2006
    4. 24 x 30
    5. € 225
  20. Kunstwerk relatie

    anna colenbrander

    1. anna colenbrander
    2. relatie
    3. 27-08-2005
    4. 90 x 70
    5. € 840
$width,'height'=>$height); } static function getResizedURL($id, $xsize, $ysize, $xtype, $ytype, $hash) { if (!self::checkHash($id, $xsize, $ysize, $xtype, $ytype, $hash)) Throw new Exception('Invalid Hash: ' . self::getHash($id, $xsize, $ysize, $xtype, $ytype)); $original = self::getOriginal($id); if(false == $original){ return self::$emptyImage; } $loc = self::getNewLocation(); $file = $loc . $id . '-' . $hash; if(!file_exists($file)) { if(!self::resizeImage($original, $file, $xsize, $ysize, $xtype, $ytype)) { throw new Exception("Resizing image failed"); } } return $file; } /* public function remove($id) { if ($id) { $url = executeQuery('SELECT url FROM images WHERE id = :id', array(':id' => $id))->fetchOne(); if (substr(strtolower($url),0,4)=='http') { return false; } else { unlink (self::getStorageLocation() .$url); } executeQuery('DELETE FROM images WHERE id = :id', array(':id' => $id)); } } */ private static function getOriginalLocation() { return dirname(__FILE__) . self::$originalLocation; } private static function getOriginalLocation2() { return dirname(__FILE__) . self::$originalLocation2; } private static function getOriginalArtistLoc() { return dirname(__FILE__) . self::$originalArtistLoc; } private static function getNewLocation() { return dirname(__FILE__) . self::$newLocation; } private static function getHash($id, $xsize, $ysize, $xtype, $ytype) { $hash = substr(md5($id . $xsize . $ysize . $xtype . $ytype . self::$seed), 0, 6); return $hash; } private static function checkHash($id, $xsize, $ysize, $xtype, $ytype, $hash) { return self::getHash($id, $xsize, $ysize, $xtype, $ytype) == $hash; } private static function resizeImage($src, $dst, $xsize, $ysize, $xtype, $ytype) { switch(image_type_to_mime_type(exif_imagetype($src))) { case "image/gif": return self::resizeGif($src, $dst, $xsize, $ysize, $xtype, $ytype); case "image/jpeg": return self::resizeJpg($src, $dst, $xsize, $ysize, $xtype, $ytype); case "image/png": return self::resizePng($src, $dst, $xsize, $ysize, $xtype, $ytype); } return false; } private static function resizeJpg($src, $dst, $xsize, $ysize, $xtype, $ytype) { $img = @imagecreatefromjpeg($src); //Surpress warning if(!$img) { return false; } list($width, $height) = @getimagesize($src); $newsize = self::getNewSize($width, $height, $xsize, $ysize, $xtype, $ytype); if ($newsize["height"] == $height && $newsize["width"] == $width) { copy($src, $dst); return true; } $img2 = imagecreatetruecolor($newsize['width'], $newsize['height']); if($newsize['width'] / $newsize['height'] > $width / $height) { $newWidth = $newsize['width']; $newHeight = ceil($newsize['width'] / $width * $height); $x = 0; $y = floor(($newsize['height'] - $newHeight) / 2); } else { $newWidth = ceil($newsize['height'] / $height * $width); $newHeight = $newsize['height']; $x = floor(($newsize['width'] - $newWidth) / 2); $y = 0; } imagecopyresampled($img2, $img, $x, $y, 0, 0, $newWidth, $newHeight, $width, $height); imagejpeg($img2, $dst, self::$jpegQuality); return true; } private static function resizePng($src, $dst, $xsize, $ysize, $xtype, $ytype) { $img = imagecreatefrompng($src); //Surpress warning if(!$img) { return false; } list($width, $height) = @getimagesize($src); $newsize = self::getNewSize($width, $height, $xsize, $ysize, $xtype, $ytype); if ($newsize["height"] == $height && $newsize["width"] == $width) { copy($src, $dst); return true; } $img2 = imagecreatetruecolor($newsize['width'], $newsize['height']); if($newsize['width'] / $newsize['height'] > $width / $height) { $newWidth = $newsize['width']; $newHeight = ceil($newsize['width'] / $width * $height); $x = 0; $y = floor(($newsize['height'] - $newHeight) / 2); } else { $newWidth = ceil($newsize['height'] / $height * $width); $newHeight = $newsize['height']; $x = floor(($newsize['width'] - $newWidth) / 2); $y = 0; } imagecopyresampled($img2, $img, $x, $y, 0, 0, $newWidth, $newHeight, $width, $height); imagepng($img2, $dst); return true; } private function resizeGif($src, $dst, $xsize, $ysize, $xtype, $ytype) { $img = imagecreatefromgif($src); if(!$img) { return false; } list($width, $height) = @getimagesize($src); $newsize = Image::getNewSize($width, $height, $xsize, $ysize, $xtype, $ytype); if ($newsize["height"] == $height && $newsize["width"] == $width) { copy($src, $dst); return true; } $img2 = imagecreatetruecolor($newsize['width'], $newsize['height']); if($newsize['width'] / $newsize['height'] > $width / $height) { $newWidth = $newsize['width']; $newHeight = ceil($newsize['width'] / $width * $height); $x = 0; $y = floor(($newsize['height'] - $newHeight) / 2); } else { $newWidth = ceil($newsize['height'] / $height * $width); $newHeight = $newsize['height']; $x = floor(($newsize['width'] - $newWidth) / 2); $y = 0; } $trnprt_indx = imagecolortransparent($img); if ($trnprt_indx >= 0) { imagetruecolortopalette($img2, true, 256); imagealphablending($img2, false); imagesavealpha($img2,true); $trnprt_color = imagecolorsforindex($img, $trnprt_indx); $trnprt_indx = imagecolorallocate($img2, $trnprt_color['red'], $trnprt_color['green'], $trnprt_color['blue']); imagefill($img2, 0, 0, $trnprt_indx); imagecolortransparent($img2, $trnprt_indx); } imagecopyresampled($img2, $img, $x, $y, 0, 0, $newWidth, $newHeight, $width, $height); imagegif($img2, $dst); return true; } private static function getNewSize($width, $height, $xsize, $ysize, $xtype, $ytype) { $newsize = array("width" => $width, "height" => $height); if($xtype == "exact" || ($xtype == "max" && $newsize['width'] > $xsize)) { $newsize['height'] = round($newsize['height'] * $xsize / $newsize['width']); $newsize['width'] = $xsize; } if($ytype == "exact" || ($ytype == "max" && $newsize['height'] > $ysize)) { if($xtype != "exact") { $newsize['width'] = round($newsize['width'] * $ysize / $newsize['height']); if($xtype == "max") { $newsize['width'] = min($newsize['width'], $xsize); } } $newsize['height'] = $ysize; } return $newsize; } private static function getOriginal($id) { // if ($id == 0) { // return dirname(__FILE__) . '/../public_html/img2011/site/empty.gif'; // } //$url = str_replace('aaserver01.autodisk.nl', 'AAFOTOS:#FOTOSAA0407@aaserver01.autodisk.nl', $url); if ( substr($id,0,1) == 'a' ) { return self::getArtistOriginal(substr($id,1)); } $loc = self::getOriginalLocation2(); $file = $loc . $id . '.jpg'; if (!is_file($file)) { $loc = self::getOriginalLocation(); $file = $loc . $id . '.jpg'; if (!is_file($file)) { //throw new Exception('No original'); $c = @file_get_contents('http://artolive.nl/img/works/originals/' . $id . '.jpg'); if (!($c)) { $c = @file_get_contents('http://artolive.nl/img/works/large/' . $id . '.jpg'); } if (!$c) return $file;// throw new Exception("Cannot fetch original($file)"); file_put_contents($file, $c); } return $file; } return $file; } public function doesImageExists($id) { return strlen($this->getOriginal($id)) > 1; } private static function getArtistOriginal($id) { $loc = self::getOriginalArtistLoc(); $file = $loc . $id . '.jpg.original'; if (!is_file($file)) { $loc = self::getOriginalArtistLoc(); $file = $loc . $id . '.jpg'; if (!is_file($file)) { //throw new Exception('No original'); $c = @file_get_contents('http://artolive.nl/img/works/artists/' . $id . '.jpg.original'); if (!($c)) { $c = @file_get_contents('http://artolive.nl/img/works/artists/' . $id . '.jpg'); } if (!$c) return $file;// throw new Exception("Cannot fetch original($file)"); file_put_contents($file, $c); } return $file; } return $file; } }