Magick format name to mime type

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
jpastuszek
Posts: 2
Joined: 2013-08-08T07:11:20-07:00
Authentication code: 6789

Magick format name to mime type

Post by jpastuszek »

Hi,

I am wondering if there is a method within IM or .xml file or documentation where I can get mapping between IM format (e.g. JPEG, PNG, TIFF...) to mime type?
I need this to provide proper mime type to my client when generating images from blob. This images are not yet converted but I know the format to which they will be converted.
Also I have noticed that MagickToMime is doing crazy things like looking for files like '*.[fF]' not sure where when I only try to get mime type from loaded blob where the format is well known.

I could not find such mapping within source of IM.

Thanks,
Jakub
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Magick format name to mime type

Post by magick »

Post Reply