Search found 25051 matches

by fmw42
2019-06-26T15:38:27-07:00
Forum: Users
Topic: Reading subimage-search command line results
Replies: 1
Views: 48

Re: Reading subimage-search command line results

A is the score in the quantum range of your ImageMagick compile (default for Q16 is 0 to 65535). B is in the range 0 to 1
by fmw42
2019-06-26T15:26:26-07:00
Forum: Users
Topic: How to know the image's transparent space?
Replies: 17
Views: 710

Re: How to know the image's transparent space?

I do not fully understand your question. Please clarify. Do you care if opaque around the edges of the image, but transparent inside the image? If you want to know if the image is fully transparent everywhere, then the result would be 0 from my command. You can also tell if the image is fully opaque...
by fmw42
2019-06-26T14:38:43-07:00
Forum: Users
Topic: How to know the image's transparent space?
Replies: 17
Views: 710

Re: How to know the image's transparent space?

basically can I assume if output xOffset == src.getWidth() && yOffset == 0, sec is the original image before trim, I can say this image is total transparent? No, you cannot. It could be transparent somewhere in the middle. So if you care about transparency anywhere in your image, then you need to t...
by fmw42
2019-06-26T09:27:51-07:00
Forum: Users
Topic: .TIF with compression RLE
Replies: 4
Views: 68

Re: .TIF with compression RLE

Might the bad tiff be CMYK and not RGB? If so, try converting it to sRGB with profiles.
by fmw42
2019-06-25T14:44:16-07:00
Forum: Users
Topic: How to find out if a *.jpg is currently rotated?
Replies: 2
Views: 107

Re: How to find out if a *.jpg is currently rotated?

ImageMagick will auto-orient your image for you when you read it. See -auto-orient at https://imagemagick.org/script/command-line-options.php#auto-orient. You can get the orientation flag from the head using -format "%[EXIF:orientation]" info:, if it exists in the header. See % escapes at https://im...
by fmw42
2019-06-25T14:38:06-07:00
Forum: Users
Topic: How to sharpen and increase saturation of *.jpg picture?
Replies: 1
Views: 71

Re: How to sharpen and increase saturation of *.jpg picture?

There is no good way to convert sharpening to percentage that I know offhand. When you sharpen you provide a filter sigma or a radius. The filter tapers in a Gaussian manner, so not linearly. You need to calibrate your sigma with whatever degree of sharpening you like. You could over sharpen and the...
by fmw42
2019-06-24T22:13:15-07:00
Forum: Users
Topic: Apply font style to portion of caption text
Replies: 1
Views: 81

Re: Apply font style to portion of caption text

You cannot change the style or font in the same caption: text. You would either have to use Pango styling (probably the most direct method) or write each line separately with label: and append or just use -annotate, once per line. See https://imagemagick.org/Usage/text/
by fmw42
2019-06-24T18:04:44-07:00
Forum: Users
Topic: [SOLVED] drawing line using relative coordinate like 'bottom left'
Replies: 6
Views: 207

Re: drawing line using relative coordinate like 'bottom left'

Before you append the text image at the bottom of the main image just draw a thin border around the text image using -bordercolor ... -border. See https://imagemagick.org/Usage/crop/#border.

I answered here, but in the future, please do not double post the same question.
by fmw42
2019-06-23T20:35:10-07:00
Forum: MagickWand
Topic: composite distort with multiple images input.
Replies: 2
Views: 131

Re: composite distort with multiple images input.

You can combine the two displacement images as red and green and any blue image (typically all black) into one image. Then use that for your Wand two image displacement. See the note at the bottom of this section --- https://imagemagick.org/Usage/mapping/#displace_2d
by fmw42
2019-06-22T20:58:53-07:00
Forum: Users
Topic: How to know the image's transparent space?
Replies: 17
Views: 710

Re: How to know the image's transparent space?

Sorry, I do not know much about printing issues. But I think you need to know the width and height as well.
by fmw42
2019-06-22T17:11:03-07:00
Forum: Users
Topic: How to know the image's transparent space?
Replies: 17
Views: 710

Re: How to know the image's transparent space?

Code: Select all

convert SHIRT_ART_IMAGE1.png -format "%@" +write info: -trim +repage -bordercolor none -border 5 SHIRT_ART_IMAGE1_trim.png
by fmw42
2019-06-22T16:26:32-07:00
Forum: Users
Topic: How to know the image's transparent space?
Replies: 17
Views: 710

Re: How to know the image's transparent space?

You can trim and get the coordinates at the same time.

Code: Select all

convert SHIRT_ART_IMAGE1.png -format "%@" +write info: -trim +repage SHIRT_ART_IMAGE1_trim.png
3390x3004+555+593

But you also get the trimmed image.
by fmw42
2019-06-22T13:07:34-07:00
Forum: Users
Topic: How to know the image's transparent space?
Replies: 17
Views: 710

Re: How to know the image's transparent space?

use

Code: Select all

convert SHIRT_ART_IMAGE1.png -format "%@" info:
3390x3004+555+593

That will give you the trim coordinates WxH+Xoff+Yoff. The Xoff and Yoff are the top left corner where it would have been trimmed to get rid of transparency. So the coordinates you want, I think, are 555,593
by fmw42
2019-06-21T07:43:25-07:00
Forum: Users
Topic: Skew Image by only 1 pixel
Replies: 6
Views: 428

Re: Skew Image by only 1 pixel

Please post your input and output images to some free hosting service and put the URL here so we can check against your results.
by fmw42
2019-06-20T13:59:34-07:00
Forum: Users
Topic: How to know the image's transparent space?
Replies: 17
Views: 710

Re: How to know the image's transparent space?

If you want to trim all transparency on the outside, then see the new -define for trim. Use -define trim:percent-background=0% to remove all the background from the image. Example input: http://www.fmwconcepts.com/misc_tests/aggressive_trim/img.png magick img.png -fuzz 5% -background black -alpha ba...