[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] undertrykke fejl fra modul (Image::Exif)



On Thu, 12 Aug 2004 21:57:20 +0200
Flemming Mahler Larsen <sslug@sslug> wrote:

> Kim Schulz wrote:
> 
> >Desværre har alle billeder ikke Exif Data og derfor kommer der til
> >tider nogle fejl der bliver skrevet ud til skærmen. 
> >
> >Hvordan fanger jeg lige disse fejl inden de bliver skrevet ud? 
> >
> >linjen som smider fejlen er f.eks.:
> >my $out = $exif->filename("$fullpath");
> >  
> >
> Hvis gør følgende:
> -- start --
> #!/usr/bin/perl -w
> use strict;
> use CPAN;
> use Data::Dumper;
> use Image::EXIF;
> 
> my $exif = new Image::EXIF("image_with_no_exif.jpg");
> print Dumper $exif;
> 
> exit();
> --slut--
> før jeg ingen fejl, men hvis jeg prøver noget med 
> $exif->filename("koncernmail.jpg") gør jeg...
> 
> Kan du eventuelt lave en "$exif = new Image::EXIF" for hvert eneste 
> billede, og komme omkring det på den måde?

Desværre så viser en hurtig test at den coredumper efter ca 5 billeder.

MVH
Kim 


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 22:44 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *