File::Type::WebImages man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

File::Type::WebImages(User Contributed Perl DocumentatFile::Type::WebImages(3)

NAME
       File::Type::WebImages - determine web image file types using magic

SYNOPSIS
	   use File::Type::WebImages 'mime_type';

	   my $type_1 = mime_type($file);
	   my $type_2 = mime_type($data);

DESCRIPTION
       "mime_type()" can use either a filename, or file contents, to determine
       the type of a file. The process involves looking the data at the
       beginning of the file, sometimes called "magic numbers".

THE BIG TRADE OFF
       For minimum memory consumption, only the following common web image
       file types are supported:

       BMP, GIF, JPEG and PNG.	( image/bmp, image/gif, image/jpeg and
       image/png ).

       Unlike with File::Type and File::MMagic, 'undef', not
       "application/octet-stream" will be returned for unknown formats.

       Unlike File::Type, we return "image/png" for PNGs, not "image/x-png";

       If you want more mime types detected use File::Type or some other
       module.

TODO
       It would be even better to have a pluggable system that would allow you
       to plug-in different sets of MIME-types you care about.

SEE ALSO
       File::Type. Similar, but supports over 100 file types.

ACKNOWLEDGMENTS
       File::Type::WebImages is built from a mime-magic file from
       cleancode.org. The original can be found at
       http://cleancode.org/cgi-bin/viewcvs.cgi/email/mime-magic.mime?rev=1.1.1.1
       <http://cleancode.org/cgi-bin/viewcvs.cgi/email/mime-
       magic.mime?rev=1.1.1.1>.

AUTHORS
       Paul Mison <pmison@fotango.com> - wrote original File::Type Mark
       Stosberg <mark@summersault.com> - hacked up this.

COPYRIGHT
       Copyright 2003-2004 Fotango Ltd.

LICENSE
       Licensed under the same terms as Perl itself.

perl v5.14.0			  2011-06-17	      File::Type::WebImages(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net