Copied to clipboard

Flag this post as spam?

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

  • JoskerVemeulen 67 posts 261 karma points
    Jun 21, 2019 @ 14:49

    Ad Image in HTML editor - cropsize

    I have a html grid(grid layout) where the client can add images. So far so goed. ;) The client uploads 2000x2000 dimension images. So I need cropped versions on my page (500px max). How do I go about this?

  • Marc Goodson 1696 posts 11279 karma points MVP 7x c-trib
    Jun 22, 2019 @ 21:01
    Marc Goodson

    Hi Josker

    The view responsible for displaying an image in the grid is located


    and the configuration for the grid editors is located here


    If the config for the Media item contains a width and height size, then the images inserted will be resized to fit eg:

            "name": "Image",
            "alias": "media",
            "view": "media",
            "icon": "icon-picture",
            "size": {
                "width": "500",

    you can also set a focalPoint, with 'top' and 'left' position to cause the image to be cropped.

    or create your own config entry and corresponding view (mapped via alias) that has your own implementation of cropping/resizing the image.



Please Sign in or register to post replies

Write your reply to: