 the format separately from the file name, like so:</p>

<figure  class='ruff-snippet ruff-figure'><pre class='ruff'>
pix::ctx::writeFile <span style="color: rgb(233, 98, 98);">$ctx</span> 'image.png'
</pre>

</figure><p class='ruff'>This ensures that the image is saved in the correct format regardless of the current format of the context.</p>
<h5 class='ruff'>Return value</h5><p class='ruff'>Nothing.</p>
</main><nav class='ruff-nav'><ul style='position: sticky; top: 0;'><li class='ruff-toc1'><a style='padd