Search found 10 matches

by oeoeo
2015-12-08T12:30:33-07:00
Forum: Users
Topic: Cut/crop sine wave shape into image?
Replies: 17
Views: 7387

Re: Cut/crop sine wave shape into image?

Did you try my alternate suggestions?
Yep. I get the syntax error message.

Mysteries of the cosmos...

Either way, I appreciate your help and commend your abilities. It's been fun getting my head in bash scripting.
by oeoeo
2015-12-08T11:11:51-07:00
Forum: Users
Topic: Cut/crop sine wave shape into image?
Replies: 17
Views: 7387

Re: Cut/crop sine wave shape into image?

This is more of a proof-of-concept right now but I work for a company that (surprise!!) does internet ads. We currently pay people to build them and I'm toying with the idea of making aesthetically "interesting" (and I use the term loosely) ads automagically. This sine wave one was one submitted to ...
by oeoeo
2015-12-07T16:35:29-07:00
Forum: Users
Topic: Cut/crop sine wave shape into image?
Replies: 17
Views: 7387

Re: Cut/crop sine wave shape into image?

ImageMagick Version Version: ImageMagick 6.9.1-4 Q16 x86_64 2015-06-02 http://www.imagemagick.org Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC License: http://www.imagemagick.org/script/license.php Features: Cipher DPC Modules OpenMP Delegates (built-in): bzlib cairo djvu fftw ...
by oeoeo
2015-12-07T16:18:38-07:00
Forum: Users
Topic: Cut/crop sine wave shape into image?
Replies: 17
Views: 7387

Re: Cut/crop sine wave shape into image?

Weird. When I run your code, I get a bunch of the aforementioned "(standard in) 1: syntax error" messages (one for each set of coords, I'm guessing??)

...and then the output image looks like this:
Image
by oeoeo
2015-12-07T16:07:04-07:00
Forum: Users
Topic: Cut/crop sine wave shape into image?
Replies: 17
Views: 7387

Re: Cut/crop sine wave shape into image?

ha! oops. yeah, good catch!
by oeoeo
2015-12-07T15:44:45-07:00
Forum: Users
Topic: Cut/crop sine wave shape into image?
Replies: 17
Views: 7387

Re: Cut/crop sine wave shape into image?

Oddly enough, it looks like there are 2 pixels not getting nuked.

See them on the far left hand side under wave?

Image

I'll try to debug a bit but perhaps it's obvious within the coords??

Thanks again!
by oeoeo
2015-12-07T15:39:26-07:00
Forum: Users
Topic: Cut/crop sine wave shape into image?
Replies: 17
Views: 7387

Re: Cut/crop sine wave shape into image?

Yep. Did that. Thanks though. Actually stepped through it with someone with MUCH more bash scripting experience than me and got it to work. Needed a couple changes but so far so good. For those playing along at home, this is what it took: #1/bin/bash infile="lena.jpg" amplitude=10 row=128 ww ...
by oeoeo
2015-12-07T13:24:44-07:00
Forum: Users
Topic: Cut/crop sine wave shape into image?
Replies: 17
Views: 7387

Re: Cut/crop sine wave shape into image?

Hmmm...I'm running this as a bash script (which may or may not be the correct thing to do) from a dir with "lena.jpg" at the same level as the script (which I'm calling 'thing.sh'). So I do this: me@place$ ./thing.sh ...and I get a multitude of these messages: (standard_in) 1: syntax error (standard ...
by oeoeo
2015-12-07T10:47:49-07:00
Forum: Users
Topic: Cut/crop sine wave shape into image?
Replies: 17
Views: 7387

Re: Cut/crop sine wave shape into image?

Thanks! I'll poke around with that. Much appreciated. And just for the record, here's the version info: Version: ImageMagick 6.9.1-4 Q16 x86_64 2015-06-02 http://www.imagemagick.org Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC License: http://www.imagemagick.org/script/license.php ...
by oeoeo
2015-12-04T17:49:46-07:00
Forum: Users
Topic: Cut/crop sine wave shape into image?
Replies: 17
Views: 7387

Cut/crop sine wave shape into image?

Hi all. I feel like a did a pretty decent search but I didn't come up with much. I'm trying to achieve something like this: http://i.imgur.com/AYhUjm2.png Basically using imagemagick to cut a curve into an image. I'm assuming something along these lines (one must rotate it twice to get to the bottom ...