GIGJ.COM
welcome to my space
X
Search:  
Personal Injury | Languages | Soups | Photography | Email | Prepress | Exotic Locations | Computer Games | Related articles
Welcome to:gigj.com
NAVIGATION - HOME

Wrong EXIF info stored in DB...

Published by: admin 2009-01-08

  • Digital Dutch :: View topic - Arles 7.2 final version released::
    1 post - Last post: Aug 17, 2007This information used to be stored in the Arles database. Titles were sometimes not added if images contained erronious EXIF data.
    http://www.arlesforum.com/viewtopic.php?t=2730
    HOME
    Hi,

    when uploading photo's which are scanned and in which the only valid EXIF field is the camera model (set via an EXIF tool), I now always see when displaying with Simple:

    Mamiya RZ65 Pro II (this is good)
    0 sec
    N/A
    Flash: Fired

    the last three being bogus. It turns out that in include/functions_exif.php you test for "" and not for "N/A" which causes 0 sec and Flash: Fired.

    Can you please fix this.

    Cheers, Fons.


  • OK, so why can't you hack the files to make it behave like v1.5 ?

    Do you not know where to look or are you looking for some other information?


  • Thanks for the diff Fons, I'm just curious because if I remember correctly if a field doesn't exists in the exif the field is empty.

    Therefore I would like to see your photograph to determine if the exif perhaps contains "N/A" on those positions.


  • I think it looks just fine. ;) It's all personal preference. :)


  • I've hacked functions_exif.php so Simple theme looks like I had it in 1.5. I am happy. I just thought that you would like to have it look good out of the box, instead of leaving it as an "exercise to the user". -)

    -- Fons


  • Hi Dennis,

    the exif is empty (i.e. "") when it does not exist, but in functions_exif.php you set it, when empty, to "N/A" and later you test if the value is "".

    For a photo with empty exif fields see:
    http://fons.rademakers.org/photoblog/index.php?showimage=6

    Cheers, Fons.


  • Hi,

    setting the values to "N/A" instead of "" looks ugly in the Simple theme, unless you switch to using the LANG versions, but that is again a bit too verbose for that theme.

    Send me the file I can test it.

    Cheers, Fons.


  • Fons, can you provide me with an image with the exif? I can look into it then.


  • No problem, have been doing that. But now the default Simple theme shows:

    This is my photo title. +comments

    Leica M6
    0 sec
    N/A
    Flash: Has Fired

    which looks not too cool. Note, the last three fields were not set in EXIF as the photo was scanned. In 1.5 it shows:

    This is my photo title. +comments

    Leica M6


    As non-existing EXIF fields were left "".

    Cheers, Fons.


  • It would be nice to just have "" instead of "N/A" in the EXIF tags so Simple just nicely does not display anything.
    Exif « zenphoto forums::
    30 postsThus I have most of the common EXIF information now stored as variables, which you should be able to take a then cache in the DB using the functions you're
    http://www.zenphoto.org/support/topic.php?id=1290
    HOME
    ExifTool FAQ::
    Dec 18, 2008 "ExifTool reports the wrong value or doesn't extract a tag", . EXIF: Most textual EXIF information is stored in ASCII format,
    http://www.sno.phy.queensu.ca/~phil/exiftool/faq.html
    HOME

    Cheers, Fons.


  • We can't code pixelpost to what looks best in a theme.

    You can hack your own files although we do not and will not support it.


  • We understand. Dennis, our "EXIF guy", will check it out and make the necessary changes. Thank you for your input.


  • To correct myself. The exif is ok in the DB, the handling on non-set fields in functions_exif.php is not correct.

    -- Fons


  • Hi Dennis,

    like I said in a follow up, the EXIF info in the db is ok. The problem is in functions_exif.php. Here is the diff that works for me (with Simple and other themes that use the LANG_ tags):



    --- functions_exif.php.org 2008-01-21 10:54:10.000000000 +0100
    +++ functions_exif.php 2008-01-21 11:03:40.000000000 +0100
    @@ -77,7 +77,7 @@
    } else {
    $exposure = $empty_exif;
    }
    - if(isset($exposure)&&$exposure != "")
    + if(isset($exposure)&&$exposure != "N/A")
    {
    $exposure = reduceExif($exposure);
    $exposure = "$exposure sec";
    @@ -123,10 +123,10 @@
    }

    if(isset($flash)&&$flash == "No Flash") $flash = "$lang_flash_not_fired";
    - elseif(isset($flash)&&$flash) $flash = "$lang_flash_fired";
    - else $flash = "$lang_flash_not_detected";
    + elseif(isset($flash)&&$flash != "N/A") $flash = "$lang_flash_fired";
    + else $flash = "";

    - if(isset($exposure)&&$exposure != "")
    + if(isset($exposure)&&$exposure != "N/A")
    {
    $exposure = "$exposure";
    $tpl = ereg_replace("",$exposure,$tpl);
    @@ -134,21 +134,21 @@
    else
    {
    $exposure = "$empty_exif";
    - $tpl = ereg_replace("",$exposure,$tpl);
    + $tpl = ereg_replace("","",$tpl);
    }

    $langexposure = "$lang_exposure $exposure";
    $tpl = ereg_replace("",$langexposure,$tpl);


    - if(isset($aperture)&&$aperture != "")
    + if(isset($aperture)&&$aperture != "N/A")
    {
    $tpl = ereg_replace("",$aperture,$tpl);
    }
    else
    {
    $aperture = "$empty_exif";
    - $tpl = ereg_replace("",$aperture,$tpl);
    + $tpl = ereg_replace("","",$tpl);
    }

    $langaperture = "$lang_aperture $aperture";
    @@ -226,7 +226,7 @@
    else
    {
    $flash = "$empty_exif";
    - $tpl = ereg_replace("",$flash,$tpl);
    + $tpl = ereg_replace("","",$tpl);
    }
    }
    return $tpl;
    @@ -252,4 +252,4 @@
    return $tpl;
    }

    -?>
    No newline at end of file
    +?>



    Cheers, Fons.


  • I checked the code today. If the exif field doesn't exists I replace the field with N/A.

    So if the key exists I get the value, but this still can be an empty value. So therefore I test again if the value is empty.

    However, for the exposure time the result is 0 (zero) so I should test for that. For the flash it is a bit more complicated, but testing for N/A is not going to work. I've fixed that too.

    Thanks for mentioning, let me know if you're willing to test the file so I can send it to you.





  • Nortel Unveils Vision, Strategy for Israeli High-Performance Net
    Busy Friday Leads to Strong Close for Net Stocks

    PRINT Add to favorites
    #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Wrong EXIF info stored in DB... , Please add it free.
  • help with a physic question
  • rate at which energy is transferred by heat through the glass
  • why does blowing over the surface of hot soup cool the soup
  • review question in modern physics please help thanks in advance
  • help physic question
  • how long does it take water to freeze
  • a 88 g ice cube at 0°c is placed in 726 g of water at 27°c what is the final temperature of the mixture
  • can someone help with physics homework
  • energy the environment homework problems
  • pendulum physics question
  • physics homework projectile motion a marble rolling with a speed of 20 cm s rolls off the edge of a table
  • can someone explain how center of mass plays a key role in this
  • i need help on a momentum question
  • if gravity does not exist then will time exist
  •  
  • a particular radioactive source produces 175 mrad of 2 mev gamma rays per hour at a distance of 1 0 m
  • when buying off a street corner how much should you pay for a sandwich bag full
  • nonconservative forces and kinetic friction
  • what are balls of energy
  • a physics question but not for hw just out of curiosity shining a light what happens to the photons
  • when do you send your christmas cards
  • fetish poll how many people out there have some kind of foot fetish
  • what is mass the measure of
  • are magnets affected by gravity
  • physics work question please help
  • physics questions involving voltage
  • velocity displacement
  • when you were a kid what time did you have to go to bed

  • About us -Site map -Advertisement -Jion us -Contact usExchange linksSponsor us
    Copyright© 2008 gigj.com All Rights Reserved
    Site made&Support support@gigj.com    E-mail: web@gigj.com