Image Field Type v1.3

Ryan Thompson Releases


We've given our Image field type some much needed love! This is a minor update but corrects some critical issues.

Image Field Type V1 3

Click to Crop

Images will on longer initialize a cropper by default. The behavior is very similar to the file field type and you now click "Crop" to initialize a cropper to work with the image.

This change fixes a slew of issues that bubbled up from the field type being loaded asynchronously in repeaters, grids, and also addresses issues that occurred when the field type was in a non-open tab within the form. All in all the behavior is much more reliable now.

By avoiding the cropper UI initially we also save a lot of screen real estate!

Upgrading

All you need to do is update your project's composer.json to require the new version:

"anomaly/image-field_type": "~1.3.0"

- Ryan


dwains - 3 weeks ago

Nice finally 😄 thanks Ryan.

dwains - 3 weeks ago

@ryanthompson What about images ft so this supports multiple images which also adds a crop button to each item like the files ft or just use this in a repeater you say?

ryanthompson - 3 weeks ago

@dwains Yep definitely use it in a repeater. I try to rely on putting components together rather than making new ones whenever it's possible and makes sense 😊

John Ashton - 3 weeks ago

@ryanthompson - Will this field type be able to support resize on upload - as was the case with Pyro 2.x etc... or will this requirement be best served in another FT ?

ryanthompson - 3 weeks ago

You can upload and crop OR select an existing file and crop that too. The crop data lives with the entry so you can crop a single source image umpteen different times. Hope that answers your question!


Leave a Comment