---
title: "Smart crop animated icon"
description: "Smart crop animated icon (AI · Creation). Two crop corners slide in around the subject, then the missing corners draw to close the frame."
canonical: https://generativeicons.com/icons/smart-crop/
---

# Smart crop animated icon

Two crop corners slide in around the subject, then the missing corners draw to close the frame.

- Id: `smart-crop`
- Category: AI · Creation
- Search terms: auto crop, ai crop, crop image, crop photo, crop tool, cropping, reframe, auto reframe, frame subject, crop to fit
- Two states: prepared to result, played forward and back
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.com/assets/smart-crop.lottie (dotLottie, 8539 bytes, sha256 a3a28e7140f054f289091c21936c33386a1ed0e4590996fca7f4216133e106ad)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add smart-crop
```

## React

```tsx
// npm install @lottiefiles/generative-icons-react
'use client';
import { AnimatedIcon } from '@lottiefiles/generative-icons-react';
import icon, { src } from './generative-icons/smart-crop.mjs';

export function SmartCropIcon() {
  return <AnimatedIcon icon={icon} src={src} size={32}
    color="#ffffff" variant="outline" weight={2}
    motion="light" theme="dark" />;
}
```

## JavaScript

```js
import { createIcon } from '@lottiefiles/generative-icons-runtime';
import icon, { src } from './generative-icons/smart-crop.mjs';

const handle = await createIcon(canvas, {
  icon, src,
  color: '#ffffff', style: 'outline', weight: 2,
  motion: 'light', theme: 'dark'
});
button.addEventListener('click', () => handle.play());
// On removal: handle.destroy();
```

More: https://generativeicons.com/icons/smart-crop/ · https://generativeicons.com/api/icons/smart-crop
