.zshrc: Adjust gmsmartresize function to remove colorspace specification

gm's manpage says RGB is the default so there's no need to specify
this. Furthermore, the W3C says that sRGB is the default color space
for the web anyways, so it's pointless to embed a color profile.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2015-09-05 18:02:50 +03:00
parent b4a54dd0e4
commit db19761f45
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

2
.zshrc
View File

@ -116,7 +116,7 @@ smartresize() {
# image slightly larger but includes quite a bit of useful(?) metadata # image slightly larger but includes quite a bit of useful(?) metadata
# stripping with `jpegtran -copy none` strips 50KB+ off # stripping with `jpegtran -copy none` strips 50KB+ off
gmsmartresize() { gmsmartresize() {
gm mogrify -filter Triangle -define filter:support=2 -thumbnail $2 -unsharp 0.25x0.08+8.3+0.045 -dither -quality 82 -define jpeg:fancy-upsampling=off -define png:compression-filter=5 -define png:compression-level=9 -define png:compression-strategy=1 -define png:exclude-chunk=all -interlace none -colorspace RGB -output-directory $3 $1 gm mogrify -filter Triangle -define filter:support=2 -thumbnail $2 -unsharp 0.25x0.08+8.3+0.045 -dither -quality 82 -define jpeg:fancy-upsampling=off -define png:compression-filter=5 -define png:compression-level=9 -define png:compression-strategy=1 -define png:exclude-chunk=all -interlace none -output-directory $3 $1
} }
export PATH export PATH