Udostępnij za pośrednictwem


Smart image re-sizing with Azure Functions and Cognitive Services

This article has been migrated to https://martink.me/articles/smart-image-resizing-with-azure-functions-and-cognitive-services

Comments

  • Anonymous
    May 27, 2016
    Thanx.But its a little expansive, I must pay for Two services here, Azure Functions and Cognitive Services.Its a better to use a famework instead. Like ImageResizer for example
    • Anonymous
      June 06, 2016
      Its a good point but both Functions and Cognitive Services are free beneath a certain threshold and very cheap beyond that. The problem with something like ImageResizer is that you need to write and manager more code, plus there is no .net core version yet
      • Anonymous
        June 21, 2016
        yes, you right, but what do mean by "plus there is no .net core version yet" !!did you mean that only Azure Functions are referenced only on .Net Core !! if yes, you are wrong, we can use Full .NET, plus you can find some examples use ImageResizer instead of Cognitive Services
  • Anonymous
    May 28, 2016
    Thanx for article, I really like this approach, But its expansive. We must pay for two services her !!Use a Framework to resize images (like ImageResizer) instead of Cognitive Service (Computer Vision API).
  • Anonymous
    June 11, 2016
    Hi,Great article and I followed this steps to replicate this in my account and updated with my Key but the Function fails to complete with below error you help is appreciated016-06-12T00:10:36.718 run.csx(1,1): error CS0246: The type or namespace name 'sing' could not be found (are you missing a using directive or an assembly reference?)2016-06-12T00:10:36.718 run.csx(21,47): error CS0246: The type or namespace name 'MediaTypeWithQualityHeaderValue' could not be found (are you missing a using directive or an assembly reference?)2016-06-12T00:10:36.718 Compilation failed.2016-06-12T00:10:52.571 Exception while executing function: Functions.BlobTriggerCSharp1. Microsoft.Azure.WebJobs.Host: Exception binding parameter 'myBlob'. Microsoft.WindowsAzure.Storage: The remote server returned an error: (404) Not Found.2016-06-12T00:11:57.237 Function compilation error2016-06-12T00:11:57.237 run.csx(2,1): error CS1529: A using clause must precede all other elements defined in the namespace except extern alias declarations