ExifTool Forum

ExifTool => Archives => Topic started by: Archive on May 12, 2010, 08:54:35 AM

Title: Writable tags are different between CGI and CommandLine-Script
Post by: Archive on May 12, 2010, 08:54:35 AM
[Originally posted by monomoti on 2009-05-14 07:06:47-07]

Code:
Hi all.
I made a simple cgi-script which lists the names of writable tags of JPG file. When I run it from the terminal ("$ perl test.pl" ), it returns the tag names like :

NewXMPxxxStructX
NewXMPxxxStructY
NewXMPxxxTag1
NewXMPxxxTag2
NewXMPxxxTag3

But when I open it from the web-browser, it shows nothing.
What is different between them?
The code is like below.

codes start-------
#!/usr/bin/perl -w

BEGIN { unshift @INC, "/usr/bin/lib" }
use Image::ExifTool qw{:Public};

print "Content-type: text/plain\n";
print "\n";

my @tags = Image::ExifTool::GetWritableTags("XMP-xxx");
for my $tag (sort @tags) {
   print $tag."\n";
}

-------codes end

Any help would be appreciated. Taka
Title: Re: Writable tags are different between CGI and CommandLine-Script
Post by: Archive on May 12, 2010, 08:54:35 AM
[Originally posted by monomoti on 2009-05-14 08:21:57-07]

Now I got it.
The script doesn't read .ExifTool_config file.
Sorry to bother you all.