Search found 12669 matches

by snibgo
2020-02-05T07:41:40-07:00
Forum: Users
Topic: Distortion under V7
Replies: 1
Views: 136

Re: Distortion under V7

That's a crazy command. Each "convert" writes an image to a pipe, which is read by another "convert". Why not do all the operations in a single call to "convert", with no intermediate writes? But that is just an efficiency issue. It shouldn't cause a failure or problems. I can't see what problems th...
by snibgo
2020-02-04T09:47:21-07:00
Forum: Users
Topic: From PNG to TIFF with premultiplied alpha?
Replies: 3
Views: 325

Re: From PNG to TIFF with premultiplied alpha?

Hmm, yes, "-define tiff:alpha=associated" does modify the image when it is written. I didn't know that. A simple example: f:\web\im>%IMG7%magick xc:rgba(10%,20%,30%,0.3) t.tiff f:\web\im>%IMG7%magick t.tiff txt: # ImageMagick pixel enumeration: 1,1,65535,srgba 0,0: (6554,13107,19661,19661) #199A3333...
by snibgo
2020-02-03T21:38:15-07:00
Forum: Users
Topic: Batch reset horizontal size without major increase in filesize
Replies: 4
Views: 309

Re: Batch reset horizontal size without major increase in filesize

I suggest "-quality 50%" to get a similar size with hardly any difference to the image.
by snibgo
2020-02-03T18:37:07-07:00
Forum: Users
Topic: Alpha off and transparent background
Replies: 11
Views: 932

Re: Alpha off and transparent background

The tiff file contains two images, sized 3764x3764 and 2710x3695. Only the second has alpha. Tiffs from Photoshop commonly have the first image being a flattened version of all the others. But they are different sizes, so that is not the case here. Converting this TIFF to PNG will create two PNG fil...
by snibgo
2020-02-03T14:57:23-07:00
Forum: Users
Topic: Can morphology be applied to the selected color?
Replies: 3
Views: 354

Re: Can morphology be applied to the selected color?

The question is too vague.

Morphology can be restricted to a single channel. Perhaps you can transform your "selected colour" to one channel.

It would help if you showed example images.
by snibgo
2020-02-03T10:09:46-07:00
Forum: Users
Topic: From PNG to TIFF with premultiplied alpha?
Replies: 3
Views: 325

Re: From PNG to TIFF with premultiplied alpha?

Your input and output should look the same. If they don't, please post links to them. "Premultiplication" is a sub-operation within operations such as blur, image addition or subtraction, and so on. It means that alpha is used in the calculations. So operations use premultiplication. Images are not ...
by snibgo
2020-02-03T07:34:52-07:00
Forum: Bugs
Topic: Unexpected Error: identify - unable to open FIF file
Replies: 2
Views: 302

Re: Unexpected Error: identify - unable to open FIF file

"magick -list format" lists the formats IM can read and/or write. "FIF" is not listed. See also https://www.imagemagick.org/script/formats.php , which doesn't list FIF.
by snibgo
2020-02-03T07:26:08-07:00
Forum: Users
Topic: Convert command runs very much slower in version 7 than version 6
Replies: 1
Views: 294

Re: Convert command runs very much slower in version 7 than version 6

For v7, I suggest you use "magick", not "convert". What is the text output from "magick -version"? I suspect you have HDRI, which stores and processes pixels as floating-point. You don't need that, so re-build or download a version without HDRI. You don't need Q16, and a Q8 version is probably faster.
by snibgo
2020-02-02T18:13:12-07:00
Forum: Bugs
Topic: unexpected error "convert: geometry does not contain image"
Replies: 28
Views: 34927

Re: unexpected error "convert: geometry does not contain image"

I've taken out a temporary DNS name where you can see the source image file http://lig-nanowise.ddns.net/LargeCrop.png The file is 372MB, too large for me to download. Perhaps it already has a canvas offset, so there are no pixels at (0,0) in the canvas. What does "convert LargeCrop.png -verbose in...
by snibgo
2020-02-02T03:39:36-07:00
Forum: Users
Topic: Crop a percentage of image
Replies: 8
Views: 593

Re: Crop a percentage of image

The difference is mostly at the CLI (command-line interface). V7 has stricter syntax than v6, so some v6 commands won't work in v7. But v7 has some good new features, such as being able to use "%[fx:...]" expressions more widely.
by snibgo
2020-02-02T03:17:04-07:00
Forum: Users
Topic: Crop a percentage of image
Replies: 8
Views: 593

Re: Crop a percentage of image

If you do it in separate commands, you will need to write each result to an intermediate file, then read it in the next command. In general it is best to do everything in one command.

For IM v7, I suggest you use "magick", not "convert".
by snibgo
2020-02-01T19:03:58-07:00
Forum: Users
Topic: Crop a percentage of image
Replies: 8
Views: 593

Re: Crop a percentage of image

What version of IM, on what platform? I don't know if you want to remove 3.5% of rows from the bottom, or if you want to keep only the bottom 3.5% of rows. In either case, your "-crop 1800x1000" is wrong because that would give all 1000 rows. If you use IM v7 and "magick", you can use "%[fx:...]" ex...
by snibgo
2020-02-01T09:07:09-07:00
Forum: Users
Topic: Setting map limit
Replies: 10
Views: 862

Re: Setting map limit

... am I right in saying that ImageMagick will use MAGICK_MEMORY_LIMIT first, for the pixel cache, and if that's not enough, it moves on to MAGICK_MAP_LIMIT? That's not correct. Both limits are always active. If either limit is reached, disk is used. See https://www.imagemagick.org/script/resources...
by snibgo
2020-02-01T08:59:40-07:00
Forum: Users
Topic: Help me finish up this command?
Replies: 8
Views: 732

Re: Help me finish up this command?

My goal is to be do something equivalent to border-radius in HTML and change a number to increase the radius where you change a radius number ... Although blurring a rectangle does round the corners, they are not arcs of circles. I suggest you "-draw roundRectangle" instead. That does the job more ...
by snibgo
2020-01-31T22:08:47-07:00
Forum: Users
Topic: Help me finish up this command?
Replies: 8
Views: 732

Re: Help me finish up this command?

Is there kind of a formula to adjusting the blur and the level to get a consistent rounded corner? Not really. "-blur 0xX" will create a blur approximately 3*X wide, so about 1.5*X inside the edge and the same (invisible) outside the edge, so the radius of the corner is roughly 1.5*X, eg 1.5*15 = 2...