\r
if (!file_exists($dest) || filemtime($dest) < filemtime($cover)) {\r
$it = new imageTools();\r
+ $ratio = $it->getW() / $it->getH();\r
+ $method = 'ratio';\r
+ if ($ratio > 3 || (1 / $ratio) > 3) {\r
+ $method = 'crop';\r
+ }\r
+\r
$it->loadImage($cover);\r
- $it->resize(130, 110, 'crop', true);\r
- $it->output('jpeg', $dest, 90);\r
+ $it->resize(141, 200, $method, true);\r
+\r
+ $it->output('jpeg', $dest, 100);\r
}\r
\r
cubeHTTP::relayFile($dest);\r
+\r
exit;\r
}\r
\r
global $standard;\r
global $meta;\r
\r
+ define('MINIMIZE_JS', false);\r
+ define('MINIMIZE_CSS',false);\r
+ define('JQUERY',false);\r
+\r
$args = cubePage::getArgs($args);\r
\r
$e = explode('_', $args[0]);\r
$webcompile = WEBROOT . '/fluidbook/compile/';\r
\r
$standard = 'XHTML 1.0 Transitional';\r
- $css[] = $webcompile . '/style.css';\r
- cubePage::swfaddress();\r
+ $css=$js=array();\r
+ $css[] = $webcompile . 'style.css';\r
+\r
// $fv = array('base' => WEBROOT . '/fluidbook/books/final/' . $e[0]);\r
$fv = array();\r
\r
+\r
+\r
+ cubePage::swfobject(2);\r
+ cubePage::swfaddress();\r
+ $js[] = $webcompile . 'fluidbook.js';\r
+\r
$res = '<html>';\r
$res .= '<head>';\r
$res .= '<title>' . $book->parametres->title . '</title>';\r
if ($book->parametres->facebook_description != '') {\r
$meta['og:description'] = $book->parametres->facebook_description;\r
}\r
- $meta['og:image'] = 'http://dev.ws.fluidbook.com/services/facebook_thumbnail?id=' . $book->book_id;\r
+ $meta['og:image'] = 'http://dev.ws.fluidbook.com/services/facebook_thumbnail?id=' . $book->book_id ;\r
}\r
\r
$res .= '</head>';\r