【问题标题】:How can i create thumbnails with image, with coord X-0, Y-0如何使用坐标 X-0、Y-0 创建带有图像的缩略图
【发布时间】:2022-01-13 05:38:42
【问题描述】:

Voyager 从中心创建裁剪,我需要裁剪图像的开头。我该怎么做呢?文档中只指定了裁剪的宽度和高度。

"name": "cropped",
        "crop": {
            "width": "300",
            "height": "250"
        }

【问题讨论】:

    标签: laravel image-processing thumbnails crop voyager


    【解决方案1】:

    就在那里documentation about cropping它显示

    "thumbnails": [
        {
            "type": "crop",
            "name": "crop-500-500",
            "width": 500, // Required
            "height": 500, // Required
            "x": 50, // Optional. Left offset
            "y": 50, // Optional. Top offset
        }
    ]
    

    【讨论】:

    • 这些是媒体选择器的设置,但不是图像选择器的设置
    • @ИванАпевалов 但在图像选择器中,您可以将裁剪移动到您不想要的位置?
    猜你喜欢
    • 2011-12-31
    • 1970-01-01
    • 2012-11-26
    • 1970-01-01
    • 2020-06-28
    • 2021-07-10
    • 2014-06-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多