Search found 4 matches
- 2015-08-22T09:21:13-07:00
- Forum: Users
- Topic: Trimming a photo that remains a few percent of padding
- Replies: 6
- Views: 2915
Re: Trimming a photo that remains a few percent of padding
Bash version: #!/bin/bash INPUT_FN=$1 PERCENT=$2 echo "Processing $INPUT_FN" FN=${INPUT_FN%.*} EXT=${INPUT_FN#*.} # trim with padding: TRIM_PARAMS=$(convert $INPUT_FN -fuzz ${PERCENT}% -format %@ info:) #echo "Params: $TRIM_PARAMS" set -- $(echo $TRIM_PARAMS | sed -e 's/[x+]/ /g') w=$1 h=$2 x=$3 y ...
- 2015-08-22T07:51:10-07:00
- Forum: Users
- Topic: Trimming a photo that remains a few percent of padding
- Replies: 6
- Views: 2915
Re: Trimming a photo that remains a few percent of padding
@snibgo: I think it is the thing I'm looking for! Thanks!
I will rewrite it into a bash script and paste here my result.
I will rewrite it into a bash script and paste here my result.
- 2015-08-22T06:50:21-07:00
- Forum: Users
- Topic: Trimming a photo that remains a few percent of padding
- Replies: 6
- Views: 2915
Re: Trimming a photo that remains a few percent of padding
How you are going to use the code eg. batch, shell, php etc. Linux shell. You do not want to add padding but stop the trim removing so much? Reducing the fuzz value should help. No. Decreaing the fuzz value causes that some elements like shadows will not be trimmed as I expect. I want to define ...
- 2015-08-22T06:26:09-07:00
- Forum: Users
- Topic: Trimming a photo that remains a few percent of padding
- Replies: 6
- Views: 2915
Trimming a photo that remains a few percent of padding
Hello. I want to create a batch file to automatically trim my photos of some items. I used: convert in.JPG -fuzz 50% -trim out.JPG But I want to remain some padding around trimmed imaged. How can I do it? Example: Input file: http://i.imgur.com/IXqVbz2.jpg Output file: http://i.imgur.com/Y3kVewZ.jpg ...