Search found 21 matches
- 2017-09-20T19:50:19-07:00
- Forum: Users
- Topic: Alternative to "-morphology dilate octagon".
- Replies: 11
- Views: 14528
Re: Alternative to "-morphology dilate octagon".
Convolve shaved a few seconds but not enough. Thank you for your help I will start looking into some of the other options discussed here.
- 2017-09-20T15:08:43-07:00
- Forum: Users
- Topic: Alternative to "-morphology dilate octagon".
- Replies: 11
- Views: 14528
Re: Alternative to "-morphology dilate octagon".
I am noticing convolve treats things a little differently, as a weighted sum. I would imagine this would be faster than "Dilate" because it is performing an operation on every opaque pixel. Also didn't expect the non IM ref for the library :) Thanks Fred(@fmw42), let me see how convolve works first.
- 2017-09-20T13:09:42-07:00
- Forum: Users
- Topic: Alternative to "-morphology dilate octagon".
- Replies: 11
- Views: 14528
Re: Alternative to "-morphology dilate octagon".
I may have a better time integrating it in python. There is a intermediary step I can hook into to achieve my goal. There are a few options it seems, would there be a official library for python that can tackle this type of editing granularity?
- 2017-09-19T13:04:13-07:00
- Forum: Users
- Topic: Alternative to "-morphology dilate octagon".
- Replies: 11
- Views: 14528
Re: Alternative to "-morphology dilate octagon".
The primary leg of the time comes from the "morphology" kernel. I am wondering if creating my own kernel could speed things up?
- 2017-09-19T11:54:09-07:00
- Forum: Users
- Topic: Alternative to "-morphology dilate octagon".
- Replies: 11
- Views: 14528
Re: Alternative to "-morphology dilate octagon".
That is much quicker @snibgo and the shape output is identical to that step, it took 24 seconds . Thank you very much! This is a monumental improvement but still very long, I have a goal of making this happen in a second if possible. This may help me find an even faster solution once I understand ...
- 2017-09-19T11:01:59-07:00
- Forum: Users
- Topic: Alternative to "-morphology dilate octagon".
- Replies: 11
- Views: 14528
Alternative to "-morphology dilate octagon".
Hello, I am trying to find an alternative to using " -channel A -morphology dilate octagon:61 " because it takes 1 minute 59 seconds to complete. I have tried using " bordercolor none -border 60x60 -background White -alpha background -channel A -blur 60x10 -level 0,0% -threshold 0 " but the shape ...
- 2016-09-15T17:51:20-07:00
- Forum: Users
- Topic: Position asset in chain.
- Replies: 2
- Views: 2944
Position asset in chain.
My Version: ImageMagick 6.9.1-10 Q16 x86_64 2015-07-26 Platform: Mac OSX El Capitan 10.11.6 Having trouble finding a way that would reposition layer 0 via -geometry -repage before placing it on underlay... How can I keep this as one command to position the edits made to artwork.png and resize and ...
- 2016-09-15T17:44:41-07:00
- Forum: Users
- Topic: Crop with PNG on PNG [resolved]
- Replies: 8
- Views: 6376
Re: Crop with PNG on PNG
Okay, here is what I did to achieve:
Code: Select all
convert \( artwork.png -gravity center -extent 2000x2000 -fuzz 9% -transparent white \) \
alpha.png -gravity center -alpha On -compose copy_opacity \
-composite -fuzz 9% -transparent white altered.png
- 2016-09-14T20:17:00-07:00
- Forum: Users
- Topic: Crop with PNG on PNG [resolved]
- Replies: 8
- Views: 6376
Re: Crop with PNG on PNG
I should clarify. I want to keep the transparent area transparent from "artwork.png".
- 2016-09-14T20:15:04-07:00
- Forum: Users
- Topic: Crop with PNG on PNG [resolved]
- Replies: 8
- Views: 6376
Re: Crop with PNG on PNG
Thank you Fred. Much closer. The second output is closer to what I am looking to do "out2.png". I was able to achieve that with flatten : convert artwork.png -flatten alpha.png -gravity Center -alpha Off -compose copy_opacity -composite png:out.png I want to keep the white area transparent also ...
- 2016-09-14T19:44:42-07:00
- Forum: Users
- Topic: Crop with PNG on PNG [resolved]
- Replies: 8
- Views: 6376
Re: Crop with PNG on PNG
Placed platform in above also. Sorry.
- 2016-09-14T19:38:13-07:00
- Forum: Users
- Topic: Crop with PNG on PNG [resolved]
- Replies: 8
- Views: 6376
Crop with PNG on PNG [resolved]
Anyone have a suggestion for how I can alter the following command to crop one PNG with another PNG? convert artwork.png alpha.png -gravity Center -alpha Off -compose copy_opacity -composite out.png Currently the issue I am seeing is on my existing PNG image a black block appears where another PNG ...
- 2016-02-22T17:46:23-07:00
- Forum: Users
- Topic: Command combination conflict, why? [SOLVED]
- Replies: 4
- Views: 5768
Re: Command combination conflict, why? [SOLVED]
It came down to the order of operations along with a few other things but in the end this command worked: convert \ \( xc:white[2000x2000\!] \) \ \( -clone 0 null: \( large.jpg -coalesce \) -gravity Center -layers Composite -layers Optimize \) \ \( -clone 0 null: \( medium.jpg -coalesce \) -gravity ...
- 2016-02-22T17:43:38-07:00
- Forum: Users
- Topic: Combine multiple commands into one
- Replies: 5
- Views: 22849
Re: Combine multiple commands into one
@anthony Thank you very much for the references.
- 2016-02-22T11:39:31-07:00
- Forum: Users
- Topic: Command combination conflict, why? [SOLVED]
- Replies: 4
- Views: 5768
Re: Command combination conflict, why?
@sergpush Apologize for the delay in response, went away for the weekend. Thank you for your rapid response. I gave your suggestion a try and it resolved the alpha transparency issue I was having. The layers still aren't being processed correctly, but at least one problem solved.