Search code examples
laravelimage-processingthumbnailscropvoyager

How can i create thumbnails with image, with coord X-0, Y-0


Voyager creates a crop on from the center, and I need to crop the beginning of the image. How do I do this? Only the width and height of the crop are specified in the documentation.

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

Solution

  • Right in there documentation about cropping it shows

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