Hi,
I´va been looking for a gallery for my pictures and found zenphoto. I am always interested in which Lens I did use for which Photo and want to make it conventient :-)
Thus I want to adopt Exifier to get Sony/Minolta Lens ID-Support.
I know that the information is in the maker tags of sony as an integer (i32u) and I found a table to relate the integer to "plan text":
http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/Sony.htmlI did never write php-scripts but i am familiar with Basic, Pascal and a bit C++ thus the basics of code writing are there for me. Anything else I need to know, I will probably find out.
[B]First step:[/B] (I guess)
Modify exif.php as you can see below:
[quote]#
if(eregi("NIKON",$make)) {
...
} else if(eregi("Canon",$make)) {
#
require_once(dirname(__FILE__) . '/makers/canon.php');
#
parseCanon($data,$result,$seek,$globalOffset);
#
$result[$ifd_name]['KnownMaker'] = 1;
###### ADD SONY AS MAKER ########
} else if(eregi("SONY",$make)) {
#
require_once(dirname(__FILE__) . '/makers/sony.php');
#
parseSony($data,$result,$seek,$globalOffset);
#
$result[$ifd_name]['KnownMaker'] = 1;
###### ADD SONY AS MAKER ########
} else if(eregi("FUJIFILM",$make)) {
.....
Now I should be able to write a [B]makers/sony.php[/B] and try it! Or am I wrong?
Did anyone ever try this?
Thanks in advance!
Marcel (LinuxQ)
Comments
- Take a Canon-Image and changed the maker into "SONY" using ExifTool. Leaving all the other Information as it is.
- I simply copied "canon.php" into "sony.php"
The result is, that when uploading is done, the browser shows a white page and stop. Nothing is uploaded.
What is the problem?
Thanks in Advance.
LinuxQ