From: vincent@cubedesigners.com Date: Wed, 15 Dec 2010 16:51:57 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=afb38b9d078f83193a6aa846f68dc53b07a57273;p=cubeextranet.git --- diff --git a/inc/ws/Controlleur/class.ws.services.php b/inc/ws/Controlleur/class.ws.services.php index e55e10c0a..e4922e04a 100644 --- a/inc/ws/Controlleur/class.ws.services.php +++ b/inc/ws/Controlleur/class.ws.services.php @@ -75,12 +75,20 @@ class wsServices extends cubeFlashGateway { if (!file_exists($dest) || filemtime($dest) < filemtime($cover)) { $it = new imageTools(); + $ratio = $it->getW() / $it->getH(); + $method = 'ratio'; + if ($ratio > 3 || (1 / $ratio) > 3) { + $method = 'crop'; + } + $it->loadImage($cover); - $it->resize(130, 110, 'crop', true); - $it->output('jpeg', $dest, 90); + $it->resize(141, 200, $method, true); + + $it->output('jpeg', $dest, 100); } cubeHTTP::relayFile($dest); + exit; } diff --git a/inc/ws/Controlleur/class.ws.url.php b/inc/ws/Controlleur/class.ws.url.php index 943e09eda..f9c93616e 100644 --- a/inc/ws/Controlleur/class.ws.url.php +++ b/inc/ws/Controlleur/class.ws.url.php @@ -127,6 +127,10 @@ html{height:100%}' . "\n"; global $standard; global $meta; + define('MINIMIZE_JS', false); + define('MINIMIZE_CSS',false); + define('JQUERY',false); + $args = cubePage::getArgs($args); $e = explode('_', $args[0]); @@ -151,11 +155,18 @@ html{height:100%}' . "\n"; $webcompile = WEBROOT . '/fluidbook/compile/'; $standard = 'XHTML 1.0 Transitional'; - $css[] = $webcompile . '/style.css'; - cubePage::swfaddress(); + $css=$js=array(); + $css[] = $webcompile . 'style.css'; + // $fv = array('base' => WEBROOT . '/fluidbook/books/final/' . $e[0]); $fv = array(); + + + cubePage::swfobject(2); + cubePage::swfaddress(); + $js[] = $webcompile . 'fluidbook.js'; + $res = ''; $res .= ''; $res .= '' . $book->parametres->title . ''; @@ -165,7 +176,7 @@ html{height:100%}' . "\n"; if ($book->parametres->facebook_description != '') { $meta['og:description'] = $book->parametres->facebook_description; } - $meta['og:image'] = 'http://dev.ws.fluidbook.com/services/facebook_thumbnail?id=' . $book->book_id; + $meta['og:image'] = 'http://dev.ws.fluidbook.com/services/facebook_thumbnail?id=' . $book->book_id ; } $res .= '';