Copied to clipboard

Flag this post as spam?

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


  • Fredrik Esseen 610 posts 906 karma points
    Jan 15, 2018 @ 08:39
    Fredrik Esseen
    0

    Focal point not rendering correctly

    Umbraco version: 7.7.7.

    Im using the grid and has created a customized Grid Editor where I try to make a cropped image. The image looks fine in the backend in the grid but when its rendered the image is not cropped as it should.

    In the backend the image looks looks like this:

    enter image description here

    But when its rendered it looks like this: enter image description here

    This is the grid editor:

    { "name": "Bild beskuren", "alias": "bildBeskuren", "view": "media", "icon": "icon-picture", "config": { "size": { "width": 1600, "height": 480 } } }

  • Fredrik Esseen 610 posts 906 karma points
    Jan 18, 2018 @ 16:03
    Fredrik Esseen
    100

    Found the error:

    For some reason a "," was in the focal point instead of ".", as:

    <img src="/media/1037/4c6a6663.jpg?width=1600&amp;height=480&amp;center=0,5,0,5&amp;mode=crop">
    

    Why I dont know.

  • Guido Adam 21 posts 65 karma points
    Aug 26, 2020 @ 13:03
    Guido Adam
    0

    Hi Fredrik, did you manage to find a (quick) solution to this? Even in v8 the decimal-divider is presented as a , instead of a . Thanks,

    Guido

Please Sign in or register to post replies

Write your reply to:

Draft