Ubuntuで画像のサイズを変更または回転する方法
問題
Ubuntuには現在の画面をキャプチャするための非常に優れた組み込みのスクリーンショットツールがありますが、キャプチャした写真のファイルサイズが大きすぎるため、画像のサイズ変更は常に必要です。
溶液
Windowsの多くのスクリーンショットツールは、画像のサイズ変更機能を提供しますが、驚くべきことに、これはデフォルトではUbuntuによって提供されていません。 「nautilus-image-converter」をインストールして、Ubuntuのイメージのサイズ変更または回転に使用できます。
1. apt install nautilus-image-converter
apt-getコマンドを発行してnautilus-image-converterをインストールします。20mb前後です。数分待ちます。
sudo apt-get install nautilus-image-converter
2. Ubuntuからログアウトする/ nautilusサービスを再起動する
インストール後、サービスを再起動する必要があります。 ログアウトして再度ログインするか、次のコマンドを発行してnautilusを再起動します。
nautilus -q; nautilus &
出力
example@example-laptop:~$ nautilus -q; nautilus & example@example-laptop:~$ Initializing nautilus-image-converter extension Nautilus-Share-Message: Called "net usershare info" but it failed: 'net usershare' returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. Error No such file or directory Please ask your system administrator to enable user sharing. ** (nautilus:21508): WARNING **: Unable to add monitor: Not supported example@example-laptop:~$
警告は無視してください。画像のサイズ変更の準備ができています。
3. 写真を右クリックします
画像を右クリックすると、「画像のサイズ変更...」と「画像の回転...」という2つの新しいオプションが表示されます。