Skip to content

Preventing ImageMagick from leaving temp files #3868

Answered by jcupitt
mertalev asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @mertalev,

Ouch that's bad.

Magick will go via disc for some delegate formats. The obvious ones are PDF (delegated to ghostscript), SVG (delegated to inkscape), and raw camera formats (usually delegated to ufraw I think). There are probably others.

It handles these formats by shelling out to to eg. ghostscript to render the file to PNM in /tmp, then loading the PNMs back in as a bitmap to be returned to the caller. Obviously shelling out to an external program and passing the image back in via a temp file is pretty inefficient, which is one of the main reasons libvips magickload is not really suitable for production use.

I think I would just turn off magickload and try to find out what…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@mertalev
Comment options

Answer selected by mertalev
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@mertalev
Comment options

@jcupitt
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants