Remove Tagname from output and strange letters.

Started by Archive, May 12, 2010, 08:53:51 AM

Previous topic - Next topic

Archive

[Originally posted by jefman on 2005-10-04 15:42:17-07]

Hi,

When I try to write the letters I have problems with  in this forum I get errors but I did put a webpage where I explain my problem: My page

Code:
<script language="perlscript" runat="server">
sub exif
{
use Image::ExifTool;
my $exifTool = new Image::ExifTool;
my @ioTagList = ('DateTimeDigitized', 'ImageSize', 'Copyright', 'Artist', 'ImageDescription', 'Keywords' );
$exifTool->Options(Unknown => 1, DateFormat => '%Y-%m-%d (%H:%M:%S)', Duplicate => 0);
$info = $exifTool->ImageInfo('D:\Pathtofile\050416_03_2.JPG', \@ioTagList);
foreach (keys %$info) {
$Response->write ("$_ => $$info{$_}
\n");
}
}
</script>


Thanks for the help !

/Jef

Archive

[Originally posted by exiftool on 2005-10-04 17:30:36-07]

The problems you had with posting are that > and < characters must be escaped or put within >code< >/code< tokens, and that the special characters you wanted to display aren't allowed.

You wrote:

Code:
Hi,

I have been testing with this tool and it looks precisly what I want,
but I would like to remove the tagnames. For example
"ImageSize => " from "ImageSize => 2464x1632".
How do I do that ?

My customer is using Photoshop CS for mac when applying IPTC/XMP
data and I get some strange letters in my output, se above:

"Artist => Fotograf ??? ran Lindskog ???? should be the swedish
letter ?, I have similar problems with other swedish letters: ?????
for example. Any Ideas how to get around this ?

ExifTool with output special characters in UTF8 by default, or in Windows Latin1 by setting the 'Charset' option to 'Latin'.  Unfortunately what you need for web page output is an HTML conversion, which ExifTool currently doesn't do.  You will have to do this translation yourself (for now).

Removing e the "ImageSize =>" is simple:  Just remove the "$_ =>" from the write() statement.