牌語備忘録 -pygo

あくまでもメモです。なるべくオフィシャルの情報を参照してください。

牌語備忘録 -pygo

exiftool でJPEG画像のEXIF情報の Orientation 表示を文字列ではなく番号で取得・更新するメモ

macOS 10.14.5 要 homebrew

$ brew install exiftool
$ exiftool -Orientation example.jpg
Orientation                     : Horizontal (normal)
$ exiftool -Orientation -n example.jpg
Orientation                     : 1
$ exiftool -Orientation=6 -n example.jpg
    1 image files updated
$ exiftool -Orientation -n example.jpg
Orientation                     : 6

参考

Nuxt.js の nuxt-link でオブジェクトの状態によってリンクをクリックできないようにするメモ

<template>
  <div>
    <nuxt-link :event="obj.isPublished ? 'click':''" :to="`/objects/${obj.id)}`">
      <span>{{ obj.name }}</span>
    </nuxt-link>
  </div>
</template>

obj.isPublished が true だったらクリックできるけど false だったらできないようになる