Search found 36 matches

by imanasya
2018-12-14T11:48:14-07:00
Forum: Users
Topic: How to place image directly to the center?
Replies: 16
Views: 10614

Re: How to place image directly to the center?

snibgo, thank you. It was a jpeg artifact. When I created this pic there were no pixels except pure white.
by imanasya
2018-12-14T06:21:46-07:00
Forum: Users
Topic: How to place image directly to the center?
Replies: 16
Views: 10614

Re: How to place image directly to the center?

If you intend to trim them off, use a larger fuzz. Why? 2% * 256 = 5 It means that trim should cut off pixels in the range 250-255. That is left column 5 pixels wide. Check the image 0 in this topic above, you won't find pixels darker than 250 in the left white column (5 pixels). These images were ...
by imanasya
2018-12-14T04:30:41-07:00
Forum: Users
Topic: How to place image directly to the center?
Replies: 16
Views: 10614

Re: How to place image directly to the center?

It seems to work fine, but I don't know what you intend. It's clearly visible here. Take a look at upper red image. It is not in the center, it moved a few pixels to the right from the center. Left white column is is a few pixels wider than right white column. I'd like to get both left and right ...
by imanasya
2018-12-14T03:43:12-07:00
Forum: Users
Topic: How to place image directly to the center?
Replies: 16
Views: 10614

Re: How to place image directly to the center?

snibgo wrote: 2018-12-14T03:31:33-07:00 I can't download your images, so I can't diagnose your problem.
Red image is slightly moved to the right.
by imanasya
2018-12-14T03:41:39-07:00
Forum: Users
Topic: How to place image directly to the center?
Replies: 16
Views: 10614

Re: How to place image directly to the center?

Image 0: Image
Image 1: Image
Combined Image: Image
by imanasya
2018-12-14T02:38:55-07:00
Forum: Users
Topic: How to place image directly to the center?
Replies: 16
Views: 10614

Re: How to place image directly to the center?

Oops. I can't delete my messages.
by imanasya
2018-12-14T02:35:15-07:00
Forum: Users
Topic: How to place image directly to the center?
Replies: 16
Views: 10614

Re: How to place image directly to the center?

To shave 2 pixels from all sides, use "-shave 2x2". Unfortunately the top image is still not in the center. @echo off setlocal enabledelayedexpansion for /f "tokens=1,2 delims=:" %%x in ('magick 0.jpg -shave 2x2 -fuzz 2%% -trim +repage -format %%w:%%h +write info: NULL:') do set /a "w1=%%x,h1=%%y ...
by imanasya
2018-12-14T02:33:24-07:00
Forum: Users
Topic: How to place image directly to the center?
Replies: 16
Views: 10614

Re: How to place image directly to the center?

To shave 2 pixels from all sides, use "-shave 2x2". Unfortunately the top image is still not in the center. @echo off setlocal enabledelayedexpansion for /f "tokens=1,2 delims=:" %%x in ('magick 0.jpg -shave 2x2 -fuzz 2%% -trim +repage -format %%w:%%h +write info: NULL:') do set /a "w1=%%x,h1=%%y ...
by imanasya
2018-12-14T02:29:56-07:00
Forum: Users
Topic: How to place image directly to the center?
Replies: 16
Views: 10614

Re: How to place image directly to the center?

To shave 2 pixels from all sides, use "-shave 2x2". That page also gives the correct syntax for "-crop". Unfortunately the top image is still not in the center. @echo off setlocal enabledelayedexpansion for /f "tokens=1,2 delims=:" %%x in ('magick 0.jpg -shave 2x2 -fuzz 2%% -trim +repage -format ...
by imanasya
2018-12-14T01:12:37-07:00
Forum: Users
Topic: How to place image directly to the center?
Replies: 16
Views: 10614

Re: How to place image directly to the center?

"-crop +2+2+2+2" is not valid IM syntax, although IM does accept it. It doesn't do the same as "-crop 2x2+2+2". What do you want it to do? I suggest you use valid syntax. Thank you, snibgo. But I don't know the valid syntax. I have read the manual but didn't find how to cut off 2 pixels from each ...
by imanasya
2018-12-13T13:22:24-07:00
Forum: Users
Topic: How to place image directly to the center?
Replies: 16
Views: 10614

How to place image directly to the center?

This imagemagic code crops 2 pixels then crops same color borders and then scales and places images to the center: @echo off setlocal enabledelayedexpansion for /f "tokens=1,2 delims=:" %%x in ('magick 0.jpg -crop +2+2+2+2 -fuzz 2%% -trim +repage -format %%w:%%h +write info: NULL:') do set /a "w1 ...
by imanasya
2018-10-23T14:05:30-07:00
Forum: Users
Topic: How to clear alt tags or change them?
Replies: 3
Views: 3721

Re: How to clear alt tags or change them?

I found better way:

Code: Select all

magick mogrify -strip image.jpg
by imanasya
2018-10-23T02:58:48-07:00
Forum: Users
Topic: How to clear alt tags or change them?
Replies: 3
Views: 3721

Re: How to clear alt tags or change them?

snibgo, Thank you.
by imanasya
2018-10-19T04:10:41-07:00
Forum: Users
Topic: How to clear alt tags or change them?
Replies: 3
Views: 3721

How to clear alt tags or change them?

Is it possible to do with ImageMagic?
Image
by imanasya
2018-10-08T10:04:11-07:00
Forum: Users
Topic: How to use conditions with ImageMagick properly
Replies: 4
Views: 3928

Re: How to use conditions with ImageMagick properly

Thank you very much. I forgot minus.