Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

ディレクトリ単位でiioptしたい #11

Open
bino98 opened this issue Apr 18, 2018 · 1 comment
Open

ディレクトリ単位でiioptしたい #11

bino98 opened this issue Apr 18, 2018 · 1 comment
Assignees

Comments

@bino98
Copy link

bino98 commented Apr 18, 2018

@selmertsx

背景

  • あるディレクトリに含まれるイメージを全てiioptしたい
  • 現状、1ファイルずつしかiioptできない。
    • ディレクトリに含まれるイメージ全てをiioptしたい欲求に答えるのに手間かかる。

課題

  • ディレクトリ単位でiioptしたい
  • ディレクトリ内で対応できるファイル形式がある場合、iioptして欲しい

解決のアイディア

  • --out-dir で出力してくれるディレクトリは、ソース元のディレクトリと同じ構造を持ったままがいい。
ex.

src_dir
└── image_a.png (1500kb)
     ├── image_b.jpg (1500kb)
     └── not_image.rb

↓

$ iiopt src_dir --out-dir converted_dir

↓

converted_dir
└── image_a.png (10kb)      # => converted
     ├── image_b.jpg (15kb) # => converted
     └── not_image.rb       # => no changed
@bino98 bino98 assigned bino98 and selmertsx and unassigned bino98 Apr 18, 2018
@bino98
Copy link
Author

bino98 commented Oct 5, 2018

find . -iname '*.jpg' -exec iiopt {} -o \; で対応してます

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants