MATSUNO★Tokuhiro > Image-JpegCheck > Image::JpegCheck

Download:
Image-JpegCheck-0.10.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.10   Source  

NAME ^

Image::JpegCheck - is this jpeg?

SYNOPSIS ^

  use Image::JpegCheck;
  is_jpeg('foo.jpg'); # => return 1 when this is jpeg

DESCRIPTION ^

Image::JpegCheck is jpeg file checker for perl.

Yes, I know. I know the Imager, GD, Image::Magick, Image::Size, etc.But, I need tiny one. I want to use this module in the mod_perl =)

Code is taken from Image::Size, and optimized it.

FUNCTIONS ^

is_jpeg($stuff)

is_jpeg($stuff) validates your jpeg.stuff is:

    scalar:            filename
    scalarref:         jpeg itself
    file-glob:         file handle
    Path::Class::File: file object

AUTHOR ^

Tokuhiro Matsuno <tokuhirom ah! gmail.com>

THANKS TO ^

kazeburo++

yappo++

SEE ALSO ^

Image::Size

LICENSE ^

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: