i have a webjob that resize and overwrites the same image in the blob container. How can i prevent the webjob from triggering again on the same file? i'm using the imageresizer library btw
public class Functions
{
public static void ProcessBlob(
[BlobTrigger("media/{filename}")] Stream input,
[Blob("media/{filename}", FileAccess.Write)] Stream output,
string filename,
ILogger logger)
{
logger.LogInformation("blob path: {0}", filename);
var instructions = new Instructions
{
Width = 1920,
Mode = FitMode.Max,
Scale = ScaleMode.DownscaleOnly,
JpegQuality = 80
};
ImageBuilder.Current.Build(new ImageJob(input, output, instructions));
}
}