DONT DELETE BIG TEMP FILES
Posted: 2009-04-17T15:46:35-07:00
I'm using the 6.5.0-5 Q16 Version of imagemagick with classic ASP, to handle images on my web site.
And i'm getting a lot of "magick-xxxxx" files on my temp directory (about 12mb each one) and the last week i get from the server an alert of low disk space.
this files stay forever on the temp directory, i think is a file leak.
my code is:
' Ajusta el tamaño de la imagen
Dim img, ImgRes
Set img = Server.CreateObject("ImageMagickObject.MagickImage.1")
'Crea marca de agua
img.convert "-size=380x70","xc:black","-pointsize=45","-font=Arial","-fill=white","-stroke=white","-strokewidth=1","-draw=text 10,55 'ID " & PropID & "'","+trim",Rutatemp & PropID & ".gif"
img.convert Rutatemp & propid & ".gif","-negate","-background=gray69","-channel=A","-combine",Rutatemp & propid & ".png"
'proceso de fotos
ImgRes = img.Montage(Rutatemp & Resultado,"-geometry=280x210+0+0","-bordercolor=white", Rutatemp & Resultado)
ImgRes = img.composite("-gravity=SouthEast","-geometry=+18+40","-dissolve=60",Rutatemp & propid & ".png","-resize=60x60",Rutatemp & Resultado,Rutatemp & Resultado)
ImgRes = img.Montage(Rutatemp & "S" & Resultado,"-geometry=100x75+0+0","-bordercolor=white", Rutatemp & "S" & Resultado)
ImgRes = img.Montage(Rutatemp & "L" & Resultado,"-geometry=640x480+0+0","-bordercolor=white", Rutatemp & "L" & Resultado)
ImgRes = img.composite("-gravity=SouthEast","-geometry=+80+90","-dissolve=60",Rutatemp & propid & ".png","-resize=60x60",Rutatemp & "L" & Resultado,Rutatemp & "L" & Resultado)
hope you can help me with this trouble.
And i'm getting a lot of "magick-xxxxx" files on my temp directory (about 12mb each one) and the last week i get from the server an alert of low disk space.
this files stay forever on the temp directory, i think is a file leak.
my code is:
' Ajusta el tamaño de la imagen
Dim img, ImgRes
Set img = Server.CreateObject("ImageMagickObject.MagickImage.1")
'Crea marca de agua
img.convert "-size=380x70","xc:black","-pointsize=45","-font=Arial","-fill=white","-stroke=white","-strokewidth=1","-draw=text 10,55 'ID " & PropID & "'","+trim",Rutatemp & PropID & ".gif"
img.convert Rutatemp & propid & ".gif","-negate","-background=gray69","-channel=A","-combine",Rutatemp & propid & ".png"
'proceso de fotos
ImgRes = img.Montage(Rutatemp & Resultado,"-geometry=280x210+0+0","-bordercolor=white", Rutatemp & Resultado)
ImgRes = img.composite("-gravity=SouthEast","-geometry=+18+40","-dissolve=60",Rutatemp & propid & ".png","-resize=60x60",Rutatemp & Resultado,Rutatemp & Resultado)
ImgRes = img.Montage(Rutatemp & "S" & Resultado,"-geometry=100x75+0+0","-bordercolor=white", Rutatemp & "S" & Resultado)
ImgRes = img.Montage(Rutatemp & "L" & Resultado,"-geometry=640x480+0+0","-bordercolor=white", Rutatemp & "L" & Resultado)
ImgRes = img.composite("-gravity=SouthEast","-geometry=+80+90","-dissolve=60",Rutatemp & propid & ".png","-resize=60x60",Rutatemp & "L" & Resultado,Rutatemp & "L" & Resultado)
hope you can help me with this trouble.