Search found 20 matches

by imagefox87
2016-08-27T15:53:26-07:00
Forum: Users
Topic: How to batch composite / round corners?
Replies: 40
Views: 15820

Re: How to batch composite / round corners?

Ok, I finally got it to work. Just needed more ^ everywhere! Thank you everyone.
by imagefox87
2016-08-27T15:06:58-07:00
Forum: Users
Topic: How to batch composite / round corners?
Replies: 40
Views: 15820

Re: How to batch composite / round corners?

Ok here are my errors after adding all the ^ at the right places: '(' is not a recognized as an internal or external command, operable program or batch file. '+swap'is not recognized is an internal or external command, operable program or batch file. for %%g in (*.png) do ( convert %%g ^ null: ^ ^( ...
by imagefox87
2016-08-27T14:36:28-07:00
Forum: Users
Topic: How to batch composite / round corners?
Replies: 40
Views: 15820

Re: How to batch composite / round corners?

@snibgo, I took out the ^ outside the convert. Still no output. for %%g in (*.png) do ( convert %%g null: ^ ^( -size 25x25 xc:black -fill white ^ -draw "circle 25,25 25,0" -alpha off ^ -write mpr:corner +delete ^) ^( -clone 0 -fill white -colorize 100%% ^ ^( mpr:corner ^) -gravity northwest -compose...
by imagefox87
2016-08-27T14:21:33-07:00
Forum: Users
Topic: How to batch composite / round corners?
Replies: 40
Views: 15820

Re: How to batch composite / round corners?

Ok thanks fixed, but I still have no output: for %%g in (*.png) do ^( convert %%g ^( -size 25x25 xc:black -fill white ^ -draw "circle 25,25 25,0" -alpha off ^ -write mpr:corner +delete ^) ^( -clone 0 -fill white -colorize 100%% ^ ^( mpr:corner ^) -gravity northwest -compose over -composite ^ ^( mpr:...
by imagefox87
2016-08-27T14:05:53-07:00
Forum: Users
Topic: How to batch composite / round corners?
Replies: 40
Views: 15820

Re: How to batch composite / round corners?

I turned off the echo. However, the script runs fast and then closes. I have no output in my output folder. No errors seen. I added ^ before ( and after ). for %%g in (*.png) do ^( convert %%g ^( -size 25x25 xc:black -fill white ^ -draw "circle 25,25 25,0" -alpha off ^ -write mpr:corner +delete ) ^ ...
by imagefox87
2016-08-27T13:10:18-07:00
Forum: Users
Topic: How to batch composite / round corners?
Replies: 40
Views: 15820

Re: How to batch composite?

His code above that you reference loads all the images in memory. You should take my single image solution above (at http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=30365&start=15#p137074) and put a for loop around it. Sorry, I do not code Windows bat scripts, so cannot be of much h...
by imagefox87
2016-08-27T12:57:22-07:00
Forum: Users
Topic: How to batch composite / round corners?
Replies: 40
Views: 15820

Re: How to batch composite?

All of your codes work but the processing time is very large and it uses the RAM. Hence, I want to use a for loop that saves an image as soon as that image is processed rather than storing it in RAM. I'm using this code to process up to 12,000 images. Other programs like XnConvert usually take 3-4 h...
by imagefox87
2016-08-26T21:20:44-07:00
Forum: Users
Topic: How to batch composite / round corners?
Replies: 40
Views: 15820

Re: How to batch composite?

@fmw42: This is also a great method thank you! I'm assuming that the radius of the circle you draw controls the curvature of the rounded corners?
by imagefox87
2016-08-26T19:10:25-07:00
Forum: Users
Topic: How to batch composite / round corners?
Replies: 40
Views: 15820

Re: How to batch composite?

If you ever show up in the area of Peoria, Illinois, you're buying dinner. ;) Sure, np man haha. I was going to say a beer, but dinner is cool with me too. Btw, if you ever play the card game, Yu-Gi-Oh, let me know. I can give you a free version of a MSE master template that is currently the best h...
by imagefox87
2016-08-26T18:56:02-07:00
Forum: Users
Topic: How to batch composite / round corners?
Replies: 40
Views: 15820

Re: How to batch composite?

@GeeMack: Thank you so much man! You're a life saver. Glad to know that people provide code here for free. :)
by imagefox87
2016-08-26T17:52:52-07:00
Forum: Users
Topic: How to batch composite / round corners?
Replies: 40
Views: 15820

Re: How to batch composite?

fmw42 wrote:As far as I know, -chop will only chop full rows or columns. You will have to use -crop with -gravity 4 times to get all 4 corners.
How about -region geometry? Because the northeast,southeast, northwest, and southwest are not specific enough for gravity.
by imagefox87
2016-08-26T17:41:22-07:00
Forum: Users
Topic: How to batch composite / round corners?
Replies: 40
Views: 15820

Re: How to batch composite?

Also do you guys know how to use -chop in order to cut just 12x12 from all 4 corners?
by imagefox87
2016-08-26T16:41:26-07:00
Forum: Users
Topic: How to batch composite / round corners?
Replies: 40
Views: 15820

Re: How to batch composite?

Thanks I figured it out!

for %g in (*.png) do composite -gravity center %g border\border.png batch\%g
by imagefox87
2016-08-26T15:56:02-07:00
Forum: Users
Topic: How to batch composite / round corners?
Replies: 40
Views: 15820

Re: How to batch composite?

One is the %G which is the *.png of card pics and the other is the border.png. What am I missing?
by imagefox87
2016-08-26T15:47:20-07:00
Forum: Users
Topic: How to batch composite / round corners?
Replies: 40
Views: 15820

Re: How to batch composite?

How's this:

FOR %G IN (*.png) DO composite -gravity center border\border.png batch\%G