使用Gif创建GD Image时出错

时间:2018-02-01 16:15:13

标签: perl gd gif

我似乎遇到了这行代码的问题:

my $src=GD::Image->newFromGif($insfn{'attachment'},1);

其中$insfn{'attachment'}包含上传的gif文件的临时路径。

这是操作流程(两个函数都在名为services的文件中):

sub attach { 
  fvrequest();
  my $exif=ImageInfo($insfn{'attachment'});
  if ($$exif{'FileType'} eq "GIF") {
    attachgif();
    end();
  }
 }

然后在attachgif

sub attachgif {
   my $src=GD::Image->newFromGif($insfn{'attachment'},1);
}

我找不到fvrequest函数的声明,但我知道它处理保存上传的文件并将路径放在$insfn{'attachment'}

无论如何,这是我从newFromGif电话中收到的错误:

[Thu Feb 01 16:02:06.126909 2018] [cgi:error] [pid 6583] [client xxxx:58396] End of script output before headers: services, referer: xx

我调试了attachgif中的$insfn{'attachment'}文件,它仍保留文件路径值。

0 个答案:

没有答案
相关问题