All Projects → sylvainjule → Kirby Autofocus

sylvainjule / Kirby Autofocus

Licence: mit
Content aware image cropping for Kirby. Kirby 2 and 3.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Kirby Autofocus

Korkut
Quick and simple image processing at the command line. 🔨
Stars: ✭ 310 (+785.71%)
Mutual labels:  image, crop
Smartcircle
✂️Automatically determine where to crop a circular image out of a rectangular.
Stars: ✭ 29 (-17.14%)
Mutual labels:  image, crop
Tkimageview
An easy way to crop an image.
Stars: ✭ 342 (+877.14%)
Mutual labels:  image, crop
Use Image Color
🎨 A hook to grab a color palette from images. Render a skeleton color while your original image still loading.
Stars: ✭ 222 (+534.29%)
Mutual labels:  hook, image
Flutter image cropper
A Flutter plugin for Android and iOS supports cropping images
Stars: ✭ 723 (+1965.71%)
Mutual labels:  image, crop
Kirby Annotator
Kirby field for adding notes to images by pinning them to specific coordinates. Kirby 2 and 3.
Stars: ✭ 84 (+140%)
Mutual labels:  kirby, image
Sharp
High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, AVIF and TIFF images. Uses the libvips library.
Stars: ✭ 21,131 (+60274.29%)
Mutual labels:  image, crop
Igrphototweaks
Drag, Rotate, Scale and Crop
Stars: ✭ 212 (+505.71%)
Mutual labels:  image, crop
React Native Image Crop Picker
iOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping
Stars: ✭ 5,261 (+14931.43%)
Mutual labels:  image, crop
Fmphotopicker
A modern, simple and zero-dependency photo picker with an elegant and customizable image editor
Stars: ✭ 428 (+1122.86%)
Mutual labels:  image, crop
Jekyll Spaceship
🚀 A Jekyll plugin to provide powerful supports for table, mathjax, plantuml, mermaid, emoji, video, audio, youtube, vimeo, dailymotion, soundcloud, spotify, etc.
Stars: ✭ 196 (+460%)
Mutual labels:  hook, image
Cdpimagecrop
CDPImageCrop can zoom,move and crop a image and automatically save into the album,details see demo.
Stars: ✭ 6 (-82.86%)
Mutual labels:  image, crop
Android Imagecropview
android image crop library
Stars: ✭ 225 (+542.86%)
Mutual labels:  image, crop
Croppr.js
A vanilla JavaScript image cropper that's lightweight, awesome, and has absolutely zero dependencies.
Stars: ✭ 294 (+740%)
Mutual labels:  image, crop
React Native Perspective Image Cropper
Perform custom crop, resizing and perspective correction 📐🖼
Stars: ✭ 223 (+537.14%)
Mutual labels:  image, crop
Imaging
Imaging is a simple image processing package for Go
Stars: ✭ 4,023 (+11394.29%)
Mutual labels:  image, crop
Cropiwa
📐 Configurable Custom Crop widget for Android
Stars: ✭ 2,185 (+6142.86%)
Mutual labels:  image, crop
Rskimagecropper
An image cropper / photo cropper for iOS like in the Contacts app with support for landscape orientation.
Stars: ✭ 2,371 (+6674.29%)
Mutual labels:  image, crop
Tocropviewcontroller
A view controller for iOS that allows users to crop portions of UIImage objects
Stars: ✭ 4,210 (+11928.57%)
Mutual labels:  image, crop
Flyimg
Dockerized PHP7 application runs as a Microservice to resize and crop images on the fly. Get optimised images with MozJPEG, WebP or PNG using ImageMagick. Includes face detection, cropping, face blurring, image rotation and many other options. Abstract storage based on FlySystem in order to store images on any provider (local, AWS S3...).
Stars: ✭ 762 (+2077.14%)
Mutual labels:  image, crop

Kirby Autofocus

Content aware image cropping for kirby.

screenshot-autofocus-k3


Overview

This plugin is completely free and published under the MIT license. However, if you are using it in a commercial project and want to help me keep up with maintenance, please consider making a donation of your choice or purchasing your license(s) through my affiliate link.

Autofocus is an extension for the Focus plugin.

This plugin acts as a JS image.upload hook, processing the / each image with the focus component, determining its appropriate focus point and saving it to the meta data file.

Please note that :

  • This is an experimental plugin. The algorithm isn't foolproof, it works best with certain kinds of images, and obviously the more the context of an image is « clear », the more its efficiency increases. I have included a sample test with 30 images, as well as a way to run your own.

  • The aim of this plugin is therefore to provide a « better than nothing » fallback to the Focus plugin whenever the editor didn't specify a focus point (omission, too many images, you name it).

  • The plugin will only process images uploaded with the files section. It will not process replaced images. Suggestions welcome if you find a way to register a better hook.


Installation

If you are looking to use this plugin with Kirby 2, please switch to the kirby-2 branch.

First, you must install the Focus plugin.

Note : the plugin would still work without it, but apart from adding the focus point to the .txt file, you wouldn't be able to preview / override / use it with the Focus methods.

Once it is done, download and copy this repository to /site/plugins/autofocus

Alternatively, you can install it with composer: composer require sylvainjule/autofocus


Usage

There's nothing else to do.

The plugin will now process any image you upload through the panel, find a focus point, and use the flokosiol.focus.field.key to write the coordinates. Then you can use the Focus plugin as you usually do.


Run tests

I have included a sample test with 30 images.

You can run you own tests to determine if the algorithm suits your needs. One simple way is to add the focus field in your blueprint, so that you can have a preview of where the focus is set for every image you upload.

An other way is to open the index.html of the _test folder in a browser, and upload an image. The images used for calculation will be displayed on the page, as well as the coordinates in the console.


Credits


License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].