ncla/statamic-focal-point-fieldtype

Standalone asset focal point fieldtype for Statamic
6,864 2
Install
composer require ncla/statamic-focal-point-fieldtype
Latest Version:v5.1.0
Laravel:12 · 13
License:MIT
Last Updated:Mar 28, 2026
Links: GitHub  ·  Packagist
Maintainer: ncla

Focal Point Fieldtype

GitHub release (latest by date) Supported Statamic version justforfunnoreally.dev badge

The Statamic control panel has very useful focal point selection tool, unfortunately you can only set one focal point only for one asset. Fortunately this addon provides a fieldtype that allows you to set focal point in a separate field for an asset that has been linked in an assets field.

This addon can be useful in situations such as:

  • You want to change focal point between responsive breakpoints
  • Your site has the same asset appearing in multiple places and you do not want them all to share the same focal point
  • You want to add "pins" to an image e.g. a map with interest points

statamic-focal-point-fieldtype

Installation

Require it using Composer.

composer require ncla/statamic-focal-point-fieldtype

Fieldtype

As any fieldtype, you can add it through control panel interface. You will find the fieldtype in the "Media" category. In field options, you will just have to define "Assets Field Handle" and that is it.

Alternatively if you are feeling hacker vibes, you can of course add this fieldtype to your fields by editing blueprint file directly:

-
    handle: focal_point_field
    field:
        display: 'Focal Point'
        type: focal_point
        assets_field_handle: assets_field
-
    handle: assets_field
    field:
        # ..

Templating

Once focal point is set, you can pass it in your templates to Glide tag like this:

{{
    glide
    :src="assets_field"
    fit="crop-{ focal_point_field }"
}}

If you are using Responsive Images addon then here is an example of having two different focal points for two breakpoints:

{{
    responsive:assets_field
    glide:fit="crop-{ focal_point_mobile }"
    lg:glide:fit="crop-{ focal_point_desktop }"
}}

Related Packages

xndbogdan/statamic-bard-text-color

Statamic Bard Text Color

127,520 5
eminos/statamic-tabs

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

90,820 15
tv2regionerne/statamic-image-cropper

Image cropping fieldtype for Statamic

8,050 10
aryehraber/statamic-splash

Browse Unsplash images right from the CP.

5,858 13
laborb/statamic-bunny-stream

Manage and embed Bunny Stream videos in Statamic.

3,011 5

Version History

Version Released License
v5.1.0 MIT
v5.0.0 MIT
v4.0.0 MIT
v3.0.0 MIT
v2.1.0 MIT