Search found 16 matches
- 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 ...
- 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 ...
- 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 ?
So if I want to have this filter to be applied to various images of different sizes, how to go about it ?
- 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 ...
- 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 ?
Is there a way to use this vignette mask in the original image without having to save it to vig_mask.png ?
- 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 ...
- 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 ...
- 2013-11-02T20:07:41-07:00
- Forum: Users
- Topic: Implement This Filter
- Replies: 31
- Views: 9032
Re: Implement This Filter
Yes. I meant bat. How to implement it at command prompt ?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".
- 2013-11-02T18:08:55-07:00
- Forum: Users
- Topic: Implement This Filter
- Replies: 31
- Views: 9032
- 2013-11-02T18:08:11-07:00
- Forum: Users
- Topic: Implement This Filter
- Replies: 31
- Views: 9032
Re: Implement This Filter
My bad. Didnt see it as a bash scriptjohnthomas1433 wrote:When I try the first line of your code in the command promptI'm getting the error asCode: Select all
FOR /F "usebackq" %%L IN (`%IM%identify -format "WIDTH=%%w\nHEIGHT=%%h" e.jpg`) DO set %%L
What am I doing wrong ?Code: Select all
%%L was unexpected at this time
- 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
I'm getting the error as
What am I doing wrong ?
Code: Select all
FOR /F "usebackq" %%L IN (`%IM%identify -format "WIDTH=%%w\nHEIGHT=%%h" e.jpg`) DO set %%L
Code: Select all
%%L was unexpected at this time
- 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 ...
- 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 ...
- 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 ...
- 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 ?
How to implement that fog effect ?