Search found 11698 matches

by snibgo
2019-06-08T15:22:55-07:00
Forum: Users
Topic: New to Imagemagick, need something to be clarified
Replies: 14
Views: 512

Re: New to Imagemagick, need something to be clarified

magick convert -crop image1.png 1500x534+0x0 crop.png I suggest you remove "convert", because that makes your v7 IM behave like v6, which is usually not wanted. The normal sequence is: read the image, process it, and write it. Your processing is "-crop", and that needs the numbers "1500x534+0+0" to...
by snibgo
2019-06-08T12:59:18-07:00
Forum: Bugs
Topic: Negative gray gradients
Replies: 5
Views: 231

Re: Negative gray gradients

I'm working on a general solution to the recent thread on wavy lines . For this, I will build a displacement map that will interpolate between the wavy lines, but extrapolate beyond them. The wavy lines will be at 0 and 100% of the result, but the image outside the lines might be -30% to +105%. For ...
by snibgo
2019-06-08T10:46:26-07:00
Forum: Bugs
Topic: Negative gray gradients
Replies: 5
Views: 231

Re: Negative gray gradients

I forgot to put "-size 10x1" in the gradient example. Now corrected. I expect the text output to show a gradient between -123% and white (+100%). A workaround is to use only positive values in the gradient, then subtract: magick -size 10x1 gradient:gray(0)-gray(223%) -evaluate subtract 123% txt: # I...
by snibgo
2019-06-08T09:24:27-07:00
Forum: Bugs
Topic: Negative gray gradients
Replies: 5
Views: 231

Negative gray gradients

Tested with IM v7.0.7-28 HDRI on Windows 8.1. Negative colours are generally allowed and work fine, eg: magick xc:gray(-123%) txt: # ImageMagick pixel enumeration: 1,1,65535,gray 0,0: (-80608) #000000000000 gray(-123%) However, they are apparently not allowed in gradient, eg: magick -size 10x1 gradi...
by snibgo
2019-06-08T03:43:22-07:00
Forum: Digital Image Processing
Topic: What should I code? To learn c++
Replies: 1
Views: 264

Re: What should I code? To learn c++

When I first bought a computer, a "Nascom II", I wrote arcade-style games (in assembler). Later, when IBM-style PCs appeared, I wrote graphics viewers and editors because I was interested in pictures, and computers in those days didn't have tools that could do what I wanted. What are your interests ...
by snibgo
2019-06-08T03:16:36-07:00
Forum: Bugs
Topic: compare of identical tiffs returns all points are different
Replies: 13
Views: 481

Re: compare of identical tiffs returns all points are different

Why not to warn about such a subtlety from the IM side? IM doesn't second-guess what the user really wants. If IM can't do what the user asks, it raises an error. If there is a problem such as something minor wrong with an image file but the work can still be done, IM raises a warning. But IM doesn...
by snibgo
2019-06-07T15:19:22-07:00
Forum: Bugs
Topic: compare of identical tiffs returns all points are different
Replies: 13
Views: 481

Re: compare of identical tiffs returns all points are different

For v7, I suggest you use "magick compare" instead of "compare". How many images are in your tif? (I suppose only one, but it is worth checking.) Does your version of IM have HDRI? What is the complete text output of "magick -version"? Perhaps there is a floating-point problem. What does "magick 79_...
by snibgo
2019-06-07T05:48:04-07:00
Forum: Users
Topic: I get 2 images outputed?
Replies: 2
Views: 212

Re: I get 2 images outputed?

Your question isn't about Magick++, so I'm moving it to the more general Users forum.

I suppose your PSD file contains two images, so they are both resized and written to PNG files. To read just the first image, add the suffix [0] to the input filename.
by snibgo
2019-06-06T03:20:38-07:00
Forum: Users
Topic: Convert 12bit grayscale JPEG
Replies: 2
Views: 213

Re: Convert 12bit grayscale JPEG

As far as I know, IM cannot read 12-bit/channel JPEG images.

I suggest you link to sample 12-bit inputs. A developer may take a look.
by snibgo
2019-06-06T03:15:42-07:00
Forum: Users
Topic: Good command-line but Batch conversion not working?
Replies: 1
Views: 187

Re: Good command-line but Batch conversion not working?

What version of IM, on what platform? I guess IM v7.something, on Windows.

In a BAT script, percent has a special meaning. When you don't want that special meaning, you must double it:

Code: Select all

-resize %%[fx:t?u.w*0.35:u.w]x 
by snibgo
2019-06-06T03:10:36-07:00
Forum: Magick.NET
Topic: Trim White Space From Image?
Replies: 2
Views: 302

Re: Trim White Space From Image?

Many of your "white" pixels are not exactly white. Use a fuzz factor such as 5%.
by snibgo
2019-06-05T12:39:16-07:00
Forum: Developers
Topic: support for raw 16-bit RGB565
Replies: 21
Views: 2329

Re: support for raw 16-bit RGB565

You can always ask, in this thread or in the "Developers" subforum.
by snibgo
2019-06-05T12:13:26-07:00
Forum: Users
Topic: Cutting image and reassembling
Replies: 2
Views: 245

Re: Cutting image and reassembling

masagrator wrote:I need to cut texture with different dimensions to 36px x 36px pieces from first row left to right, then next row left to right, etc.

Code: Select all

-crop 36x36
masagrator wrote:And reassemble them in the same manner to images like 512x512...
I don't understand. 512 isn't a multiple of 36, so how should the reassembly work?
by snibgo
2019-06-05T08:34:58-07:00
Forum: Users
Topic: Select more than one layer from TIFF and output a flattened JPG
Replies: 3
Views: 262

Re: Select more than one layer from TIFF and output a flattened JPG

Code: Select all

magick image.tif[0] image.tif[1] -layers Flatten out.jpg
by snibgo
2019-06-05T08:29:20-07:00
Forum: Users
Topic: how to remove vertical and horizontal line in this image
Replies: 5
Views: 398

Re: how to remove vertical and horizontal line in this image

Furthermore, is there any way to make this wavy image more straight? The image has four long wavy horizontal lines. You can straighten any one of them by moving entire columns up or down, but that will make some lines worse. Suppose we want to straighten both the top and bottom lines. The image can...