toycamera tint

A plethora of command-line scripts that perform geometric transforms, blurs, sharpens, edging, noise removal, and color manipulations.
Post Reply
corbanb
Posts: 17
Joined: 2013-09-29T19:29:36-07:00
Authentication code: 6789

toycamera tint

Post by corbanb »

Hi,

I am trying to use the toycamera filter in combination with -t. From what I can see there is a bug in the code that would allow this to work correct. Below is my command and the output.

Code: Select all

$ toycamera -i 60 -o 150 -d 5 -s 10 -c 10 -S 2 -t ffa930 -a 10 in.jpg out.jpg

OUTPUT
convert: unable to open image `ffa930': No such file or directory @ error/blob.c/OpenBlob/2643.
convert: no decode delegate for this image format `ffa930' @ error/constitute.c/ReadImage/552.
I have tried to wrap the color in quotes, add 0x or # in front and of the color and nothing seems to work for it. Is it possible hex values are not valid? Any thoughts?

Thanks!
corbanb
Posts: 17
Joined: 2013-09-29T19:29:36-07:00
Authentication code: 6789

Re: toycamera tint

Post by corbanb »

solved it!

-fill is the option and it requires the colors to be in these formats - http://www.imagemagick.org/script/comma ... s.php#fill
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: toycamera tint

Post by fmw42 »

the following should work. if not let me know.


toycamera -i 60 -o 150 -d 5 -s 10 -c 10 -S 2 -t "#ffa930" -a 10 in.jpg out.jpg

see http://www.imagemagick.org/script/color.php for valid IM colors. Note that rgb(..) and hex, need to be enclosed in quotes at least on unix systems
Post Reply