Ignore:
Timestamp:
Sep 14, 2010, 7:46:58 PM (14 years ago)
Author:
grum
Message:

Using metadata on HD picture (fix bug and forgotten files), release 0.5.1
bug:1846

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AMetaData/amd_pip.class.inc.php

    r6891 r6920  
    6767    $this->pictureProperties['id']=$page['image_id'];
    6868
    69     $sql="SELECT ti.path, tai.analyzed FROM ".IMAGES_TABLE." ti
     69    $sql="SELECT ti.path, tai.analyzed, ti.has_high FROM ".IMAGES_TABLE." ti
    7070            LEFT JOIN ".$this->tables['images']." tai ON tai.imageId = ti.id
    7171          WHERE ti.id=".$page['image_id'].";";
     
    7373    if($result)
    7474    {
     75      $hasHigh='';
    7576      while($row=pwg_db_fetch_assoc($result))
    7677      {
    7778        $filename=$row['path'];
     79        $hasHigh=$row['has_high'];
    7880        $this->pictureProperties['analyzed']=$row['analyzed'];
    7981      }
    8082      $filename=$path."/".$filename;
    81     }
     83
     84      if($hasHigh==='true' and $this->config['amd_UseMetaFromHD']=='y')
     85      {
     86        $filename=dirname($filename)."/pwg_high/".basename($filename);
     87      }
     88    }
     89
     90
    8291
    8392    $this->jpegMD->load(
Note: See TracChangeset for help on using the changeset viewer.