Bad jpg image quality
Posted: 2007-10-08T14:59:20-07:00
Hi!
I wrote a bash script that draw borders around images. But, after executing set of commands, image quality get much worse. Script is:
Results:
Original:
http://img128.imageshack.us/img128/812/ ... t01ig5.jpg
Result (much worse, look for example at red colored parts of image)
http://img505.imageshack.us/img505/171/ ... t01hy0.jpg
Can I do something here to retain image quality and get borders like that one?
Thanks in advance,
Ivan
I wrote a bash script that draw borders around images. But, after executing set of commands, image quality get much worse. Script is:
Code: Select all
#! /bin/bash
mkdir bordered
cp *.jpg ./bordered
cd bordered
mogrify -border 1x1 -bordercolor "rgb(0,0,0)" *.jpg
mogrify -border 8x8 -bordercolor "rgb(255,255,255)" *.jpg
mogrify -border 2x2 -bordercolor "rgb(0,0,0)" *.jpg
mogrify -border 2x2 -bordercolor "rgb(255,255,255)" *.jpg
mogrify -border 2x2 -bordercolor "rgb(0,0,0)" *.jpg
mogrify -border 8x8 -bordercolor "rgb(255,255,255)" *.jpg
mogrify -border 1x1 -bordercolor "rgb(0,0,0)" *.jpg
Original:
http://img128.imageshack.us/img128/812/ ... t01ig5.jpg
Result (much worse, look for example at red colored parts of image)
http://img505.imageshack.us/img505/171/ ... t01hy0.jpg
Can I do something here to retain image quality and get borders like that one?
Thanks in advance,
Ivan