1. Kunstwerk The New King's Boy

    Peter Colstee

    1. Peter Colstee
    2. The New King's Boy
    3. 18-03-2016
    4. 70 x 90
    • Kunstwerk 2013

      Ed Luijten

      1. Ed Luijten
      2. 2013
      3. 28-11-2013
      4. 32 x 40
      • Kunstwerk Zonder titel

        Eveline Braak

        1. Eveline Braak
        2. Zonder titel
        3. 04-11-2011
        4. 60 x 25
        • Kunstwerk women

          Debora de Jong

          1. Debora de Jong
          2. women
          3. 11-01-2011
          4. 40 x 30
          • Kunstwerk verbeelding

            Margriet Reinalda

            1. Margriet Reinalda
            2. verbeelding
            3. 27-08-2011
            4.  
            • Kunstwerk Op de bodem

              Sofia Ramselaar

              1. Sofia Ramselaar
              2. Op de bodem
              3. 26-11-2016
              4. 93 x 60
              • Kunstwerk Binocular Disparity of Death

                Maite Kragl

                1. Maite Kragl
                2. Binocular Disparity of Death
                3. 14-10-2011
                4.  
                • Kunstwerk zakkendragershuisje

                  Dingeman van Zanten

                  1. Dingeman van Zanten
                  2. zakkendragershuisje
                  3. 28-12-2015
                  4. 70 x 50
                  • Kunstwerk Stilleven I

                    Dominique Ebbeng

                    1. Dominique Ebbeng
                    2. Stilleven I
                    3. 08-09-2011
                    4. 135 x 150
                    • Kunstwerk show

                      Wedad Thamer

                      1. Wedad Thamer
                      2. show
                      3. 29-11-2010
                      4. 80 x 80
                      • Kunstwerk Zeilen op het Slotermeer

                        Winnifred Bastian

                        1. Winnifred Bastian
                        2. Zeilen op het Slotermeer
                        3. 04-12-2013
                        4. 32 x 26
                        • Kunstwerk lijnenspel

                          jan bakker

                          1. jan bakker
                          2. lijnenspel
                          3. 15-06-2018
                          4. 20 x 47
                          • Kunstwerk Tegenstroom

                            Bianca van Baast

                            1. Bianca van Baast
                            2. Tegenstroom
                            3. 20-06-2006
                            4. 120 x 95
                            • Kunstwerk Oh Grandaunt, I have to souse the decadent fade!

                              Maite Kragl

                              1. Maite Kragl
                              2. Oh Grandaunt, I have to souse the decadent fade!
                              3. 14-10-2011
                              4.  
                              • Kunstwerk Je bent er niet

                                Elsbeth Ciesluk

                                1. Elsbeth Ciesluk
                                2. Je bent er niet
                                3. 22-07-2010
                                4. 200 x 350
                                • Kunstwerk Stilleven in landschap: Thonet-stoelen

                                  sven hoekstra

                                  1. sven hoekstra
                                  2. Stilleven in landschap: Thonet-stoelen
                                  3. 19-01-2011
                                  4. 95 x 60
                                  • Kunstwerk woman in bluesky2

                                    Debora de Jong

                                    1. Debora de Jong
                                    2. woman in bluesky2
                                    3. 11-01-2011
                                    4. 50 x 70
                                    • Kunstwerk Serious Life II, Without you

                                      Mariette van der Meer

                                      1. Mariette van der Meer
                                      2. Serious Life II, Without you
                                      3. 23-02-2015
                                      4. 65 x 50
                                      • Kunstwerk gloriosa

                                        Eugenie Dammer

                                        1. Eugenie Dammer
                                        2. gloriosa
                                        3. 17-11-2011
                                        4. 58 x 76
                                        • Kunstwerk Recht Evenredig

                                          Guido van der Linden

                                          1. Guido van der Linden
                                          2. Recht Evenredig
                                          3. 05-09-2011
                                          4. 8 x 21
                                          • Kunstwerk resonantie

                                            Chiel Janssen

                                            1. Chiel Janssen
                                            2. resonantie
                                            3. 16-05-2010
                                            4. 420 x 150
                                            • Kunstwerk -Schedel en Wesp-

                                              Phil Bloom

                                              1. Phil Bloom
                                              2. -Schedel en Wesp-
                                              3. 18-12-2013
                                              4. 35 x 25
                                              • Kunstwerk Oh Grandaunt, I have to souse the decadent fade!

                                                Maite Kragl

                                                1. Maite Kragl
                                                2. Oh Grandaunt, I have to souse the decadent fade!
                                                3. 14-10-2011
                                                4.  
                                                • Kunstwerk Etude

                                                  Mariëlle van Deursen

                                                  1. Mariëlle van Deursen
                                                  2. Etude
                                                  3. 30-07-2011
                                                  4. 36 x 165
                                                  • Kunstwerk verbeelding

                                                    Margriet Reinalda

                                                    1. Margriet Reinalda
                                                    2. verbeelding
                                                    3. 26-08-2011
                                                    4.  
                                                    • Kunstwerk verbeelding

                                                      Margriet Reinalda

                                                      1. Margriet Reinalda
                                                      2. verbeelding
                                                      3. 27-08-2011
                                                      4.  
                                                      • Kunstwerk Espacio BxJ (techo 1383-1572).

                                                        Maria Jose Ramirez Ramirez

                                                        1. Maria Jose Ramirez Ramirez
                                                        2. Espacio BxJ (techo 1383-1572).
                                                        3. 13-12-2018
                                                        4. 40 x 90
                                                        • Kunstwerk Andere Umstände

                                                          Kirsten Wilmink

                                                          1. Kirsten Wilmink
                                                          2. Andere Umstände
                                                          3. 31-08-2010
                                                          4.  
                                                          • Kunstwerk r'evolution 2

                                                            Daniella Wesseling

                                                            1. Daniella Wesseling
                                                            2. r'evolution 2
                                                            3. 24-10-2011
                                                            4. 100 x 150
                                                            • Kunstwerk Woud momenten

                                                              Mariëlle van Deursen

                                                              1. Mariëlle van Deursen
                                                              2. Woud momenten
                                                              3. 30-07-2011
                                                              4. 42 x 59
                                                              • Kunstwerk  kroonluchter van petflessen

                                                                Gerdi Beks

                                                                1. Gerdi Beks
                                                                2. kroonluchter van petflessen
                                                                3. 23-12-2014
                                                                4. 130 x 250
                                                                • Kunstwerk De Voorproef

                                                                  Chiel Janssen

                                                                  1. Chiel Janssen
                                                                  2. De Voorproef
                                                                  3. 16-05-2010
                                                                  4. 150 x 150
                                                                  • Kunstwerk 'niets nieuws onder de zon'

                                                                    hildegard hamstra

                                                                    1. hildegard hamstra
                                                                    2. 'niets nieuws onder de zon'
                                                                    3. 24-08-2011
                                                                    4. 100 x 150
                                                                    • Kunstwerk Verbinding

                                                                      Femke van Dijk

                                                                      1. Femke van Dijk
                                                                      2. Verbinding
                                                                      3. 13-05-2012
                                                                      4. 120 x 150
                                                                      • Kunstwerk stilleven7

                                                                        Ed Luijten

                                                                        1. Ed Luijten
                                                                        2. stilleven7
                                                                        3. 13-12-2012
                                                                        4. 30 x 45
                                                                        • Kunstwerk Today's Fire Danger

                                                                          Eric van Boxtel

                                                                          1. Eric van Boxtel
                                                                          2. Today's Fire Danger
                                                                          3. 11-01-2014
                                                                          4. 120 x 120
                                                                          $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; } }