Search found 22964 matches

by fmw42
2018-04-22T14:33:01-07:00
Forum: Bugs
Topic: ImageMagick convert rotates images during resize
Replies: 5
Views: 50

Re: ImageMagick convert rotates images during resize

try adding -auto-orient to your command

Code: Select all

convert -auto-orient 2018-04-11-0001.jpg -resize 172x172" ...
by fmw42
2018-04-21T19:15:54-07:00
Forum: Users
Topic: Evaluate-sequence add - values over 255?
Replies: 4
Views: 81

Re: Evaluate-sequence add - values over 255?

This seems to work for me, with 3 images. magick HhIRiMn.png -duplicate 2 -colorspace gray -negate -evaluate-sequence add -evaluate divide 65535 -type grayscale -depth 16 -compress none out.pgm and this with 300 images. magick HhIRiMn.png -duplicate 299 -colorspace gray -negate -evaluate-sequence ad...
by fmw42
2018-04-21T19:00:24-07:00
Forum: Users
Topic: Mogrify to output histograms with original file names
Replies: 3
Views: 58

Re: Mogrify to output histograms with original file names

Mogrify processes one output per one input. So I am not sure you can use mogrify to do what you want, if I understand the question.

In the future, please always provide your Imagemagick version and platform when asking questions on this forum.
by fmw42
2018-04-21T18:14:15-07:00
Forum: Users
Topic: Evaluate-sequence add - values over 255?
Replies: 4
Views: 81

Re: Evaluate-sequence add - values over 255?

What is your Q level of the IM compile? Note that in IM 7, convert is replaced by magick. magick -version will tell you that. If Q16, then you will get 16-bit values (range 0 to 65535), unless you add -depth 8. But the issue is likely whether your output format supports 16-bits or only 8-bits. I thi...
by fmw42
2018-04-21T12:54:23-07:00
Forum: Users
Topic: Different Results from 6.8.9-9 vs 6.9.9-40
Replies: 3
Views: 67

Re: Different Results from 6.8.9-9 vs 6.9.9-40

You can try cleaning small noise spots using -morphology. If you post an example input, perhaps we can suggest another command.
by fmw42
2018-04-21T12:11:47-07:00
Forum: Users
Topic: is this png background transparent?
Replies: 3
Views: 49

Re: is this png background transparent?

If you just want to know if the image is fully opaque or partially transparent, then you can use convert image -format "%[opaque]" info: See https://www.imagemagick.org/script/escape.php If you want to know if the image is totally transparent, then use convert image -alpha extract -format "%[fx:mean...
by fmw42
2018-04-21T09:51:01-07:00
Forum: Users
Topic: Resize and Crop in one Step ?
Replies: 2
Views: 51

Re: Resize and Crop in one Step ?

Please, always provide your IM version and platform when asking questions, since syntax may differ. Also provide your exact command line and if possible your images. See the top-most post in this forum "IMPORTANT: Please Read This FIRST Before Posting" at http://www.imagemagick.org/discourse-server/...
by fmw42
2018-04-21T09:50:21-07:00
Forum: Users
Topic: Different Results from 6.8.9-9 vs 6.9.9-40
Replies: 3
Views: 67

Re: Different Results from 6.8.9-9 vs 6.9.9-40

Please post your bill.jpg image to some free hosting service and put the URL here so we can test your command.

Note that -connected-components was only officially available as of 6.8.9.10. So you are one version short. It may have been there in the previous version but unfinished or buggy.
by fmw42
2018-04-21T09:46:26-07:00
Forum: Users
Topic: CROP black from scanned images
Replies: 8
Views: 157

Re: CROP black from scanned images

You have not answered the questions that I asked above. We are trying to help. If we know your IM version and platform and your libjpeg version we can test with that version and see if there are any issue. Try this simple command to make a 200x200 black image with a 100x100 white center. convert -si...
by fmw42
2018-04-20T19:57:16-07:00
Forum: Users
Topic: CROP black from scanned images
Replies: 8
Views: 157

Re: CROP black from scanned images

Imagemagick is not problematic per se. Images can be problematic. The may be no universal solution to any given problem for all images. My previous command works fine for me. -fuzz 90% may be way too large. The issue may be your version of Imagemagick or your delegate libraries for libjpeg. Did you...
by fmw42
2018-04-20T16:10:01-07:00
Forum: Users
Topic: CROP black from scanned images
Replies: 8
Views: 157

Re: CROP black from scanned images

You would normally be able to use -fuzz XX% -trim +repage to do what you want with a 10-25% fuzz value. But you have a partial gray vertical stripe at about x=350 that causes problems. But I have increased the XX=70% and that seems to work. But it is possible with such a large value that other image...
by fmw42
2018-04-20T13:31:28-07:00
Forum: Users
Topic: CROP black from scanned images
Replies: 8
Views: 157

Re: CROP black from scanned images

What is your Imagemagick version and platform? Please always provide that. Can you post an image to some free hosting service and put the URL here so we can see an example of your problem.
by fmw42
2018-04-19T22:30:34-07:00
Forum: Consulting
Topic: Automatically apply opacity when PNG files are in folder.
Replies: 9
Views: 194

Re: Automatically apply opacity when PNG files are in folder.

You need to tell us on what platform you are trying to do this. Installation and command syntax are different. See https://www.imagemagick.org/script/download.php
by fmw42
2018-04-19T21:29:07-07:00
Forum: Consulting
Topic: Automatically apply opacity when PNG files are in folder.
Replies: 9
Views: 194

Re: Automatically apply opacity when PNG files are in folder.

If you want to process a whole folder of images, then use mogrify rather than convert. See https://www.imagemagick.org/Usage/basics/#mogrify create a new output folder change directory to input folder mogrify -path path2/output_folder -format png -alpha opaque -channel A -evaluate Multiply 0.6 +chan...
by fmw42
2018-04-19T18:47:11-07:00
Forum: Bugs
Topic: [RESOLED] Possible bugs fx trig functions
Replies: 2
Views: 83

Re: Possible bugs fx trig functions

DOH! :oops: Staring at that for hours and missed it.

Thanks.