I have a jpg image from a digital camera which I want to modify (resizing, border, rotation, shadow) for putting it on the web
The problem is that the background gets slightly different from what I define.
If I save the result in png format the background color is okay but not if I save it in jpg.
How can I create a JPG Image with the exact background color I defined?
I also noticed that the whole image is a little darker if I save it as jpg.
Here is what I am doing:
Code: Select all
convert haus_08.jpg \
-crop 2496x2038+0+0 \
-resize 352x288 +repage \
-bordercolor white -border 6 \
-bordercolor '#999' \
-border 1 \
-background none -rotate 3 \
\( +clone -background black -shadow 60x5+5+5 \) +swap \
-background '#bbddff' -flatten \
haus3.jpg
PNG
JPG
The background of the PNG Image is slightly lighter (as the whole image is).