Mozilla JPEG Encoder Project (mozjpeg) は、libjpeg-turboをベースとした高効率なJPEG圧縮ライブラリです。本レポートは、WSL2環境でmozjpegをソースコードからビルドする際の手順と必要な依存関係について説明します。
- OS: Ubuntu 20.04.6 LTS (focal)
- カーネル: 5.15.153.1-microsoft-standard-WSL2
| [color] | |
| ui = true | |
| [core] | |
| pager = less -r | |
| autocrlf = input | |
| filemode = false | |
| quatepath = false | |
| editor = '/usr/bin/vim' | |
| precomposeunicode = true | |
| [push] |
| #!/usr/bin/env bash | |
| # エラーが発生した場合、およびパイプラインでエラーが発生した場合にスクリプトを終了する | |
| set -e | |
| set -o pipefail | |
| # --- ヘルプメッセージ --- | |
| usage() { | |
| cat <<EOF | |
| Usage: $(basename "$0") [OPTIONS] <directory> <quality> |
| #!/usr/bin/env bash | |
| # エラーが発生した場合、およびパイプラインでエラーが発生した場合にスクリプトを終了する | |
| set -e | |
| set -o pipefail | |
| # --- ヘルプメッセージ --- | |
| usage() { | |
| cat <<EOF | |
| Usage: $(basename "$0") [OPTIONS] <directory> <compression_level> |
| #!/usr/bin/env bash | |
| # エラーが発生した場合、およびパイプラインでエラーが発生した場合にスクリプトを終了する | |
| set -e | |
| set -o pipefail | |
| # --- ヘルプメッセージ --- | |
| usage() { | |
| cat <<EOF | |
| Usage: $(basename "$0") [OPTIONS] <directory> <quality> |
| Avoid overly verbose descriptions or unnecessary details. | |
| Generate a commit message that follows this format: | |
| - First line: A concise summary in English (max 50 characters) | |
| - Second line: Blank line | |
| - Third line and beyond: Detailed explanation in Japanese about what was changed and why | |
| Rules: | |
| 1. First line must be in English | |
| 2. Third line and beyond must be in Japanese |
| #!/bin/bash | |
| mkdir -p ../resized | |
| JPG=$(find . -name '*.jpg' -type f) | |
| PNG=$(find . -name '*.png' -type f) | |
| SVG=$(find . -name '*.svg' -type f) | |
| for img in $JPG | |
| do | |
| echo 'JPG: '$img |
| #If WinActive("ahk_exe Phasmophobia.exe") | |
| K:: | |
| Loop, 1 { ; Add Btn | |
| Click 2300, 1400 | |
| Sleep, 150 | |
| } | |
| Loop, 1 { ; Themometer All | |
| Click 2870, 710 | |
| Sleep, 100 |
| #If WinActive("ahk_exe Phasmophobia.exe") | |
| K:: | |
| Loop, 1 { ; Add Btn | |
| Click 2300, 1400 | |
| Sleep, 150 | |
| } | |
| Loop, 1 { ; Themometer 1 | |
| Click 2680, 710 | |
| } |