> For the complete documentation index, see [llms.txt](https://docs.ccfolia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ccfolia.com/update/v1.28/trimming.md).

# 前景・背景の自動トリミング機能

***

## 前景・背景の自動トリミング

これまで、前景や背景に画像を設定すると、「フィールド設定」の幅に合うように画像の比率が変更されていました。v1.28で、画像の比率を変えずに前景や背景に設定し、表示しきれない部分をトリミングすることができるようになりました。

***

### 設定方法

1. 右下の![](/files/alNqKuezvDGSAToJkOe3)ボタン>前景・背景を変更からフィールド設定を開く
2. 「画像を自動トリミングする」のトグルスイッチをONにする

以下の画像のように「画像を自動トリミングする」の横が青くなっていれば自動トリミング機能が適用されています。

<div align="center"><figure><img src="/files/BgVKD4uHtFFG1edARFXM" alt="" width="292"><figcaption></figcaption></figure></div>

***

### 自動トリミングを適用しない・する場合の比較

以下の正方形の画像を、横長のフィールドに前景として設定してみます。

<div align="center"><figure><img src="/files/DW6krduGEV6BAub761h5" alt="" width="188"><figcaption></figcaption></figure></div>

#### 自動トリミング機能をオフにした場合

<div align="center"><figure><img src="/files/3hdzW31a1LKIEMoOa1eP" alt="" width="498"><figcaption></figcaption></figure></div>

上下が圧縮されます。

#### 自動トリミング機能をオンにした場合

<div align="center"><figure><img src="/files/20znR0nRiakboF4IcnyH" alt="" width="478"><figcaption></figcaption></figure></div>

上下がトリミングされます。
