• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2
3
4
5<!DOCTYPE html>
6<html lang="en">
7<head>
8  <meta charset="utf-8"  />
9  <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,shrink-to-fit=no"  />
10  <title>ImageMagick - MagickCore, C API: Mime Methods</title>
11  <meta name="application-name" content="ImageMagick" />
12  <meta name="description" content="Use ImageMagick® to create, edit, compose, and convert bitmap images. Resize an image, crop it, change its shades and colors, add captions, and more." />
13  <meta name="application-url" content="https://imagemagick.org" />
14  <meta name="generator" content="PHP" />
15  <meta name="keywords" content="magickcore, c, api:, mime, methods, ImageMagick, PerlMagick, image processing, image, photo, software, Magick++, OpenMP, convert" />
16  <meta name="rating" content="GENERAL" />
17  <meta name="robots" content="INDEX, FOLLOW" />
18  <meta name="generator" content="ImageMagick Studio LLC" />
19  <meta name="author" content="ImageMagick Studio LLC" />
20  <meta name="revisit-after" content="2 DAYS" />
21  <meta name="resource-type" content="document" />
22  <meta name="copyright" content="Copyright (c) 1999-2020 ImageMagick Studio LLC" />
23  <meta name="distribution" content="Global" />
24  <meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1" />
25  <meta property='og:url' content='../../' />
26  <meta property='og:title' content='ImageMagick' />
27  <meta property='og:image' content='../../images/logo.png' />
28  <meta property='og:type' content='website' />
29  <meta property='og:site_name' content='ImageMagick' />
30  <meta property='og:description' content="Convert, Edit, or Compose Bitmap Images" />
31  <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" />
32  <link href="mime.html" rel="canonical" />
33  <link href="../../images/wand.png" rel="icon" />
34  <link href="../../images/wand.ico" rel="shortcut icon" />
35  <link href="../assets/magick.css" rel="stylesheet" />
36</head>
37<body>
38  <nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
39    <a class="navbar-brand" href="../../"><img class="d-block" id="icon" alt="ImageMagick" width="32" height="32" src="../../images/wand.ico"/></a>
40    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsMagick" aria-controls="navbarsMagick" aria-expanded="false" aria-label="Toggle navigation">
41      <span class="navbar-toggler-icon"></span>
42    </button>
43
44    <div class="navbar-collapse collapse" id="navbarsMagick" style="">
45    <ul class="navbar-nav mr-auto">
46      <li class="nav-item ">
47        <a class="nav-link" href="../../">Home <span class="sr-only">(current)</span></a>
48      </li>
49      <li class="nav-item ">
50        <a class="nav-link" href="../../www/download.html">Download</a>
51      </li>
52      <li class="nav-item ">
53        <a class="nav-link" href="../../www/command-line-tools.html">Tools</a>
54      </li>
55      <li class="nav-item ">
56        <a class="nav-link" href="../../www/command-line-processing.html">Command-line</a>
57      </li>
58      <li class="nav-item ">
59        <a class="nav-link" href="../../www/resources.html">Resources</a>
60      </li>
61      <li class="nav-item ">
62        <a class="nav-link" href="../../www/develop.html">Develop</a>
63      </li>
64      <li class="nav-item">
65        <a class="nav-link" target="_blank" href="https://imagemagick.org/discourse-server/">Community</a>
66      </li>
67    </ul>
68    <form class="form-inline my-2 my-lg-0" action="../https://imagemagick.org/script/search.php">
69      <input class="form-control mr-sm-2" type="text" name="q" placeholder="Search" aria-label="Search">
70      <button class="btn btn-outline-success my-2 my-sm-0" type="submit" name="sa">Search</button>
71    </form>
72    </div>
73  </nav>
74  <div class="container">
75   <script async="async" src="https://localhost/pagead/js/adsbygoogle.js"></script>    <ins class="adsbygoogle"
76         style="display:block"
77         data-ad-client="ca-pub-3129977114552745"
78         data-ad-slot="6345125851"
79         data-full-width-responsive="true"
80         data-ad-format="horizontal"></ins>
81    <script>
82      (adsbygoogle = window.adsbygoogle || []).push({});
83    </script>
84
85  </div>
86
87  <main class="container">
88    <div class="magick-template">
89<div class="magick-header">
90<p class="text-center"><a href="mime.html#AcquireMimeCache">AcquireMimeCache</a> &#8226; <a href="mime.html#GetMimeInfoList">GetMimeInfoList</a> &#8226; <a href="mime.html#GetMimeList">GetMimeList</a> &#8226; <a href="mime.html#GetMimeDescription">GetMimeDescription</a> &#8226; <a href="mime.html#GetMimeType">GetMimeType</a> &#8226; <a href="mime.html#ListMimeInfo">ListMimeInfo</a></p>
91
92<h2><a href="../../api/MagickCore/mime_8c.html" id="AcquireMimeCache">AcquireMimeCache</a></h2>
93
94<p>AcquireMimeCache() caches one or more magic configurations which provides a mapping between magic attributes and a magic name.</p>
95
96<p>The format of the AcquireMimeCache method is:</p>
97
98<pre class="text">
99LinkedListInfo *AcquireMimeCache(const char *filename,
100  ExceptionInfo *exception)
101</pre>
102
103<p>A description of each parameter follows:</p>
104
105<dd>
106</dd>
107
108<dd> </dd>
109<dl class="dl-horizontal">
110<dt>filename</dt>
111<dd>the font file name. </dd>
112
113<dd> </dd>
114<dt>exception</dt>
115<dd>return any errors or warnings in this structure. </dd>
116
117<dd>  </dd>
118</dl>
119<h2><a href="../../api/MagickCore/mime_8c.html" id="GetMimeInfoList">GetMimeInfoList</a></h2>
120
121<p>GetMimeInfoList() returns any image aliases that match the specified pattern.</p>
122
123<p>The magic of the GetMimeInfoList function is:</p>
124
125<pre class="text">
126const MimeInfo **GetMimeInfoList(const char *pattern,
127  size_t *number_aliases,ExceptionInfo *exception)
128</pre>
129
130<p>A description of each parameter follows:</p>
131
132<dd>
133</dd>
134
135<dd> </dd>
136<dl class="dl-horizontal">
137<dt>pattern</dt>
138<dd>Specifies a pointer to a text string containing a pattern. </dd>
139
140<dd> </dd>
141<dt>number_aliases</dt>
142<dd> This integer returns the number of magics in the list. </dd>
143
144<dd> </dd>
145<dt>exception</dt>
146<dd>return any errors or warnings in this structure. </dd>
147
148<dd>  </dd>
149</dl>
150<h2><a href="../../api/MagickCore/mime_8c.html" id="GetMimeList">GetMimeList</a></h2>
151
152<p>GetMimeList() returns any image format alias that matches the specified pattern.</p>
153
154<p>The format of the GetMimeList function is:</p>
155
156<pre class="text">
157char **GetMimeList(const char *pattern,size_t *number_aliases,
158  ExceptionInfo *exception)
159</pre>
160
161<p>A description of each parameter follows:</p>
162
163<dd>
164</dd>
165
166<dd> </dd>
167<dl class="dl-horizontal">
168<dt>pattern</dt>
169<dd>Specifies a pointer to a text string containing a pattern. </dd>
170
171<dd> </dd>
172<dt>number_aliases</dt>
173<dd> This integer returns the number of image format aliases in the list. </dd>
174
175<dd> </dd>
176<dt>exception</dt>
177<dd>return any errors or warnings in this structure. </dd>
178
179<dd>  </dd>
180</dl>
181<h2><a href="../../api/MagickCore/mime_8c.html" id="GetMimeDescription">GetMimeDescription</a></h2>
182
183<p>GetMimeDescription() returns the mime type description.</p>
184
185<p>The format of the GetMimeDescription method is:</p>
186
187<pre class="text">
188const char *GetMimeDescription(const MimeInfo *mime_info)
189</pre>
190
191<p>A description of each parameter follows:</p>
192
193<dd>
194</dd>
195
196<dd> </dd>
197<dl class="dl-horizontal">
198<dt>mime_info</dt>
199<dd> The magic info. </dd>
200
201<dd>  </dd>
202</dl>
203<h2><a href="../../api/MagickCore/mime_8c.html" id="GetMimeType">GetMimeType</a></h2>
204
205<p>GetMimeType() returns the mime type.</p>
206
207<p>The format of the GetMimeType method is:</p>
208
209<pre class="text">
210const char *GetMimeType(const MimeInfo *mime_info)
211</pre>
212
213<p>A description of each parameter follows:</p>
214
215<dd>
216</dd>
217
218<dd> </dd>
219<dl class="dl-horizontal">
220<dt>mime_info</dt>
221<dd> The magic info. </dd>
222
223<dd>  </dd>
224</dl>
225<h2><a href="../../api/MagickCore/mime_8c.html" id="ListMimeInfo">ListMimeInfo</a></h2>
226
227<p>ListMimeInfo() lists the magic info to a file.</p>
228
229<p>The format of the ListMimeInfo method is:</p>
230
231<pre class="text">
232MagickBooleanType ListMimeInfo(FILE *file,ExceptionInfo *exception)
233</pre>
234
235<p>A description of each parameter follows.</p>
236
237<dt>file</dt>
238<p>An pointer to a FILE.</p>
239
240<dt>exception</dt>
241<p>return any errors or warnings in this structure.</p>
242
243</div>
244    </div>
245  </main><!-- /.container -->
246  <footer class="magick-footer">
247    <p><a href="../../www/security-policy.html">Security</a> •
248    <a href="../../www/architecture.html">Architecture</a>
249
250    <a href="mime.html#"><img class="d-inline" id="wand" alt="And Now a Touch of Magick" width="16" height="16" src="../../images/wand.ico"/></a>
251
252    <a href="../../www/links.html">Related</a> •
253     <a href="../../www/sitemap.html">Sitemap</a>
254    <br/>
255    <a href="../../www/support.html">Donate</a> •
256    <a href="http://pgp.mit.edu/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a> •
257    <a href="../../www/contact.html">Contact Us</a>
258    <br/>
259    <small>© 1999-2020 ImageMagick Studio LLC</small></p>
260  </footer>
261
262  <!-- Javascript assets -->
263  <script src="../assets/magick.js" crossorigin="anonymous"></script>
264  <script>window.jQuery || document.write('<script src="https://localhost/ajax/libs/jquery/3.4.1/jquery.min.js"><\/script>')</script>
265</body>
266</html>
267<!-- Magick Cache 4th January 2020 12:22 -->