Search found 16 matches

by johnthomas1433
2013-11-03T21:04:14-07:00
Forum: Users
Topic: Implement This Filter
Replies: 31
Views: 9032

Re: Implement This Filter

Your e.jpg and e3.jpg are different. Look at the edges. You can get a bigger difference by tweaking the "-modulate" numbers. And what was the input file for my first command, the one that goes: %IM%convert effect.jpg ^ -channel R -level -73.91%%,81.91%% ^ -channel G -level -4%%,96%% ^ -channel B ...
by johnthomas1433
2013-11-03T20:04:19-07:00
Forum: Users
Topic: Implement This Filter
Replies: 31
Views: 9032

Re: Implement This Filter

Pasting your command into a command window works for me. What values do you have for WIDTH, HEIGHT, DIM and MAX? Please post e.jpg and e3.png. (Put them somewhere like dropbox.com and paste the URLs here.) e.jpg http://i.imgur.com/8HAtpW7.jpg e3.jpg http://i.imgur.com/tiHEiOC.png Windows command ...
by johnthomas1433
2013-11-03T19:55:26-07:00
Forum: Users
Topic: Implement This Filter
Replies: 31
Views: 9032

Re: Implement This Filter

The windows versions does look good! Thanks!

So if I want to have this filter to be applied to various images of different sizes, how to go about it ?
by johnthomas1433
2013-11-03T00:50:55-07:00
Forum: Users
Topic: Implement This Filter
Replies: 31
Views: 9032

Re: Implement This Filter

I just tried this code, and I'm getting the original image as the output (without any vignette or any modifications) convert e.jpg ( -clone 0 -modulate 100,0,100 ) ( -size %DIM%x%DIM% radial-gradient: -gravity Center -crop %MAX%x%MAX%+0+0 +repage -resize "%WIDTH%x%HEIGHT%^!" -negate -write mpr:VIG ...
by johnthomas1433
2013-11-03T00:18:02-07:00
Forum: Users
Topic: Implement This Filter
Replies: 31
Views: 9032

Re: Implement This Filter

I dont know what happened, but its working now. I can generate the vignette mask. Thanks!
Is there a way to use this vignette mask in the original image without having to save it to vig_mask.png ?
by johnthomas1433
2013-11-03T00:12:36-07:00
Forum: Users
Topic: Implement This Filter
Replies: 31
Views: 9032

Re: Implement This Filter

Pasting those commands into a command window works fine for me. D:\web\im> FOR /F "usebackq" %L IN (`identify -format "WIDTH=%w\nHEIGHT=%h" e.jpg`) DO set %L D:\web\im>set WIDTH=334 D:\web\im>set HEIGHT=334 D:\web\im> FOR /F %i IN ('identify -ping -format "%[fx:max(%WIDTH%,%HEIGHT%)]" xc:') DO set ...
by johnthomas1433
2013-11-02T21:40:33-07:00
Forum: Users
Topic: Implement This Filter
Replies: 31
Views: 9032

Re: Implement This Filter

As a matter of fact, I did try it, but its not working.. FOR /F "usebackq" %L IN (`identify -format "WIDTH=%w\nHEIGHT=%h" e.jpg`) DO set %L FOR /F %i IN ('identify -ping -format "%[fx:max(%WIDTH%,%HEIGHT%)]" xc:') DO set MAX=%i FOR /F %i IN ('identify -ping -format "%[fx:int(%MAX%*sqrt(2)+0.5)]" xc ...
by johnthomas1433
2013-11-02T20:07:41-07:00
Forum: Users
Topic: Implement This Filter
Replies: 31
Views: 9032

Re: Implement This Filter

snibgo wrote:These are all Windows "bat" commands, not bash. Paste them into a file and execute it. For example, paste into a file called "hello.bat" than at the command line type "hello".
Yes. I meant bat. How to implement it at command prompt ?
by johnthomas1433
2013-11-02T18:08:55-07:00
Forum: Users
Topic: Implement This Filter
Replies: 31
Views: 9032

Re: Implement This Filter

...
by johnthomas1433
2013-11-02T18:08:11-07:00
Forum: Users
Topic: Implement This Filter
Replies: 31
Views: 9032

Re: Implement This Filter

johnthomas1433 wrote:When I try the first line of your code in the command prompt

Code: Select all

FOR /F "usebackq" %%L IN (`%IM%identify -format "WIDTH=%%w\nHEIGHT=%%h" e.jpg`) DO set %%L
I'm getting the error as

Code: Select all

%%L was unexpected at this time
What am I doing wrong ?
My bad. Didnt see it as a bash script
by johnthomas1433
2013-11-02T17:57:33-07:00
Forum: Users
Topic: Implement This Filter
Replies: 31
Views: 9032

Re: Implement This Filter

When I try the first line of your code in the command prompt

Code: Select all

FOR /F "usebackq" %%L IN (`%IM%identify -format "WIDTH=%%w\nHEIGHT=%%h" e.jpg`) DO set %%L
I'm getting the error as

Code: Select all

%%L was unexpected at this time
What am I doing wrong ?
by johnthomas1433
2013-11-02T17:20:59-07:00
Forum: Users
Topic: Implement This Filter
Replies: 31
Views: 9032

Re: Implement This Filter

I'll create a mask for a vignette. This is white in the centre, black in the corners, with equal values in the centre of each edge (thus has elliptical contours). FOR /F "usebackq" %%L IN (`%IM%identify -format "WIDTH=%%w\nHEIGHT=%%h" e.jpg`) DO set %%L FOR /F %%i ^ IN ('%IM%identify ^ -ping ...
by johnthomas1433
2013-11-02T17:07:28-07:00
Forum: Users
Topic: Implement This Filter
Replies: 31
Views: 9032

Re: Implement This Filter

Also please identify your version of IM and platform. My IM version is 6.8.7-0 and I'm running it on Windows (will the same code produce a different effect in Linux or other OS ?) If the OP provides the link to the original page, we might get a hint. I see that fmw42 has already posted the link ...
by johnthomas1433
2013-11-02T16:58:18-07:00
Forum: Users
Topic: Implement This Filter
Replies: 31
Views: 9032

Re: Implement This Filter

Also please identify your version of IM and platform. My IM version is 6.8.7-0 and I'm running it on Windows (will the same code produce a different effect in Linux or other OS ?) If the OP provides the link to the original page, we might get a hint. I see that fmw42 has already posted the link ...
by johnthomas1433
2013-11-02T09:19:27-07:00
Forum: Users
Topic: Implement This Filter
Replies: 31
Views: 9032

Re: Implement This Filter

Thanks for your reply!

How to implement that fog effect ?