Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - flattley

Pages: [1] 2
1
Discussion & Troubleshooting / Gallery Update
« on: September 16, 2019, 02:20:23 AM »
Hi all,

Does anyone know if there will be an update anymore. I notices it hasn't been updated in 3 years and just wondered if it was dead in the water now.

Thanks

2
Discussion & Troubleshooting / Issue with EXIF
« on: January 13, 2017, 07:49:16 PM »
Has anyone else had a problem recently with EXIF data not being written to the database?

This has been running fine up until tonight and my EXIF data is not being written to the database since upgrading to 1.8

The info is there in the photo properties when I view it outside of the gallery.

-- EDIT --

I get the following error when trying to update the EXIF data:

Code: [Select]
DB Error: Bad SQL Query: UPDATE cwgal_images SET image_id = '29647',image_Make = 'Apple',image_Model = 'iPhone 7 Plus',image_ExposureTime = '1/1008 sec(s)',image_FNumber = 'F/1.8',image_ISOSpeedRatings = '32',image_DateTimeOriginal = '11.01.2017 12:10:41',image_ApertureValue = 'F/1.7',image_ExposureBiasValue = '0 EV',image_MeteringMode = 'Multi-Segment',image_Flash = 'Forced Light',image_FocalLength = '4 mm',image_WhiteBalance = 'Automatic',image_GPSLatitudeRef = 'North',image_GPSLatitude = 'North 50� 6' 35.99'' (50.109997222222)',image_GPSLongitudeRef = 'East',image_GPSLongitude = 'East 8� 40' 55.33'' (8.6820361111111)',image_GPSAltitude = '134.50165016502 metres above sea level' WHERE image_id = 29647
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '35.99'' (50.109997222222)',image_GPSLongitudeRef = 'East',image_GPSLongitude = '' at line 1
... EXIF UPDATE

I can't find the file where this is pulling the code from and I am unsure how I would escape the ' in the Lat/Lng also

3
Installation, Update & Configuration / Re: Upgrading
« on: August 28, 2016, 11:59:00 PM »
Hi nobby,

Thanks for the reply.

It doesn't say anything about which files were modified - this is why I asked the question.

The forum update shows only 1 file updated. This is again why I asked.

I will overwrite the one file I guess.

I don't want to update and overwrite all my modded files

Chris

4
Installation, Update & Configuration / Upgrading
« on: August 28, 2016, 12:14:53 AM »
Saw that there was an upgrade and that only 1 file has been updated.

Is this really the case and would I just need to upload this file?

If not, how would I go about updating without losing mods to files?

Thanks

5
Installation, Update & Configuration / Template Error
« on: January 16, 2011, 05:17:43 PM »
Hi all,

I hope I am posting this in the right section.

I have migrated my gallery to a new host and when I try to view the gallery, I get the following error: Template Error: Couldn't open Template ./templates/Iceberg/media/.html

I can get into the admin section just fine and I have tried to set the template there.

It does this for any template. I have chmod'd the files. The template directories are there. It doesn't specify a file that may be the problem, so I am stumped as to how to fix this.

Any help would be greatly appreciated.

My site is: http://flattley.freehostingcloud.com/gallery/



Edit

I had to create a .html file with {header} in it and upload it to the media directory for it to work

6
Discussion & Troubleshooting / Re: Error_log File
« on: January 12, 2011, 07:02:50 PM »
In functions.php you have 327 { and you have 325 }. You are missing 2 closing braces.

Your job is to now find where they are missing from

Once you find them and add them you should be ok

7
Discussion & Troubleshooting / Re: Exif Information
« on: January 08, 2011, 05:19:23 PM »
OK V@no, thanks for your help anyway. I think I found the other exif mod and it seems to be what I am looking for

8
Discussion & Troubleshooting / Re: Exif Information
« on: January 08, 2011, 05:13:06 PM »
Would you suggest that I don't use the exif mod? Does 4images have a built in exif function without using a mod to get the exif data?

9
Discussion & Troubleshooting / Re: Exif Information
« on: January 08, 2011, 05:05:46 PM »
Hi V@no,

Thanks for your reply.

Have you changed any other files at all to display this. I tried adding it to the exif.php file and it isn't showing anything at all. The info is in the image properties when I view it on my computer. I have attached the image properties from the right click menu on the computer and also what it is displaying on the photo details on the gallery

This is what I have in the exif.php file

Code: [Select]
<?php

/*
4images EXIF MOD 
Version : 0.3
Date: 2003-01-17
By: fatman (fatman_li@yahoo.com.hk)

*/

// true: enable the field filter
// false: disable the field filter
define('EXIF_CONTROL'true);

// add the field name for show in exif section 
// remember the field name with the colon ":"
define('EXIF_FILTER'"
Model:
Orientation:
ExposureTime:
FNumber:
ISOSpeedRatings:
ExposureBiasValue:
MeteringMode:
Flash:
FocalLength:
ColorSpace:
FileSource:
GPSLatitutde:
Lon:
Alt:
"
);

function 
exif_filter_control() {
  return 
EXIF_CONTROL;
}

function 
exif_filter($name) {
  if (
strpos(EXIF_FILTER, ($name ":")) > 0) {
    return 
true;
  } else {
    return 
false;
  }
  
}



function 
exif_get_str_val($val) {
  
$val = (substr($val0strpos($val"/"))) / (substr($valstrpos($val"/") + 1));
  return 
$val;
}

function 
exif_parse_value($name$val) {
  switch(
$name) {
     case 
"Orientation"
       if(
$val==1$val "Normal";
       if(
$val==2$val "Mirrored";
       if(
$val==3$val "Upsidedown";
       if(
$val==4$val "Upsidedown Mirrored";
       if(
$val==5$val "90deg CW Mirrored";
       if(
$val==6$val "90deg CCW";
       if(
$val==7$val "90deg CCW Mirrored";
       if(
$val==8$val "90deg CW";
       break;
     case 
"ResolutionUnit"
       if(
$val==1$val "No Unit";
       if(
$val==2$val "Inch";
       if(
$val==3$val "Centimeter";
       break;
     case 
"YCbCrPositioning"
       if(
$val==1$val "Pixel Array";
       if(
$val==2$val "Datum Point";
       break;
     case 
"ExposureTime"
       
$val $val " seconds";
       break;
     case 
"FNumber"
       
$val "F/" exif_get_str_val($val);
       break;
     case 
"ExposureProgram"
       if(
$val==1$val "Manual control";
       if(
$val==2$val "Program normal";
       if(
$val==3$val "Aperture priority";
       if(
$val==4$val "Shutter priority";
       if(
$val==5$val "Program creative(slow program)";
       if(
$val==6$val "Program action(high-speed program)";
       if(
$val==7$val "Portrait mode";
       if(
$val==8$val "Landscape mode";
       break;       
     case 
"ExifVersion"
       
$val round($val 1002);
       break;
     case 
"ComponentsConfiguration"
       
$val bin2hex($val);
       
$val str_replace("01","Y",$val);
       
$val str_replace("02","Cb",$val);
       
$val str_replace("03","Cr",$val);
       
$val str_replace("04","R",$val);
       
$val str_replace("05","G",$val);
       
$val str_replace("06","B",$val);
       
$val str_replace("00","",$val);       
       break;
     case 
"CompressedBitsPerPixel"
       
$val exif_get_str_val($val);
       break;
     case 
"ShutterSpeedValue"
       
$val "1/" round(pow(2exif_get_str_val($val))) . " seconds";
       break;
     case 
"ApertureValue"
       
$val "F/" round(pow(sqrt(2), exif_get_str_val($val)),1);
       break;
     case 
"BrightnessValue "
       
$val exif_get_str_val($val);
       break;       
     case 
"ExposureBiasValue":
       if ((
substr($val0strpos($val"/"))) == "0") {
       
 $val "0 Step";
       } else {
       
 $val $val " Step";
       }
       break;
     case 
"MaxApertureValue"
       
$val "F/" round(pow(sqrt(2), exif_get_str_val($val)),1);
       break;
     case 
"SubjectDistance"
       
$val exif_get_str_val($val) . " M";
       break;       
     case 
"MeteringMode"
       if(
$val==0$val "Unknown";
       if(
$val==1$val "Average";
       if(
$val==2$val "Center Weighted Average";
       if(
$val==3$val "Spot";
       if(
$val==4$val "Multi-spot";
       if(
$val==5$val "Multi-segment";
       if(
$val==6$val "Partial";
       if(
$val==255$val "Other";       
       break;
     case 
"LightSource"
       if(
$val==0$val "Unknown";
       if(
$val==1$val "Daylight";
       if(
$val==2$val "Fluorescent";
       if(
$val==3$val "Tungsten";
       if(
$val==10$val "Flash";
       if(
$val==17$val "Standard light A";
       if(
$val==18$val "Standard light B";
       if(
$val==19$val "Standard light C";
       if(
$val==20$val "D55";
       if(
$val==21$val "D65";
       if(
$val==22$val "D75";
       if(
$val==255$val "Other";
       break;       
     case 
"Flash"
       if(
$val==0$val "No Flash";
       if(
$val==1$val "Flash fired";
       if(
$val==5$val "Flash fired but strobe return light not detected";
       if(
$val==7$val "Flash fired and strobe return light detected";
       if(
$val==9$val "Undefined"
       break;
     case 
"FocalLength"
       
$val exif_get_str_val($val) . " mm";
       break; 
     case 
"FlashPixVersion"
       
$val round($val 1002);
       break;
     case 
"ColorSpace"
       if(
$val==1$val "sRGB";
       if(
$val=='65535'$val "Uncalibrated";
       break;
     case 
"FocalPlaneXResolution"
       
$val round(exif_get_str_val($val));
       break; 
     case 
"FocalPlaneYResolution"
       
$val round(exif_get_str_val($val));
       break;                       
     case 
"FocalPlaneResolutionUnit"
       if(
$val==1$val "No Unit";
       if(
$val==2$val "Inch";
       if(
$val==3$val "Centimeter";
       break;
     case 
"SensingMethod"
       if(
$val==2$val "1 chip color area sensor";
       break;
     case 
"FileSource":
       
$val bin2hex($val);
       if(
$val==0x03$val "Digital still camera";      
       break;
     case 
"FileSource":
       
$val bin2hex($val);
       if(
$val==0x01$val "Directly photographed";      
       break;
     case 
"GPSLatitude":
       
$val exif_get_str_val($val);
       break;



     }
     
  return 
$val;
}
?>


10
Discussion & Troubleshooting / Re: Exif Information
« on: January 08, 2011, 04:32:25 PM »
Hi V@no,

This is the exif function from the functions.php file

Code: [Select]

function get_exif_info($exif) {
  $exif_match = array();
  $exif_match['Make'] = "make";
  $exif_match['Model'] = "model";
  $exif_match['DateTimeOriginal'] = "datetime";
  $exif_match['ISOSpeedRatings'] = "isospeed";
  $exif_match['ExposureTime'] = "exposure";
  $exif_match['FNumber'] = "aperture";
  $exif_match['FocalLength'] = "focallen";

  $exif_match['GPSLatitude'] = "GPSLatitude";
  $exif_match['GPSLatitudeRef'] = "GPSLatitudeRef";
  $exif_match['GPSLongitude'] = "GPSLongitude";
  $exif_match['GPSLongitudeRef'] = "GPSLongitudeRef";
  $exif_match['GPSAltitude'] = "GPSAltitude";




  $exif_array = array();
  if (is_array($exif)) {
    foreach ($exif as $key => $val) {
      if (isset($exif_match[$key])) {
        $exif_info = $val;
        if ($key == "DateTimeOriginal") {
          $exif_array[$exif_match[$key]] = preg_replace("/([0-9]{4}):([0-9]{2}):([0-9]{2})/", "\\3.\\2.\\1", $exif_info);
        }
        elseif ( $key == "ExposureTime" ) {
            $ExposureTime = explode("/", $exif_info);
            if ( $ExposureTime[0] == 1 && $ExposureTime[1] == 1 ){
                $exif_array[$exif_match[$key]] = $ExposureTime[1]." sec(s)";
            } elseif ( $ExposureTime[0] == 1 ) {
                $exif_array[$exif_match[$key]] = "1/".($ExposureTime[1] * $ExposureTime[0])." sec(s)";
            } elseif ( $ExposureTime[1] > 1 ) {
                $exif_array[$exif_match[$key]] = ($ExposureTime[0]/$ExposureTime[1])." sec(s)";
            } elseif( $ExposureTime[1] == 1 ) {
                $exif_array[$exif_match[$key]] = ($ExposureTime[0] * $ExposureTime[1])." sec(s)";
            }
        }
        elseif ($key == "FNumber") {
 $aperture = explode("/", $exif_info);
          $exif_array[$exif_match[$key]] = "F/" . ($aperture[0] / $aperture[1]);
        }
        elseif ($key == "FocalLength") {
 $focalLen = explode("/", $exif_info);
          $exif_array[$exif_match[$key]] = ($focalLen[0] / $focalLen[1]) . "mm";
        }

// GPS EXIF START - Changes by Erik Groennerud - www.koelschwasser.de 8.2007
        elseif ($key == "GPSLatitudeRef") {
  if ($exif_info == "N") {
  $GPSLatitudeRef = "North";
  $GPSLatfaktor = 1;
  } else {
  $GPSLatitudeRef = "South";
  $GPSLatfaktor = -1;
  }
 
        }
        elseif ($key == "GPSLongitudeRef") {
  if ($exif_info == "E") {
  $GPSLongitudeRef = "East";
  $GPSLongfaktor = 1;
  } else {
  $GPSLongitudeRef = "West";
  $GPSLongfaktor = -1;
  }
}
        elseif ($key == "GPSLatitude") {
         $GPSLatitude_h = explode("/", $exif_info[0]);
         $GPSLatitude_m = explode("/", $exif_info[1]);
         $GPSLatitude_s = explode("/", $exif_info[2]);
        
         $GPSLat_h = $GPSLatitude_h[0] / $GPSLatitude_h[1];
         $GPSLat_m = $GPSLatitude_m[0] / $GPSLatitude_m[1];
         $GPSLat_s = $GPSLatitude_s[0] / $GPSLatitude_s[1];
        
         $GPSLatGrad = $GPSLatfaktor * ($GPSLat_h + ($GPSLat_m + ($GPSLat_s / 60))/60);
        
         $exif_array[$exif_match[$key]] =  $GPSLatitudeRef . " " .$GPSLat_h . "° ". $GPSLat_m . "' " . $GPSLat_s . "'' ($GPSLatGrad)";
        }
        elseif ($key == "GPSLongitude") {
         $GPSLongitude_h = explode("/", $exif_info[0]);
         $GPSLongitude_m = explode("/", $exif_info[1]);
         $GPSLongitude_s = explode("/", $exif_info[2]);
        
         $GPSLong_h = $GPSLongitude_h[0] / $GPSLongitude_h[1];
         $GPSLong_m = $GPSLongitude_m[0] / $GPSLongitude_m[1];
         $GPSLong_s = $GPSLongitude_s[0] / $GPSLongitude_s[1];
        
         $GPSLongGrad = $GPSLatfaktor * ($GPSLong_h + ($GPSLong_m + ($GPSLong_s / 60))/60);
        
         $exif_array[$exif_match[$key]] =  $GPSLongitudeRef . " " . $GPSLong_h . "° ". $GPSLong_m . "' " . $GPSLong_s . "'' ($GPSLongGrad)";
        }
        elseif ($key == "GPSAltitude") {
    $GPSAltitude = explode("/", $exif_info);
          $exif_array[$exif_match[$key]] = ($GPSAltitude[0] / $GPSAltitude[1]) . " Metres";
        }  
// GPS EXIF ENDE



        else {
          $exif_array[$exif_match[$key]] = $exif_info;
        }
      }
    }
  }
  return $exif_array;
}


11
Discussion & Troubleshooting / Exif Information
« on: January 08, 2011, 02:06:08 AM »
Hi all, I am currently using 4images version 1.7.9 and I am trying to get the exif information to be shown.

I have read a couple of the tutorials and plugins on how to do this. I can get most of the exif info shown, but the one I am having trouble with is the GPS Lat/Lon/Alt exif information.

I have modified the includes/functions.php, exif.php files and I can't get it to show the GPS exif info at all.

This is what I have added to the includes/functions file:

Quote
 $exif_match['GPSLatitude'] = "GPSLatitude";
  $exif_match['GPSLatitudeRef'] = "GPSLatitudeRef";
  $exif_match['GPSLongitude'] = "GPSLongitude";
  $exif_match['GPSLongitudeRef'] = "GPSLongitudeRef";
  $exif_match['GPSAltitude'] = "GPSAltitude";

...

elseif ($key == "GPSLatitudeRef") {
              if ($exif_info == "N") {
                 $GPSLatitudeRef = "North";
                 $GPSLatfaktor = 1;
                 } else {
                    $GPSLatitudeRef = "South";
                    $GPSLatfaktor = -1;
                 }
                 
        }
        elseif ($key == "GPSLongitudeRef") {
              if ($exif_info == "E") {
                 $GPSLongitudeRef = "East";
                 $GPSLongfaktor = 1;
                 } else {
                 $GPSLongitudeRef = "West";
                 $GPSLongfaktor = -1;
                 }
            }
        elseif ($key == "GPSLatitude") {
           $GPSLatitude_h = explode("/", $exif_info[0]);
           $GPSLatitude_m = explode("/", $exif_info[1]);
           $GPSLatitude_s = explode("/", $exif_info[2]);
           
           $GPSLat_h = $GPSLatitude_h[0] / $GPSLatitude_h[1];
           $GPSLat_m = $GPSLatitude_m[0] / $GPSLatitude_m[1];
           $GPSLat_s = $GPSLatitude_s[0] / $GPSLatitude_s[1];
           
           $GPSLatGrad = $GPSLatfaktor * ($GPSLat_h + ($GPSLat_m + ($GPSLat_s / 60))/60);
           
           $exif_array[$exif_match[$key]] =  $GPSLatitudeRef . " " .$GPSLat_h . "° ". $GPSLat_m . "' " . $GPSLat_s . "'' ($GPSLatGrad)";
        }
        elseif ($key == "GPSLongitude") {
           $GPSLongitude_h = explode("/", $exif_info[0]);
           $GPSLongitude_m = explode("/", $exif_info[1]);
           $GPSLongitude_s = explode("/", $exif_info[2]);
           
           $GPSLong_h = $GPSLongitude_h[0] / $GPSLongitude_h[1];
           $GPSLong_m = $GPSLongitude_m[0] / $GPSLongitude_m[1];
           $GPSLong_s = $GPSLongitude_s[0] / $GPSLongitude_s[1];
           
           $GPSLongGrad = $GPSLatfaktor * ($GPSLong_h + ($GPSLong_m + ($GPSLong_s / 60))/60);
           
           $exif_array[$exif_match[$key]] =  $GPSLongitudeRef . " " . $GPSLong_h . "° ". $GPSLong_m . "' " . $GPSLong_s . "'' ($GPSLongGrad)";
        }
        elseif ($key == "GPSAltitude") {
             $GPSAltitude = explode("/", $exif_info);
          $exif_array[$exif_match[$key]] = ($GPSAltitude[0] / $GPSAltitude[1]) . " Meter über NN";
        }  
I have also included a link to the exif.php file and this is the contents of that  file:

Quote
<?php

/*
   4images EXIF MOD
   Version : 0.3
   Date: 2003-01-17
   By: fatman (fatman_li@yahoo.com.hk)
   
*/

// true: enable the field filter
// false: disable the field filter
define('EXIF_CONTROL', true);

// add the field name for show in exif section
// remember the field name with the colon ":"
define('EXIF_FILTER', "
Model:
Orientation:
ExposureTime:
FNumber:
ISOSpeedRatings:
ExposureBiasValue:
MeteringMode:
Flash:
FocalLength:
ColorSpace:
FileSource:
//Below is self added
GPSLatitutde:
//End
");

function exif_filter_control() {
  return EXIF_CONTROL;
}

function exif_filter($name) {
  if (strpos(EXIF_FILTER, ($name . ":")) > 0) {
    return true;
  } else {
    return false;
  }
  
}   


function exif_get_str_val($val) {
  $val = (substr($val, 0, strpos($val, "/"))) / (substr($val, strpos($val, "/") + 1));
  return $val;
}

function exif_parse_value($name, $val) {
  switch($name) {
     case "Orientation":
       if($val==1) $val = "Normal";
       if($val==2) $val = "Mirrored";
       if($val==3) $val = "Upsidedown";
       if($val==4) $val = "Upsidedown Mirrored";
       if($val==5) $val = "90deg CW Mirrored";
       if($val==6) $val = "90deg CCW";
       if($val==7) $val = "90deg CCW Mirrored";
       if($val==8) $val = "90deg CW";
       break;
     case "ResolutionUnit":
       if($val==1) $val = "No Unit";
       if($val==2) $val = "Inch";
       if($val==3) $val = "Centimeter";
       break;
     case "YCbCrPositioning":
       if($val==1) $val = "Pixel Array";
       if($val==2) $val = "Datum Point";
       break;
     case "ExposureTime":
       $val = $val . " seconds";
       break;
     case "FNumber":
       $val = "F/" . exif_get_str_val($val);
       break;
     case "ExposureProgram":
       if($val==1) $val = "Manual control";
       if($val==2) $val = "Program normal";
       if($val==3) $val = "Aperture priority";
       if($val==4) $val = "Shutter priority";
       if($val==5) $val = "Program creative(slow program)";
       if($val==6) $val = "Program action(high-speed program)";
       if($val==7) $val = "Portrait mode";
       if($val==8) $val = "Landscape mode";
       break;      
     case "ExifVersion":
       $val = round($val / 100, 2);
       break;
     case "ComponentsConfiguration":
       $val = bin2hex($val);
       $val = str_replace("01","Y",$val);
       $val = str_replace("02","Cb",$val);
       $val = str_replace("03","Cr",$val);
       $val = str_replace("04","R",$val);
       $val = str_replace("05","G",$val);
       $val = str_replace("06","B",$val);
       $val = str_replace("00","",$val);      
       break;
     case "CompressedBitsPerPixel":
       $val = exif_get_str_val($val);
       break;
     case "ShutterSpeedValue":
       $val = "1/" . round(pow(2, exif_get_str_val($val))) . " seconds";
       break;
     case "ApertureValue":
       $val = "F/" . round(pow(sqrt(2), exif_get_str_val($val)),1);
       break;
     case "BrightnessValue ":
       $val = exif_get_str_val($val);
       break;      
     case "ExposureBiasValue":
       if ((substr($val, 0, strpos($val, "/"))) == "0") {
           $val = "0 Step";
       } else {
           $val = $val . " Step";
       }
       break;
     case "MaxApertureValue":
       $val = "F/" . round(pow(sqrt(2), exif_get_str_val($val)),1);
       break;
     case "SubjectDistance":
       $val = exif_get_str_val($val) . " M";
       break;      
     case "MeteringMode":
       if($val==0) $val = "Unknown";
       if($val==1) $val = "Average";
       if($val==2) $val = "Center Weighted Average";
       if($val==3) $val = "Spot";
       if($val==4) $val = "Multi-spot";
       if($val==5) $val = "Multi-segment";
       if($val==6) $val = "Partial";
       if($val==255) $val = "Other";      
       break;
     case "LightSource":
       if($val==0) $val = "Unknown";
       if($val==1) $val = "Daylight";
       if($val==2) $val = "Fluorescent";
       if($val==3) $val = "Tungsten";
       if($val==10) $val = "Flash";
       if($val==17) $val = "Standard light A";
       if($val==18) $val = "Standard light B";
       if($val==19) $val = "Standard light C";
       if($val==20) $val = "D55";
       if($val==21) $val = "D65";
       if($val==22) $val = "D75";
       if($val==255) $val = "Other";
       break;      
     case "Flash":
       if($val==0) $val = "No Flash";
       if($val==1) $val = "Flash fired";
       if($val==5) $val = "Flash fired but strobe return light not detected";
       if($val==7) $val = "Flash fired and strobe return light detected";
       if($val==9) $val = "Undefined";
       break;
     case "FocalLength":
       $val = exif_get_str_val($val) . " mm";
       break;
     case "FlashPixVersion":
       $val = round($val / 100, 2);
       break;
     case "ColorSpace":
       if($val==1) $val = "sRGB";
       if($val=='65535') $val = "Uncalibrated";
       break;
     case "FocalPlaneXResolution":
       $val = round(exif_get_str_val($val));
       break;
     case "FocalPlaneYResolution":
       $val = round(exif_get_str_val($val));
       break;                      
     case "FocalPlaneResolutionUnit":
       if($val==1) $val = "No Unit";
       if($val==2) $val = "Inch";
       if($val==3) $val = "Centimeter";
       break;
     case "SensingMethod":
       if($val==2) $val = "1 chip color area sensor";
       break;
     case "FileSource":
       $val = bin2hex($val);
       if($val==0x03) $val = "Digital still camera";      
       break;
     case "FileSource":
       $val = bin2hex($val);
       if($val==0x01) $val = "Directly photographed";      
       break;
//Below is self added
     case "GPSLatitude":
       $val = exif_get_str_val($val);
       break;
//End


     }
    
  return $val;
}
?>

Any help or pointers of where I may be going wrong is much appreciated.

The image properties include the GPS info

Cheers,

Chris

12
Discussion & Troubleshooting / ImageMagick
« on: September 26, 2010, 12:28:08 PM »
I hope I am posting in the right topic - apologies if I am not.

I have set ImageMagick to be the resizer of choice. I was given the path by my host as "/usr/bin/convert" and have put this in to the text box in the settings.

I have then gone to upload a picture and get the following errors:

Quote
Warning: system() has been disabled for security reasons in /home/theflatt/public_html/gallery/includes/image_utils.php on line 104

Warning: system() has been disabled for security reasons in /home/theflatt/public_html/gallery/includes/annotate.php on line 154

Warning: rename(img_0123.jpg,img_0123.jpg.shd) [function.rename]: No such file or directory in /home/theflatt/public_html/gallery/includes/annotate.php on line 12

Warning: system() has been disabled for security reasons in /home/theflatt/public_html/gallery/includes/annotate.php on line 161
Working on data/media/173/IMG_0123.JPG file
File renamed from IMG_0123.JPG to img_0123.jpg
Error creating thumbnail.
Error adding annotation in data/media/173/img_0123.jpg file.
Image added: IMG 0123

Any ideas on where I may be going wrong?

Many thanks,

Chris

13
Discussion & Troubleshooting / Auto resize/EXIF/Big folder
« on: September 24, 2010, 01:52:12 AM »
I am using the auto resize mod and notice that the EXIF info is lost. I tried to follow the 3 image size mod and can't get it to create the big folder and get the EXIF info from there. Any help would be most appreciated.

Chris

14
Discussion & Troubleshooting / Re: Using 4images on 2 servers
« on: September 18, 2010, 02:48:20 PM »
Cheers,

Where would I change the image path if I wanted to batch add?

15
Discussion & Troubleshooting / Using 4images on 2 servers
« on: September 18, 2010, 01:09:23 PM »
Hi,

I was wondering if 4images was able to use images stored on a different server and display them. I have a hosting account that doesn't provide much space, so I want to be able to use that to host 4images installation and then use the other host to store images.

Any help would be appreciated.

Cheers

Pages: [1] 2