Search found 25665 matches

by fmw42
2019-11-15T17:38:32-07:00
Forum: Users
Topic: convert - sets image colorspace to Gray if 2 color black and white, how can I prevent that?
Replies: 6
Views: 248

Re: convert - sets image colorspace to Gray if 2 color black and white, how can I prevent that?

For IM 7 use magick, not magick convert. The latter will give IM 6 behavior
by fmw42
2019-11-15T15:38:37-07:00
Forum: Users
Topic: convert - sets image colorspace to Gray if 2 color black and white, how can I prevent that?
Replies: 6
Views: 248

Re: convert - sets image colorspace to Gray if 2 color black and white, how can I prevent that?

use -define colorspace:auto-grayscale=off

Also -resize will introduce new colors other than your black and white due to resampling. So if that is an issue, then use -filter point -resize or -sample in place of -resize.
by fmw42
2019-11-14T21:59:39-07:00
Forum: Bugs
Topic: possible bug IM 7.0.9.2 -set option:distort:viewport not centering properly
Replies: 2
Views: 295

possible bug IM 7.0.9.2 -set option:distort:viewport not centering properly

IM 7.0.9.2 -set option:distort:viewport is not centering properly. The barn image is not centering horizontally properly. See below. Note it works fine in IM 6.9.10.71 Input Images: http://www.fmwconcepts.com/misc_tests/set_bug/lena.jpg http://www.fmwconcepts.com/misc_tests/set_bug/barn.jpg http://w...
by fmw42
2019-11-14T16:45:33-07:00
Forum: Users
Topic: create a mask on a jpg on the CLI
Replies: 3
Views: 194

Re: create a mask on a jpg on the CLI

In ImageMagick 6, use convert, not magick. ImageMagick 7 use magick in place of convert. Try in your bash script: points="$x1,$y1 $x2,$y2 $x3,$y3 $x4,$y4" convert "$full-path-to-input-jpg" -fill some_color -draw "polygon $points" -alpha off "$full-path-to-output-jpg" If you need to draw a partially ...
by fmw42
2019-11-14T10:50:09-07:00
Forum: Users
Topic: Transparency issue when using separate option
Replies: 4
Views: 337

Re: Transparency issue when using separate option

-alpha off, -alpha on and sometimes -channel rgba or -channal rgb
by fmw42
2019-11-14T09:40:38-07:00
Forum: Users
Topic: Transparency issue when using separate option
Replies: 4
Views: 337

Re: Transparency issue when using separate option

Code: Select all

convert input.png -alpha off -separate -alpha on output.png
by fmw42
2019-11-14T09:36:49-07:00
Forum: Consulting
Topic: hiring freelancer for programming with Imagemagick
Replies: 1
Views: 471

Re: hiring freelancer for programming with Imagemagick

I would suggest you post a bit more information. What platform/OS? Scripting is different for Windows vs Linux/MacOSX. What version of ImageMagick - 6 or 7? What kind of scripts -- shell scripts, bat scripts, PHP scripts?
by fmw42
2019-11-13T10:20:05-07:00
Forum: Magick.NET
Topic: Multiple text caption per Image
Replies: 6
Views: 603

Re: Multiple text caption per Image

I do not know if this is relevant to your issue. But you can insert new line break "\n" into your text, if you want to put spacing between text in label: or make paragraphs in caption:
by fmw42
2019-11-12T10:36:07-07:00
Forum: Fred's Scripts
Topic: Cylinderize command not working and giving permission issue
Replies: 2
Views: 582

Re: Cylinderize command not working and giving permission issue

Testing your command as

Code: Select all

convert logo: resized_main.miff 
cylinderize -m vertical -w 100 -a 90 -d r -r 55 -v background -b none -p 10 -t resized_main.miff  cylindrical_img.png 2>&1
Works fine for me on IM 6.9.10.71 Q16 Mac OSX Sierra.
by fmw42
2019-11-12T10:33:35-07:00
Forum: Fred's Scripts
Topic: Cylinderize command not working and giving permission issue
Replies: 2
Views: 582

Re: Cylinderize command not working and giving permission issue

Post a link to your input image so that I can test with it. Perhaps it is a bug in that version of Imagemagick. It is very old by version, but the date is reasonably current. So I assume you are running on Linux. Linux distributions often only update for security issues. I do not trust that method t...
by fmw42
2019-11-11T20:22:10-07:00
Forum: Users
Topic: How do you make configure run correctly on Debian?
Replies: 5
Views: 3090

Re: How do you make configure run correctly on Debian?

This is not an answer, but may be useful. See https://imagemagick.org/download/delegates/. From there you can look up each one in a Google search and then read what they do. Some are obvious.
by fmw42
2019-11-11T20:19:31-07:00
Forum: Users
Topic: Resize Only If File Size is Too Big
Replies: 2
Views: 325

Re: Resize Only If File Size is Too Big

You can only limit on dimension using -resize "WxH>". There is no test that I am aware for file size for PNG. You have to script testing the file size and then resizing.
by fmw42
2019-11-11T10:21:57-07:00
Forum: Users
Topic: Best compression code
Replies: 10
Views: 723

Re: Best compression code

Yes, I asked for that enhancement a while back as it was useful for scripting.
by fmw42
2019-11-11T09:47:33-07:00
Forum: Users
Topic: Best compression code
Replies: 10
Views: 723

Re: Best compression code

You can use %B to get the file size in bytes as a numeral only so that you do not have to strip off the letter "B"
by fmw42
2019-11-11T09:41:02-07:00
Forum: Developers
Topic: Host is not allowed Code : 400
Replies: 1
Views: 197

Re: Host is not allowed Code : 400

This does not appear to me to be an ImageMagick error, but one of from your server. Contact your server host. The 400 Bad Request error is an HTTP status code that means that the request you sent to the website server, often something simple like a request to load a web page, was somehow incorrect o...