タグ

関連タグで絞り込む (2)

タグの絞り込みを解除

photo cropとvue libに関するbleu-bleutのブックマーク (1)

  • vue-cropperjsのオプションメモ - Qiita

    はじめに vue-cropperjsでは呼び出し時にv-bindで各オプションを設定します。 template内での記載は以下のようになります。 <vue-cropper ref="cropper" :view-mode="2" :auto-crop-area="1" :aspect-ratio="16 / 10" :min-container-width="640" :min-container-height="360" :img-style="{ 'width': '500px', 'height': '500px' }" drag-mode="none" /> 画像切り抜き時のアスペクト比を固定する 画像切り抜き時のアスペクト比を固定したい場合、 :aspect-ratio="width / height" と設定すると比率が固定されたまま切り抜きを実行できます。 16:9の画像を設

    vue-cropperjsのオプションメモ - Qiita
  • 1