Sha256: 0eeafde1c0b097cad24bd5c9900167e5986057132b08249920f7abbd6bdd0ac6
Contents?: true
Size: 669 Bytes
Versions: 27
Compression:
Stored size: 669 Bytes
Contents
module TaliaCore module DataTypes # Class to manage image data type class ImageData < FileRecord # return the mime_type for a file def extract_mime_type(location) case File.extname(location).downcase when '.bmp' 'image/bmp' when '.cgm' 'image/cgm' when '.fit', '.fits' 'image/fits' when '.g3' 'image/g3fax' when '.gif' 'image/gif' when '.jpg', '.jpeg', '.jpe' 'image/jpeg' when '.png' 'image/png' when '.tif', '.tiff' 'image/tiff' end end end end end
Version data entries
27 entries across 27 versions & 1 rubygems