Changeset 13426
- Timestamp:
- Feb 28, 2012, 10:18:03 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/image.class.php
r13115 r13426 459 459 function write($destination_filepath) 460 460 { 461 // use 4:2:2 chroma subsampling (reduce file size by 20-30% with "almost" no human perception) 462 $this->image->setSamplingFactors( array(2,1) ); 461 463 return $this->image->writeImage($destination_filepath); 462 464 } -
trunk/i.php
r13171 r13426 520 520 } 521 521 522 if ($d_size[0]*$d_size[1] < 100000)522 if ($d_size[0]*$d_size[1] < 256000) 523 523 {// strip metadata for small images 524 524 $image->strip(); -
trunk/include/derivative_params.inc.php
r13038 r13426 210 210 { 211 211 $scale_size[0] = $this->ideal_size[0]; 212 $scale_size[1] = floor( $scale_size[1] / $ratio_w);212 $scale_size[1] = floor(1e-6 + $scale_size[1] / $ratio_w); 213 213 } 214 214 else 215 215 { 216 $scale_size[0] = floor( $scale_size[0] / $ratio_h);216 $scale_size[0] = floor(1e-6 + $scale_size[0] / $ratio_h); 217 217 $scale_size[1] = $this->ideal_size[1]; 218 218 } -
trunk/include/page_tail.php
r13234 r13426 67 67 68 68 //------------------------------------------------------------- mobile version 69 if ( get_device() != 'desktop')69 if ( !empty($conf['mobile_theme']) && get_device() != 'desktop') 70 70 { 71 71 $template->assign('TOGGLE_MOBILE_THEME_URL', -
trunk/themes/smartpocket/template/header.tpl
r13234 r13426 23 23 <title>{$GALLERY_TITLE} | {$PAGE_TITLE}</title>{else} 24 24 <title>{$PAGE_TITLE} | {$GALLERY_TITLE}</title>{/if} 25 <link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}{$themeconf.icon_dir}/favicon.ico">26 25 <link rel="start" title="{'Home'|@translate}" href="{$U_HOME}" > 27 26
Note: See TracChangeset
for help on using the changeset viewer.