Draw text on jpg without auto-correction
Posted: 2015-10-14T00:30:21-07:00
To display an orange text on a grayscale JPG image I use the following command in a bash script:
But the converted image is much brighter and different. It seems there is some correction automatically running. How can I control this?
Original image:
img_00000575.jpg JPEG 736x480 736x480+0+0 8-bit PseudoClass 256c 23.1KB 0.000u 0:00.000
Converted image:
converted/img_00000575.jpg JPEG 736x480 736x480+0+0 8-bit DirectClass 76.9KB 0.000u 0:00.000
Code: Select all
convert -font Ubuntu-Mono-Regular -quality 100% -pointsize 20 -fill DarkOrange1 \
-draw "text 7,22 \"$position\"" \
-draw "text 7,472 \"BGS\"" \
$filename "converted/$filename"
Original image:
img_00000575.jpg JPEG 736x480 736x480+0+0 8-bit PseudoClass 256c 23.1KB 0.000u 0:00.000
Converted image:
converted/img_00000575.jpg JPEG 736x480 736x480+0+0 8-bit DirectClass 76.9KB 0.000u 0:00.000