Added --size and $image_size to set the size in pixels. Text is still dynamically padded according to image size.

This commit is contained in:
Dylan
2016-02-04 18:42:54 +11:00
parent a5e76d80fc
commit 4bb699a7f0
4 changed files with 37 additions and 45 deletions

5
1.1.md
View File

@@ -4,7 +4,7 @@
<sup>New screenfetch mode</sup>
- If `w3m` or `imagemagick` aren't installed we gracefully fallback to ascii mode.
- Automatically find the `w3mimgdisplay` path and fallback to ascii mode if not found.
- Automatically find the `w3m-img` path and fallback to ascii mode if not found. \[1\]
- Fix padding escape codes on BSD systems.
- Swap escape codes from `\e` to `\033` for consistency.
- We only move the cursor to the bottom of the terminal in w3m/iterm2 rendering modes.
@@ -16,6 +16,7 @@
- Removed `--colors` as it was apparently broken from day 1.
- Usage has been reformatted so that every flag has a value.
\[1\] Setting `$w3m_img_path` will make the script look there first.
### Image
@@ -24,8 +25,10 @@
- Added `--ascii_distro` to choose which distro's ascii logo to display.
- Added `--ascii_colors` and `$ascii_colors` which allow you to change the colors of the ascii art<br \>
and distro logos. \[2\]
- Added `--size` and `$image_size` to set the image size in pixels.
- Rename `--shuffledir` and `$shuffledir` to `shuffle_dir`.
- Rename `--imgtempdir` and `$imgtempdir` to `thumbnail_dir`
- Removed `--split_size` and `$split_size` as they were weird and confusing to use.
- Default thumbnail directory is now `$HOME/.cache/thumbnails/fetch`. Thanks @tudurom
- If `--image` and `--ascii` are left empty we fallback to ascii distro mode.