AzureJobs icon indicating copy to clipboard operation
AzureJobs copied to clipboard

Problem in ImageCompressor.cs

Open hmatiske opened this issue 11 years ago • 1 comments
trafficstars

The line 12

string targetFile = Path.ChangeExtension(Path.GetTempFileName(), Path.GetExtension(sourceFile));

creates each time a temp file, which ist not deleted. There is a limit of 65536 temp files. After this count the GetTempfileName function throws an IOException.

One Solution is to replace the line with

string targetFile = Path.GetTempFileName();

hmatiske avatar Nov 04 '14 19:11 hmatiske

Ok thanks for the report. If you submit a PR that will speed up the process.

sayedihashimi avatar Nov 08 '14 20:11 sayedihashimi