New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

tv2regionerne/statamic-image-cropper

Image cropping fieldtype for Statamic
8,870 10

Larablocks Analysis

tv2regionerne/statamic-image-cropper works with any PHP project: the latest release (v1.7.0, Jun 20, 2024) doesn't depend on Laravel.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • No release in the last 12 months (last: Jun 20, 2024)
  • 595 downloads a month (needs 10,000)
  • 10 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Jun 20, 2024.
  • No releases in the last 12 months.
  • First released: Mar 27, 2023.
  • Monthly downloads: 595.
  • 1 open issue on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 27, 2026.

Install
composer require tv2regionerne/statamic-image-cropper
Latest Version:v1.7.0
License:MIT
Last Updated:Jun 20, 2024
Links: GitHub  ·  Packagist
Maintainer: cboxdk

Image Cropper

Packagist Downloads License Supported Statamic version

This addon adds an image cropping fieldtype, for those cases where focal point cropping just isn't enough.

Features

This fieldtype can be found under the "Media" category, and requires you to set Image Source Field and Dimensions.

If you rather want to do it YAML style, this is it:

handle: crops
field:
  type: image_cropper
  display: Crops
  show_details: true
  source: image
  dimensions:
    '16_9': 16/9
    '1_1': 1/1
    freeform: Freeform

How to Install

You can search for this addon in the Tools > Addons section of the Statamic control panel and click install, or run the following command from your project root:

composer require tv2regionerne/statamic-image-cropper

How to Use

After setting up the fieldtype and have chosen an image, you get the option to select a dimension to crop:

Selecting a dimension will trigger the cropping overlay, and once you're happy with your crop you press Save:

In a template you can then use the crop as so:

<img src="https://raw.githubusercontent.com/tv2regionerne/statamic-image-cropper/HEAD/{{ glide:image :crop="crops:16_9:crop" }}" />

This line of code means that you're applying a cropping action to your image. The part :crop="crops:16_9:crop" tells the system two main things:

  • crops is a reference (or "handle") to your specific Image Cropper setting. Remember, you should replace crops with whatever name you've given to your Image Cropper field.
  • 16_9 indicates the aspect ratio for the crop. In this case, it's set to 16:9, which is a common widescreen format. You can change this to any other ratio you need for your image.

Enjoy cropping away!

Related Packages

xndbogdan/statamic-bard-text-color

Statamic Bard Text Color

129,839 5
eminos/statamic-tabs

A Statamic addon to be able to group fields into tabs.

102,362 15
ncla/statamic-focal-point-fieldtype

Standalone asset focal point fieldtype for Statamic

7,355 2
aryehraber/statamic-splash

Browse Unsplash images right from the CP.

5,915 13
laborb/statamic-bunny-stream

Manage and embed Bunny Stream videos in Statamic.

3,447 5

Version History

Version Released License
v1.7.0 MIT
v1.6.0 MIT
v1.5.0 MIT
v1.4.0 MIT
v1.3.0 MIT