Smart image re-sizing with Azure Functions and Cognitive Services


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

Comments (5)
  1. Slix Ikou says:

    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

    1. Martin Kearn says:

      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

      1. Slix Ikou says:

        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

  2. slimane says:

    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).

  3. Rakesh Shah says:

    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 appreciated

    016-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 error
    2016-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

Comments are closed.

Skip to main content