Search found 11254 matches

by magick
2020-03-20T08:13:44-07:00
Forum: Users
Topic: Process images to stdout immediately after they are read from stdin
Replies: 17
Views: 4033

Re: Process images to stdout immediately after they are read from stdin

ImageMagick is a robust image processing package that handles a plethora of image formats and tasks. See https://imagemagick.org/script/architecture.php for details. In consideration of handling a wide variety of requirements, compromises have been made and as such we do not support all use cases-- ...
by magick
2020-03-20T08:05:59-07:00
Forum: MagickWand
Topic: problem during executing MagickWand resize method parallel (MultiThread)
Replies: 33
Views: 8071

Re: problem during executing MagickWand resize method parallel (MultiThread)

Recommended practices is to call MagickWandGenesis() before you fire off any threads. Once the threads complete, call MagickWandTerminus(). ImageMagick is designed to run properly if Genesis()/Terminus() is not called, but its not recommended practice.
by magick
2020-03-20T03:35:13-07:00
Forum: MagickWand
Topic: problem during executing MagickWand resize method parallel (MultiThread)
Replies: 33
Views: 8071

Re: problem during executing MagickWand resize method parallel (MultiThread)

All calls to MagickWand, except MagickWandGenesis()/MagickWandTerminus() are thread safe. This is a standard pattern in programming:
  1. Initialize the environment
  2. spawn multiple threads
  3. wait for the threads to reap
  4. terminate the environment.
by magick
2020-03-19T17:18:27-07:00
Forum: MagickWand
Topic: problem during executing MagickWand resize method parallel (MultiThread)
Replies: 33
Views: 8071

Re: problem during executing MagickWand resize method parallel (MultiThread)

Comment out MagickWandTerminus() in resize.c. Your program will complete without complaint. Do not call MagickWandTerminus() while threads are active. Wait until all threads have completed before you call MagickWandTerminus().
by magick
2020-03-18T16:46:02-07:00
Forum: Users
Topic: Process images to stdout immediately after they are read from stdin
Replies: 17
Views: 4033

Re: Process images to stdout immediately after they are read from stdin

Your use case cannot be supported. Many image types permit multiple frames per image file (e.g. MIFF). For these coders, stdin is read indefinitely until an EOF is detected or an exception is thrown. Other image types only permit one image. For these coders, one image is read and the command moves t...
by magick
2020-03-18T14:21:49-07:00
Forum: MagickWand
Topic: problem during executing MagickWand resize method parallel (MultiThread)
Replies: 33
Views: 8071

Re: problem during executing MagickWand resize method parallel (MultiThread)

Your response does not help us reproduce the problem. We would require the C program, the Java program, and dependent image/data files, plus steps to reproduce. Once we can reproduce the problem, we can trace execution to determine if the problem is within ImageMagick or your Java program. Unless it...
by magick
2020-03-18T04:48:14-07:00
Forum: MagickWand
Topic: problem during executing MagickWand resize method parallel (MultiThread)
Replies: 33
Views: 8071

Re: problem during executing MagickWand resize method parallel (MultiThread)

We need to reproduce the problem before we can offer any assistance. Detail the steps required to build and run your Java script.
by magick
2020-03-17T13:55:57-07:00
Forum: Users
Topic: Process images to stdout immediately after they are read from stdin
Replies: 17
Views: 4033

Re: Process images to stdout immediately after they are read from stdin

Try `convert ppm:- -resize 50% ppm:-`. Does that make a difference?
by magick
2020-03-16T18:48:25-07:00
Forum: Users
Topic: Process images to stdout immediately after they are read from stdin
Replies: 17
Views: 4033

Re: Process images to stdout immediately after they are read from stdin

Your command is flawed. The mogrify scripts reads the MIFF images indefinitely. It won't move to the -resize until it gets an EOF. As it continually reads the images pushed from the convert command, it continues to consume resources until your host throws an exception (such as out of space). As your...
by magick
2020-03-14T04:16:28-07:00
Forum: Bugs
Topic: Compilation error IM 7.0.10.0 on linux subsystem for windows with Ubuntu 18.04 LTS
Replies: 1
Views: 1590

Re: Compilation error IM 7.0.10.0 on linux subsystem for windows with Ubuntu 18.04 LTS

Perhaps you have an older version of the libheif delegate library. Check the heif.h header file. Ours declares heif_context_read_from_memory_without_copy(): // Same as heif_context_read_from_memory() except that the provided memory is not copied. // That means, you will have to keep the memory area ...
by magick
2020-03-13T05:37:14-07:00
Forum: Users
Topic: What is the difference between PHP GD2 and ImageMagick?
Replies: 1
Views: 1284

Re: What is the difference between PHP GD2 and ImageMagick?

See https://support.pagely.com/hc/en-us/articles/115000052451-Imagick-vs-GD-in-WordPress: Generally speaking, the differences are: GD is generally a slight bit faster when dealing with large images. Imagick supports a larger number of image formats. Imagick is usually better at producing higher qual...
by magick
2020-03-13T02:47:00-07:00
Forum: Users
Topic: Count amount of non-continuous blocks in an image
Replies: 60
Views: 12073

Re: Count amount of non-continuous blocks in an image

Try this command: $ convert ZJLp03D.png -define connected-components:verbose=true -define connected-components:area-threshold=100 -connected-components 8 -normalize birds.png Objects (id: bounding-box centroid area mean-color): 0: 800x800+0+0 399.6,398.8 628975 srgba(0,0,0,0.104711) 1787: 52x69+337+...
by magick
2020-03-12T07:10:50-07:00
Forum: Bugs
Topic: Possible bug -fx min vs -evaluate-sequence min
Replies: 5
Views: 2444

Re: Possible bug -fx min vs -evaluate-sequence min

Could be dumb luck. You would need to add a `debug()` to your `-fx` to trace the reason.
by magick
2020-03-11T16:09:38-07:00
Forum: Bugs
Topic: Possible bug -fx min vs -evaluate-sequence min
Replies: 5
Views: 2444

Re: Possible bug -fx min vs -evaluate-sequence min

See https://imagemagick.org/script/fx.php. Notice the min() syntax as min(x, y), minimum of x and y. The Fx parser is fairly forgiving which explains why no exception is thrown for min(x,y,z).
by magick
2020-03-09T11:43:25-07:00
Forum: Developers
Topic: Request for various Pegtop Blending Modes addition
Replies: 8
Views: 3256

Re: Request for various Pegtop Blending Modes addition

Our implementation matches the algorithm proposed @ http://www.pegtop.net/delphi/articles/blendmodes/quadratic.htm. Freeze is a close analog to Reflect and you suggest Reflect is working-- which in turn suggests Freeze is behaving properly-- unless the algorithm is not correct on the page. We could ...