Search found 93 matches

by chaoscarnage
2017-05-25T12:25:58-07:00
Forum: Bugs
Topic: Masking issue with 7.0.5
Replies: 4
Views: 6284

Re: Masking issue with 7.0.5

Looks like that did the trick! Thanks a ton!
by chaoscarnage
2017-05-25T10:23:32-07:00
Forum: Bugs
Topic: Masking issue with 7.0.5
Replies: 4
Views: 6284

Masking issue with 7.0.5

Just updated from 6. We use this method of applying masks to images. convert blank.png img.png mask.png -composite img.png In 6 this worked great, in 7 the mask doesn't seem to be applied at all and the png also loses all transparency. Is there a command that I need to add in 7 to get the default be...
by chaoscarnage
2016-11-11T22:01:00-07:00
Forum: Users
Topic: Extend side of image
Replies: 13
Views: 18614

Re: Extend side of image

How do I do this in command line rose: rose-over.png Then use rose in my convert. It is not clear what you want. To use the rose: image, just use it. You do not have to rename it first. convert rose: ...some commands... rose_processed.png If you want to make a copy of the rose: image, you can do it...
by chaoscarnage
2016-11-11T10:11:47-07:00
Forum: Users
Topic: Extend side of image
Replies: 13
Views: 18614

Re: Extend side of image

If anyone has any direction I would appreciate it.
by chaoscarnage
2016-11-10T15:53:33-07:00
Forum: Users
Topic: Extend side of image
Replies: 13
Views: 18614

Re: Extend side of image

I do have one other, much simpler question. In the command line. How do I set an image to a name. for example...

How do I do this in command line
rose: rose-over.png
Then use rose in my convert.
by chaoscarnage
2016-11-10T15:07:22-07:00
Forum: Users
Topic: Extend side of image
Replies: 13
Views: 18614

Re: Extend side of image

What does +swap do? ImageMagick can work with stacks of images, not just single images. In that command I brought the input image in first, then I built the 400x400 white canvas second. That's their order in the stack. The "+swap" trades places of the last two images in the stack (or the ...
by chaoscarnage
2016-11-10T13:47:41-07:00
Forum: Users
Topic: Extend side of image
Replies: 13
Views: 18614

Re: Extend side of image

Having tested this, the faster method is:

Code: Select all

convert input.jpg -background white -gravity northwest -splice 50x30 -extent 400x400 result.jpg
by chaoscarnage
2016-11-10T13:42:12-07:00
Forum: Users
Topic: Extend side of image
Replies: 13
Views: 18614

Re: Extend side of image

Geemack, Thank you. I already have a splice example working, and I will try the other to see if its faster.

What does +swap do?

Also, if I want the xc to be none instead of white, will that work?
by chaoscarnage
2016-11-10T13:16:46-07:00
Forum: Users
Topic: Extend side of image
Replies: 13
Views: 18614

Re: Extend side of image

You can use "-splice" to add a row of a particular width to just one side of an image. Something like... convert image.jpg -background white -gravity northwest -splice 20x0 result.jpg ... would add a 20 pixel wide white row to the left side of the image. By setting "-background"...
by chaoscarnage
2016-11-10T12:04:18-07:00
Forum: Users
Topic: Extend side of image
Replies: 13
Views: 18614

Extend side of image

I want to do this, but extend a side of an image.

Code: Select all

convert buffer.png -extent YxX 
I do not know if I can use crop and just give it negative numbers.

Is there a command for this?
by chaoscarnage
2016-11-02T17:27:20-07:00
Forum: Users
Topic: Composite then crop and resize.
Replies: 5
Views: 4932

Re: Composite then crop and resize.

Okay, new question. Say I want to do 250 of these in a batch. Is there anyway to send them off to a server to have it done? I know about dev/null & I was using that for a ton of images being compiled into one. However, I am unaware if there is a method for me to build the commands and build a bu...
by chaoscarnage
2016-11-02T16:59:18-07:00
Forum: Users
Topic: Composite then crop and resize.
Replies: 5
Views: 4932

Re: Composite then crop and resize.

snibgo wrote:"-composite" needs two images before it.

"-crop" needs a geometry argument, eg 10x10+0+0.
Thank you, I meant to use Trim in this case. That should fix one issue. I will test and get back to you in a few moments.
by chaoscarnage
2016-11-02T16:48:52-07:00
Forum: Users
Topic: Composite then crop and resize.
Replies: 5
Views: 4932

Composite then crop and resize.

convert /var/images/cf4d0728852f660282decdb97290e9a199.png -composite /var/images/b1691d10038f45282924804a22204.png -crop +repage -resize 48x48 /var/images/59913038d72f297dfef26c3207.png What I am trying to do: Take this image, add this image to it, then crop and resize. What it does now: Takes the...
by chaoscarnage
2016-10-29T18:07:37-07:00
Forum: Users
Topic: Trim image and return trimmed amount
Replies: 15
Views: 15161

Re: Trim image and return trimmed amount

I believe I have found the problem with all the calculations I was doing. Thank you all very much for your support.
by chaoscarnage
2016-10-29T17:35:27-07:00
Forum: Users
Topic: Trim image and return trimmed amount
Replies: 15
Views: 15161

Re: Trim image and return trimmed amount

Okay, I have everything working, but now it is not quite turning out right. exec('mogrify -crop ' . $return_var[0] . 'x' . $return_var[1] . '+' . $return_var[2] . '+'. $return_var[3] . ' +repage -resize ' . ICON_SIZE . 'x' . ICON_SIZE . ' ' . $row[0] . '.png'); I need it to crop the image and then r...