ImageResizer Watermark not appearing -


i have azure function attempting add watermark existing image using imageresizer version 3.4.3. function executes without error, watermark not applied. here code, following along here:

private static void applywatermark(stream inputstream, string blobname) {     var imageconfiguration = config.current;     var plugin = imageconfiguration.plugins.get<watermarkplugin>();     if (plugin == null)     {         plugin = new watermarkplugin();         plugin.install(imageconfiguration);     }     plugin = imageconfiguration.plugins.get<watermarkplugin>();     var imagelayer = new imagelayer(imageconfiguration)     {         path = hostingenvironment.mappath(_configuration.get<string>("badgeurl")),         align = contentalignment.middlecenter     };     plugin.namedwatermarks["badge"] = new layer[]     {         imagelayer     };     inputstream.position = 0;     var outputstream = new memorystream();     imageconfiguration.currentimagebuilder.build(inputstream, outputstream,         new resizesettings("watermark=badge"));     outputstream.position = 0;     _blobstoragerepository.addorupdateasync(_configuration.blobstoragecontainer,         blobname, outputstream).wait(); } 

any ideas why watermark not applied?

the watermark plugin requires virtual paths '~/azure/blobimage.jpg'. doesn't accept physical paths outside of application root or mounted folders.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -