Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rasmus Olofsson 23 posts 187 karma points c-trib
    Oct 30, 2019 @ 08:50
    Rasmus Olofsson
    0

    Focal point from global image crop is not used in CI environments

    Hello,

    In an Umbraco version 7.14 project we have a Media Picker field on a page. We also have global cropping settings that will automatically crop images that are uploaded in the Media Picker's. The cropping and usage of the croppings works perfectly both locally and in CI environments. The usage of focal point works locally but not on the CI environments. Has anyone experienced this before and solved it?

    We do not use the 3rd party package ImageProcessor, we have the official built in package. Every file for ImageProcessor seems to be on the servers, in the /bin directory and under config/imageprocessor. So what the person here talks about should not be the same for us: https://our.umbraco.com/forum/umbraco-7/using-umbraco-7/71814-why-does-image-cropping-not-work-on-production-using-the-mode-crop-query-string-parameter

    The sites are hosted on Azure if it makes a difference.

    The method GetCropUrl() is used with the parameters IPublishedContent and the crop alias. The parameter "preferFocalPoint" is default false and not used.

    We use uSync to get settings to the server. Perhaps some kind of setting has not been uploaded to the server? I have ran the uSync import, both on changes and full import.

  • Rasmus Olofsson 23 posts 187 karma points c-trib
    Nov 14, 2019 @ 19:05
    Rasmus Olofsson
    102

    Solved!

    Solution:

    The ImageProcessor package and its dependencies were old versions. I updated them to the latest version. Also, under Storage Account Container in Azure, under Blob service -> Containers, I had to change the Media access level from Private to Blob.

    Also, under wwwroot/config/imageprocessor in the file security.config, the following service element needed to be added:

        <service prefix="media/" name="CloudImageService" type="ImageProcessor.Web.Services.CloudImageService, ImageProcessor.Web">
      <settings>
        <setting key="Container" value="media" />
        <setting key="MaxBytes" value="8194304" />
        <setting key="Timeout" value="30000" />
        <setting key="Host" value="https://{yourblobname}.blob.core.windows.net/"/>
      </settings>
    </service>
    

    The url for the value above can be found in your Azure Portal -> Storage account -> properties -> Primary Blob service endpoint

Please Sign in or register to post replies

Write your reply to:

Draft