Skip to content

Commit

Permalink
Add example
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Nov 28, 2019
1 parent 5ed9d7e commit c2ffa18
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,20 @@ optional arguments:
1050x1400 -> 800x1067
458092 bytes -> 78089 bytes

6. Process images greater than 50KB (50*1024 bytes) only:
6. Process images greater than 50KiB only:

$ imgp -wrackx 1366x1000 -s 51200

7. Generate thumbnail of the last modified file in the current dir:

#!/usr/bin/env sh

thumb64 ()
{
pop=$(ls -1t | head -1)
imgp -acx 64x64 "$pop"
}

### Developers

1. Copyright © 2016-2019 [Arun Prakash Jana](https://github.com/jarun)
Expand Down
17 changes: 16 additions & 1 deletion imgp.1
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,26 @@ Source omitted. Processing current directory...
.EE
.PP
.IP 6. 4
Process images greater than 50KB (50*1024 bytes) only:
Process images greater than 50KiB only:
.PP
.EX
.IP
.B $ imgp -wrackx 1366x1000 -s 51200
.EE
.PP
.IP 7. 4
Generate thumbnail of the last modified file in the current dir:
.PP
.EX
.IP
.B #!/usr/bin/env sh
thumb64 ()
{
pop=$(ls -1t | head -1)
imgp -acx 64x64 "$pop"
}
.EE
.SH AUTHORS
Arun Prakash Jana <[email protected]>
.SH HOME
Expand Down

0 comments on commit c2ffa18

Please sign in to comment.