Query: file::type::webimages
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
File::Type::WebImages(3pm) User Contributed Perl Documentation File::Type::WebImages(3pm)NAMEFile::Type::WebImages - determine web image file types using magicSYNOPSISuse 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 OFFFor 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.TODOIt 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 ALSOFile::Type. Similar, but supports over 100 file types.ACKNOWLEDGMENTSFile::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>.AUTHORSPaul Mison <pmison@fotango.com> - wrote original File::Type Mark Stosberg <mark@summersault.com> - hacked up this.COPYRIGHTCopyright 2003-2004 Fotango Ltd.LICENSELicensed under the same terms as Perl itself. perl v5.10.1 2011-04-23 File::Type::WebImages(3pm)
Related Man Pages |
---|
image_type_to_mime_type(3) - php |
file::mmagic::xs(3pm) - debian |
file::mimeinfo::magic(3pm) - debian |
file::type::builder(3pm) - debian |
mime::types(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Pixane 0.7 (Default branch) |
Pixane 0.8 (Default branch) |
Mime Type Detection Utility 1.1.2 (Default branch) |
Boot time driver conflict |
Remove Similar entries in a File |