Author Topic: [Mod] EXIF 0.3  (Read 348809 times)

0 Members and 1 Guest are viewing this topic.

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [Mod] EXIF 0.3
« Reply #150 on: January 21, 2006, 11:37:16 PM »
Quote

Hallo,

ich möchte den Kommentar (COMMENT) aus der Bild-Datei mit auslesen lassen.
Wie kann ich das mit dem Script realisieren?


Forgive me but ... would it be possible to post this request in english in order to have a better understanding ? ;)

Offline askwar

  • Pre-Newbie
  • Posts: 8
    • View Profile
    • My Homepage
Re: [Mod] EXIF 0.3
« Reply #151 on: January 22, 2006, 01:46:11 PM »
Hi.

Attached you can find a diff against the original 4images 1.7.1 files. It can be easily applied (and reverted) by running:

Code: [Select]
patch -p1 < mod_EXIF-0.3_4images-1.7.1.patch.txt
You can also find the patch online on my site at http://alexander.skwar.name/4images-patches/mod_EXIF-0.3_4images-1.7.1.patch

Hope you like it,
Alexander Skwar

Offline artpics

  • Full Member
  • ***
  • Posts: 173
    • View Profile
    • my site
Re: [Mod] EXIF 0.3
« Reply #152 on: January 25, 2006, 07:22:09 PM »
hello all was okay with my exif output until i changed my jpeg.html file, now i get this error on some images, anyone can help thanks

Warning: exif_read_data(artpictures__e6f2722.jpg): file to small (0) in /home/artpictu/public_html/gallery/includes/functions.php on line 429

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [Mod] EXIF 0.3
« Reply #153 on: January 25, 2006, 07:38:04 PM »
Quote

until i changed my jpeg.html file


In that case, could you post your codings from jpeg.html file ? ;)

Offline artpics

  • Full Member
  • ***
  • Posts: 173
    • View Profile
    • my site
Re: [Mod] EXIF 0.3
« Reply #154 on: January 25, 2006, 07:46:43 PM »
these were my changes

Code: [Select]
Replace
Code:
<img src="{media_src}" border="1" alt="{image_name}"{width_height} />

Code: [Select]
with:
Code:
<table style="background: url({media_src}) no-repeat; background-position: center center" cellpadding="0" cellspacing="0">
  <tr>
    <td><img src="{template_url}/images/spacer.gif" border="1" alt="{image_name}"{width_height} /></td>
  </tr>
</table>

thanks

RT

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [Mod] EXIF 0.3
« Reply #155 on: January 25, 2006, 07:49:24 PM »
Hum ... even I made this change in the past and I have to say it works perfectly.  8O

Strange. If you look into your web error logs, regarding this error message, what does it state ?

[ EDIT ]

I found it.

In your includes/functions.php file, replace this part :

Quote

exif_read_data(


with this one :

Code: [Select]

@exif_read_data(


;)

Offline artpics

  • Full Member
  • ***
  • Posts: 173
    • View Profile
    • my site
Re: [Mod] EXIF 0.3
« Reply #156 on: January 25, 2006, 08:03:55 PM »
Hum ... even I made this change in the past and I have to say it works perfectly.  8O

Strange. If you look into your web error logs, regarding this error message, what does it state ?

[ EDIT ]

I found it.

In your includes/functions.php file, replace this part :

Quote



exif_read_data(


with this one :

Code: [Select]

@exif_read_data(


;)


thanks all okay now i replaced
exif_read_data(

twice with @exif_read_data(

 :D

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [Mod] EXIF 0.3
« Reply #157 on: January 25, 2006, 08:05:45 PM »
Outstanding, thanks for reporting this. ;)

doubleflash

  • Guest
Re: [Mod] EXIF 0.3
« Reply #158 on: February 02, 2006, 09:36:34 PM »
hallo zusammen,

ich habe ein kleines problem bezüglich der exposuretime (belichtungszeit).
bei mir wird eine null zuviel angezeigt (siehe bild)

eigentlich müsste dies 1/50s heissen!

wer kann mir helfen?
danke

p.s habe mit zwei exif reader probiert und dasselbe ergebnis (eine null zuviel)


Damit kämfe ich auch noch. Allerdings nicht nur bei der Belichtungszeit sondern auch z.B. bei der Belichtungskorrektur. Gibt es eine Lösung? Ich konnte hier leider nichts dazu finden.
Danke für die Mühe.

Gruß Patrick

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: [Mod] EXIF 0.3
« Reply #159 on: February 07, 2006, 12:41:38 AM »

For Error Messaes like:
 
Code: [Select]
Warning: Unable to open 'http://www.***.de/test/1.jpg' in e:\www\4images\includes\functions.php on line 500

Beacuse of exif Function (exif_read_data) don't work on remote files,
this mod has to be modified in one line of funcitons.php

Search this line:
Code: [Select]
if ((($file_extension == "jpg") || ($file_extension == "jpeg")) &&($detailed_view)) {
and replace with:
Code: [Select]
if ((($file_extension == "jpg") || ($file_extension == "jpeg")) &&($detailed_view) && (!is_remote($media_file_name))) {

If it was already posted here,
then it would be good if it would also be modfied in the first post,
then its easier for people when installing the mod.
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] EXIF 0.3
« Reply #160 on: February 07, 2006, 05:47:40 AM »
it would be good if it would also be modfied in the first post,
then its easier for people when installing the mod.
Done ;)

Btw, the file extension could not match with actual image format, so its better do a little different check ;)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: [Mod] EXIF 0.3
« Reply #161 on: February 07, 2006, 09:07:21 PM »
Done ;)

thx

Btw, the file extension could not match with actual image format, so its better do a little different check ;)


its made,
cause the script is embedded in the functions.php and uses the 4images own image check.


Solution for wrong display of exposrure time

Cause it differs from camera modell the exposuretime is not correctly formated,
for values like 10/4000, which should be normally 1/400.
so i wrote a little modification.
you can use the modification also for other values, but then you have use the right variables.

Open includes/exif.php
search for:
Code: [Select]
$val = $val  ." seconds";replace it with:
Code: [Select]
       $exposure_time=explode("/",$val);

       if (($exposure_time[0]>9) AND (($exposure_time[1] % $exposure_time[0]) == 0)) {
             $exposure_time[1] = $exposure_time[1]/$exposure_time[0];
             $exposure_time[0] = $exposure_time[0]/$exposure_time[0];
        }
       $val = $exposure_time[0]."/".$exposure_time[1]." seconds";

then it should be displayed correctly.

Hope that helps.
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline om6acw

  • Full Member
  • ***
  • Posts: 187
    • View Profile
    • My Animal's World
Re: [Mod] EXIF 0.3
« Reply #162 on: February 08, 2006, 02:36:01 AM »
Do you have idea have I can change this ExposureBiasValue:  -2/6 Step like this -0.3???

I make that :)

Code: [Select]
case "ExposureBiasValue":
       if ((substr($val, 0, strpos($val, "/"))) == "0") {
           $val = "0 EV";
       } else {
           $valpieces = explode("/",$val);
           $val = round(($valpieces[0] / $valpieces[1]), 1);
           $val = $val . " EV";
       }
       break;

Offline stylawarz

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: [Mod] EXIF 0.3
« Reply #163 on: February 13, 2006, 09:51:24 PM »
hi all,

i have a problem that was announced here before.

Warning: exif_read_data(dc_r.jpg): incorrect APP1 Exif Identifier Code in xxxx/gal/includes/functions.php on line 401
Warning: exif_read_data(dc_r.jpg): incorrect APP1 Exif Identifier Code in xxxx/gal/includes/functions.php on line 404


the error is only for some pictures  :?

was there a solution posted which did not see?
any help/tip is welcome.

so far
stylawarz


Offline SirH

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [Mod] EXIF 0.3
« Reply #164 on: February 16, 2006, 10:44:22 PM »
Hallo,
einige kurze Fragen an den deutschsprachigen Teil der User hier (gerne auch an die englischsprachigen ;-) )

1. Hat jemand die ganzen EXIF-Angaben (inkl. möglichen Ergebnissen) schon mal übersetzt? Vieles ist einfach, aber etwa bei den Ergebnissen von "MeteringMode" bin ich mir nicht mehr sicher, wie die korrekte deutsche Übersetzung heißt. Und wo genau müsste man die Änderungen denn hinschreiben? In der exif.php finde ich die richtigen Stellen nicht.

2. Bei mir werden 10 EXIF-Infos angegeben - ist das kameraabhängig? Oder zeigt der Mod nicht mehr an?

3. Unter Flash erscheint bei mir, undefined, obwohl sicher gefeuert. Kamera 20D. Gibts da einen Fix?

Danke für Eure Hilfe!