Search found 10811 matches

by snibgo
2018-11-12T08:27:45-07:00
Forum: Users
Topic: Please help with the batch file
Replies: 8
Views: 85

Re: Please help with the batch file

Yes, it is simple, for example:

Code: Select all

magick mogrify -shave 10x10 -sharpen 2 *.png
But I don't know what you mean by "sharpen image by 20%".
by snibgo
2018-11-12T08:08:43-07:00
Forum: Users
Topic: Please help with the batch file
Replies: 8
Views: 85

Re: Please help with the batch file

What version of IM? Have you read any of the documentation?

What does "sharpen image by 20%" mean?
by snibgo
2018-11-12T08:05:19-07:00
Forum: Users
Topic: clip trim, fill and merge all
Replies: 14
Views: 1405

Re: clip trim, fill and merge all

You want to edit an image (trim, crop, resize etc) and have those operations applied to the embedded clip path. Sadly, IM won't do that. I don't think Gimp can either. Gimp and IM can export the clip path as SVG. Gimp (but not IM) can import an SVG as a clip path. Inkscape can edit (eg crop and resi...
by snibgo
2018-11-12T06:07:19-07:00
Forum: Users
Topic: Can't convert image file using a bash script
Replies: 5
Views: 85

Re: Can't convert image file using a bash script

What version of IM? man bash says I can use "${parameter:offset:length}" with negative length meaning offset from the end. So "${1::-4}" would be the first parameter, without the final 4 characters (eg "toes.png" makes "toes"). On my Windows 8.1 with Cygwin, naming the OP script as "testpal.sh", run...
by snibgo
2018-11-09T17:20:15-07:00
Forum: Users
Topic: Re: Trim: confused by differences in %@ %P %O and -verbose and what it actually does.
Replies: 16
Views: 235

Re: Trim: confused by differences in @P @O and -verbose and what it actually does.

Okay. For image 2, a Windows BAT script that trims the border but backs-off by 25 pixels on all four sides (so the result has an extra 50 pixels in width and height) is: for /F "usebackq tokens=1-4 delims=x+" %%A in (`%IMG7%magick ^ P9t8hzp.jpg ^ -fuzz 55%% ^ -format "%%@\n" ^ info:`) do ( echo %%A ...
by snibgo
2018-11-09T15:06:11-07:00
Forum: Users
Topic: Re: Trim: confused by differences in %@ %P %O and -verbose and what it actually does.
Replies: 16
Views: 235

Re: Trim: confused by differences in @P @O and -verbose and what it actually does.

Are you really using Windows CMD? By re-typing or copy-pasting commands? You may prefer to put them in BAT scripts, but don't forget to double the "%" signs.

Without seeing your images or complete commands, I don't understand your problem, so advice is difficult.
by snibgo
2018-11-09T07:36:17-07:00
Forum: Users
Topic: Convert considering image DPI
Replies: 1
Views: 44

Re: Convert considering image DPI

Resolution is available in expressions: %x and %y. See https://www.imagemagick.org/script/escape.php I expect you can do that in a single magick command. For example if some condition means no resizing should be done, then you can clone the image, resize the clone, then delete whichever image you do...
by snibgo
2018-11-09T04:01:04-07:00
Forum: Users
Topic: Re: Trim: confused by differences in %@ %P %O and -verbose and what it actually does.
Replies: 16
Views: 235

Re: Trim: confused by differences in @P @O and -verbose and what it actually does.

CONVERT input.jpg -background "rgb(59,57,55)" -fuzz 40% -trim -print "%@ %O" null: "-background" is a setting that isn't used by any following operation. It is redundant, and you can remove it. The format "%@" gives the canvas data that would occur if you did a trim at that time. You have already d...
by snibgo
2018-11-07T13:19:23-07:00
Forum: Users
Topic: [Solved] Repeat "multiple images" over fixed canvas size
Replies: 10
Views: 201

Re: Repeat "multiple images" over fixed canvas size

I don't understand what you want. The example you give ...
Rye wrote:should be like
[1][2][3][4][5]
[6][7][8][9][1]
[2][3][4][5][6]
... uses some images twice. IM won't do that for you. If you want that, you'll need to script it.
by snibgo
2018-11-06T19:03:41-07:00
Forum: PerlMagick
Topic: GetPixels() or Get(Pixel[x,y])
Replies: 2
Views: 78

Re: GetPixels() or Get(Pixel[x,y])

What version of IM are you using? At one time, IM recorded alpha as transparency (ie 0 was opaque, 100% was transparent). Now, it records alpha as opacity (ie 0 is transparent, 100% is opaque).

Note that 64764 + 771 = 65535, 257 + 65278 = 65535, etc.
by snibgo
2018-11-06T09:37:55-07:00
Forum: Bugs
Topic: command line batch help
Replies: 3
Views: 154

Re: command line batch help

You need a protocol the server will recognise such as "http:". And I suggest you use forward-slashes, not backslashes.
by snibgo
2018-11-06T09:09:42-07:00
Forum: Bugs
Topic: command line batch help
Replies: 3
Views: 154

Re: command line batch help

IM has problems with drive-colon (eg "C:") in file lists (and elsewhere). I suggest you arrange your task so drives are not required.

Does that cure the problem?
by snibgo
2018-11-06T05:29:10-07:00
Forum: Digital Image Processing
Topic: Can you suggest new research on image processing?
Replies: 1
Views: 201

Re: Can you suggest new research on image processing?

I'm not sure if you want solved problems, or unsolved problems. Image Processing On Line (IPOL) is not leading-edge, but usually takes problems solved elsewhere and expresses the solution in source code. There are huge numbers of documents online, for example https://www.microsoft.com/en-us/research...