Search found 10819 matches

by snibgo
2018-11-13T19:03:41-07:00
Forum: Users
Topic: Rotation per default not around center but NorthEast corner of image
Replies: 5
Views: 75

Re: Rotation per default not around center but NorthEast corner of image

1.) Coordinates of the cutout (X:136, Y:148) Where is that coordinate? It isn't any of the corners of the cutout, or a corner of the bounding box of the cutout. The left side of the bounding box is at x=123, and the top edge is at y=119. The photo is slightly larger than the cutout, so we can allow...
by snibgo
2018-11-13T17:46:37-07:00
Forum: Users
Topic: Rotation per default not around center but NorthEast corner of image
Replies: 5
Views: 75

Re: Rotation per default not around center but NorthWest corner of image

You haven't provided your input image "img.jpg", so I can't reproduce your command, so don't really understand your issue. Rotation is rotation. Assuming img.jpg is an ordinary photo of some people, I don't see how you got that output from your command. "-rotate" should usually be followed by "+repa...
by snibgo
2018-11-13T08:08:23-07:00
Forum: Magick.NET
Topic: Parallel work - C#
Replies: 1
Views: 16

Re: Parallel work - C#

IM will convolve images with OpenCL if you have that. Otherwise, it will multithread with OpenMP if you have that.

"magick -version" will say, under "Features:", whether you have OpenCL and OpenMP.

Sorry, I don't use Magick.NET or C#, and can't answer those questions.
by snibgo
2018-11-13T07:29:39-07:00
Forum: Users
Topic: How to dim or reduce opacity on annotation
Replies: 4
Views: 417

Re: How to dim or reduce opacity on annotation

I am using magick++ api, so command line processing is not the way I need. IM operations at the command line correspond to functions in the C and C++ apis. Setting the background won't change individual pixels that already have values. You want to change the alpha values in an image. I expect ... v...
by snibgo
2018-11-13T07:12:18-07:00
Forum: Users
Topic: Please help with the batch file
Replies: 15
Views: 188

Re: Please help with the batch file

I expect "-shave" uses the same code as "-crop", with a trivial calculation to get the required parameters.

Some experimentation shows that "-shave 10x10" is much quicker than "-sharpen 2". This is not surprising as "-shave" merely copies pixels, but "-sharpen" convolves each pixel with a kernel.
by snibgo
2018-11-13T06:58:28-07:00
Forum: Users
Topic: Defaults or how to find MAGICK_TEMPORARY_PATH
Replies: 10
Views: 164

Re: Defaults or how to find MAGICK_TEMPORARY_PATH

spaceguns wrote:... using a test.pdf included with the code.
Or create a PDF using IM:

Code: Select all

convert rose: test.pdf
IM doesn't use delegates for that operation.
by snibgo
2018-11-12T19:26:06-07:00
Forum: Users
Topic: Can't convert image file using a bash script
Replies: 20
Views: 290

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

Good stuff. I suggest you review all my comments in IM with Cygwin. I documented the problems I found, with solutions, to save other people hitting them.
by snibgo
2018-11-12T19:23:02-07:00
Forum: Users
Topic: Defaults or how to find MAGICK_TEMPORARY_PATH
Replies: 10
Views: 164

Re: Defaults or how to find MAGICK_TEMPORARY_PATH

If you have set MAGICK_TEMPORARY_PATH, then that immediately solves your problem, doesn't it? The problem is when that hasn't been set. I think IM gets the temporary path from function GetPathTemplate(path) in resource.c. That source code gives the environment values that are searched for, on difffe...
by snibgo
2018-11-12T18:32:56-07:00
Forum: Users
Topic: Can't convert image file using a bash script
Replies: 20
Views: 290

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

As Fred says, remove "${1::-4}" for now. Do you have other bash scripts? Do they work? If "echo $VAR" works before the convert, then that is probably okay, but may have a spurious carriage-return at the end. How did you create the shell script file? If you used Windows tools, line-ends are probably ...
by snibgo
2018-11-12T15:15:55-07:00
Forum: Users
Topic: Can't convert image file using a bash script
Replies: 20
Views: 290

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

That version should be fine.

Does the script always fail, or only with certain inputs? What does "echo $VAR" say?
by snibgo
2018-11-12T14:05:08-07:00
Forum: Users
Topic: Can't convert image file using a bash script
Replies: 20
Views: 290

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

Type "convert -version".
by snibgo
2018-11-12T14:03:18-07:00
Forum: Users
Topic: Please help with the batch file
Replies: 15
Views: 188

Re: Please help with the batch file

well - there must be a grading of the sharpening? or like sharpen one step? I suggest you experiment with "-sharpen" or "-unsharp" to find the parameters that give you what you want. If you provide before and after images of "sharpen image by 20%", perhaps we can suggest the settings. The command I...
by snibgo
2018-11-12T08:27:45-07:00
Forum: Users
Topic: Please help with the batch file
Replies: 15
Views: 188

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: 15
Views: 188

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: 1423

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...