Search found 11254 matches

by magick
2020-04-16T16:34:23-07:00
Forum: Consulting
Topic: PAID: Problem with IMagick, Huge temp files, LF a developer
Replies: 47
Views: 4775

Re: PAID: Problem with IMagick, Huge temp files, LF a developer

ImageMagick removes all temporary files when the process exits. It cannot remove them if it receives a signal that it cannot catch such as the dreaded OOM killer or if it receives a SIGBUS because there is not enough available space in the /tmp partition. That is why we encourage a security policy--...
by magick
2020-04-16T09:54:02-07:00
Forum: Bugs
Topic: IMagick created huge temp files (1.7TB)
Replies: 9
Views: 1247

Re: IMagick created huge temp files (1.7TB)

For paid help, post to https://imagemagick.org/discourse-server/viewforum.php?f=24. A 8500x9500 image requires about 2GB of memory or disk to read and write. Some image types can be problematics and thus the need of a security policy. Take a Postscript image, for example. It might contain 100 pages ...
by magick
2020-04-16T07:24:08-07:00
Forum: Bugs
Topic: IMagick created huge temp files (1.7TB)
Replies: 9
Views: 1247

Re: IMagick created huge temp files (1.7TB)

70-100MP in dimensions? What does that mean? What is the maximum width and height of your JPEG image?

We can't write security rules for you other than recommending you start with the security policy we provide @ https://imagemagick.org/script/architecture.php and build on that.
by magick
2020-04-15T10:19:02-07:00
Forum: Bugs
Topic: IMagick created huge temp files (1.7TB)
Replies: 9
Views: 1247

Re: IMagick created huge temp files (1.7TB)

Read https://imagemagick.org/script/security-policy.php and implement the recommended practices. With a proper security policy, no temporary files should remain after a workflow completes.
by magick
2020-04-14T12:31:02-07:00
Forum: Users
Topic: Increasing Color Depth
Replies: 11
Views: 1455

Re: Increasing Color Depth

It depends on what you mean by increasing the color depth. Does that mean you want to introduce new colors or simply set the depth from 4 to 16 with -depth 16, for example. To introduce new colors, try sharpening (e.g. -sharpen 0x1). Or resize the image to 4 times its original size then back down to...
by magick
2020-04-14T10:48:12-07:00
Forum: Users
Topic: font rendering
Replies: 32
Views: 5603

Re: font rendering

No. We had to add to enable the FT_LOAD_RENDER flag. The MagickEpsilon add was to avoid a numerical instability issue which cause certain thin lines to now be drawn when they should.
by magick
2020-04-14T07:40:42-07:00
Forum: Users
Topic: font rendering
Replies: 32
Views: 5603

Re: font rendering

The flag is in the Freetype delegate library. Download, read the docs looking for the comment about patents, enable the FLAG as the suggest, build, and install. ImageMagick will then use the improve hinting when it renders.
by magick
2020-04-14T05:28:12-07:00
Forum: Users
Topic: font rendering
Replies: 32
Views: 5603

Re: font rendering

None. The rendering code in ImageMagick looks good. Freetype does have an option to enable better hinting, disabled by default due to patent issues. That may help. If you find an app that does a better job with rendering that uses Freetype, let us know. We'll investigate further.
by magick
2020-04-13T08:13:02-07:00
Forum: MagickWand
Topic: How to reduce the time taken by MagickWand methods
Replies: 19
Views: 2323

Re: How to reduce the time taken by MagickWand methods

With the jpeg:size option, we are providing the JPEG delegate library with a hint of the size we want. You would need to refer to the JPEG documentation or ask the JPEG delegate library developers for for how scaling is accomplished and its effect on the quality of the results. To get started, look ...
by magick
2020-04-12T14:53:29-07:00
Forum: MagickWand
Topic: How to reduce the time taken by MagickWand methods
Replies: 19
Views: 2323

Re: How to reduce the time taken by MagickWand methods

Add

Code: Select all

MagickSetOption(magick_wand,"jpeg:size","1000x1000");
just before

Code: Select all

MagickReadImage(magick_wand,argv[1]);
by magick
2020-04-12T10:36:11-07:00
Forum: MagickWand
Topic: How to reduce the time taken by MagickWand methods
Replies: 19
Views: 2323

Re: How to reduce the time taken by MagickWand methods

With JPEG yes. Set the JPEG size property. From the command-line it looks like this:

Code: Select all

$ time convert -define jpeg:size=1000x1000 image3.jpg -resize 1000x1000 image.png
2.249u 0.105s 0:01.58 148.1%    0+0k 0+2432io 0pf+0w
by magick
2020-04-11T11:16:51-07:00
Forum: MagickWand
Topic: How to reduce the time taken by MagickWand methods
Replies: 19
Views: 2323

Re: How to reduce the time taken by MagickWand methods

If the debugging mentions heap, its processing in memory. If it mentions disk, its processing the image on disk.
by magick
2020-04-11T05:10:55-07:00
Forum: MagickWand
Topic: How to reduce the time taken by MagickWand methods
Replies: 19
Views: 2323

Re: How to reduce the time taken by MagickWand methods

For the best quality, use MagickResizeImage(). You can get quality and some performance increase with MagickScaleImage(). ImageMagick will automatically choose between resize, scale, and sample with MagickThumbnailImage().
by magick
2020-04-10T07:06:42-07:00
Forum: MagickWand
Topic: How to reduce the time taken by MagickWand methods
Replies: 19
Views: 2323

Re: How to reduce the time taken by MagickWand methods

Decompression is required to read a JPEG or PNG image. Compression takes place when writing a JPEG or PNG image.
by magick
2020-04-10T04:35:49-07:00
Forum: MagickWand
Topic: How to reduce the time taken by MagickWand methods
Replies: 19
Views: 2323

Re: How to reduce the time taken by MagickWand methods

The workflow was to illustrate that the majority of the time is consumed by the JPEG and PNG delegate libraries for decompression/compression rather than ImageMagick. Both MPC and PNM image formats do not require compression. The MAGICK_DEBUG define was for you to determine if your image is processe...