Re: How to detect an image type with GD
- From: Ilya Zakharevich <nospam-abuse@xxxxxxxxx>
- Date: Wed, 8 Nov 2006 20:22:52 +0000 (UTC)
[A complimentary Cc of this posting was sent to
Francesco Moi
<francescomoi@xxxxxxx>], who wrote in article <1163005823.701417.13950@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>:
Hi.
I want to load an image with GD, but I must know which type is each one
in order to:
my $srcimage = GD::Image->newFromGif("foo.gif");
my $srcimage = GD::Image->newFromJpeg("foo.jpg");
...
How can I detect it?
Do not. Let GD detect it.
Hope this helps,
Ilya
.
- References:
- How to detect an image type with GD
- From: Francesco Moi
- How to detect an image type with GD
- Prev by Date: Re: How to detect an image type with GD
- Next by Date: Date and time--recommended module?
- Previous by thread: Re: How to detect an image type with GD
- Next by thread: Date and time--recommended module?
- Index(es):