Search found 26 matches

by TomXampp
2015-12-31T19:48:59-07:00
Forum: IMagick
Topic: Resized PNGs are black...what am I doing incorrectly?
Replies: 8
Views: 17413

Re: Resized PNGs are black...what am I doing incorrectly?

I downloaded this PNG image, which I suspect is the rose image you used: http://www.imagemagick.org/Usage/compose/rose.png My ImageMagick/imagick info is as follows (here culled from phpinfo.php): imagick module version 3.4.0RC4 imagick classes Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterato...
by TomXampp
2015-12-31T15:05:53-07:00
Forum: IMagick
Topic: Resized PNGs are black...what am I doing incorrectly?
Replies: 8
Views: 17413

Re: Resized PNGs are black...what am I doing incorrectly?

P.S. I should mention that the LANCZOS2SHARP filter works with JPGs in the PHP routine provided in my posting. Just to double-check, I've tried the routine with the plain LANCZOS filter, and the result is the same for PNG files: a black image is created.
by TomXampp
2015-12-31T14:03:01-07:00
Forum: IMagick
Topic: Resized PNGs are black...what am I doing incorrectly?
Replies: 8
Views: 17413

Re: Resized PNGs are black...what am I doing incorrectly?

Yes, there is; it's documented here: https://pecl.php.net/package/imagick/3.2.0b2 ...and I've successfully used it on JPGs. The PHP page you referenced is simply not updated. Notice that I used it successfully in the command-line version of ImageMagick described in the first part of my message. I've...
by TomXampp
2015-12-31T11:34:59-07:00
Forum: IMagick
Topic: Resized PNGs are black...what am I doing incorrectly?
Replies: 8
Views: 17413

Resized PNGs are black...what am I doing incorrectly?

When I use Imagick in PHP to resize PNG images, the output images are black. I've tested the conversion using ImageMagick on my local computer using this command: convert x.png -resize 528 -filter Lanczos2Sharp x-resized.png ...and it works; the resulting PNG file displays and is resized appropriate...
by TomXampp
2015-12-14T19:59:22-07:00
Forum: Users
Topic: ImageMagick cannot open/process files above 7mb on DreamHost...trying to find configuration that will work
Replies: 9
Views: 8259

Re: ImageMagick cannot open/process files above 7mb on DreamHost...trying to find configuration that will work

I've apparently found the solution. I hit on this solution when I discovered that at certain times of the day I could process fairly large files with Imagick on the live server, but then could not just a few minutes later. This suggested to me that memory was being consumed by others on the shared s...
by TomXampp
2015-12-12T14:10:30-07:00
Forum: Users
Topic: ImageMagick cannot open/process files above 7mb on DreamHost...trying to find configuration that will work
Replies: 9
Views: 8259

Re: ImageMagick cannot open/process files above 7mb on DreamHost...trying to find configuration that will work

Thanks for the suggestion. I created this PHP script: <pre> <?php $output = exec("identify -list resource"); print_r($output); $source_image_file = "0.jpg"; $source_image_path = $_SERVER['DOCUMENT_ROOT'] . "/" . $source_image_file; $im = new Imagick($source_image_path);...
by TomXampp
2015-12-12T13:15:31-07:00
Forum: Users
Topic: ImageMagick cannot open/process files above 7mb on DreamHost...trying to find configuration that will work
Replies: 9
Views: 8259

Re: ImageMagick cannot open/process files above 7mb on DreamHost...trying to find configuration that will work

I've found a work-around. I first test if the image file is greater than 5MB. If so, then it loads it setting resource limits, as here: $im = new Imagick(); $im->setResourceLimit(Imagick::RESOURCETYPE_MEMORY,1); $im->setResourceLimit(Imagick::RESOURCETYPE_MAP,1); $im->readImage($source_image_file); ...
by TomXampp
2015-12-12T10:26:30-07:00
Forum: Users
Topic: ImageMagick cannot open/process files above 7mb on DreamHost...trying to find configuration that will work
Replies: 9
Views: 8259

Re: ImageMagick cannot open/process files above 7mb on DreamHost...trying to find configuration that will work

I already have contacted DreamHost and they suggested turning off FastCGI, on the misunderstanding that it was a "timing-out" error. I did so, nonetheless, and to no effect. Following your suggestion, I used the setOption operator to specify the file type and maximum output size, as here: ...
by TomXampp
2015-12-12T08:54:58-07:00
Forum: Users
Topic: ImageMagick cannot open/process files above 7mb on DreamHost...trying to find configuration that will work
Replies: 9
Views: 8259

ImageMagick cannot open/process files above 7mb on DreamHost...trying to find configuration that will work

I've succeeded in installing ImageMagick on my local computers and Imagick in both XAMPP and WAMP, and I can perform resizing operations on JPGs of any size on my localhost sites when running them. My live host is DreamHost, and they have ImageMagick/Imagick configured as shown here: http://bmt-syst...
by TomXampp
2015-12-03T01:25:09-07:00
Forum: IMagick
Topic: ImageMagick is installed correctly on XAMPP yet cannot read in a file for editing/conversion
Replies: 2
Views: 9196

Re: ImageMagick is installed correctly on XAMPP yet cannot read in a file for editing/conversion

It turns out that ImageMagick needs the full path to your image files, even if they are in the same directory as the script that is executing ImageMagick on them. It's that simple. Here's how to do it: Say your images are kept in an "images" folder off the root of your site. On XAMPP local...
by TomXampp
2015-12-02T00:39:01-07:00
Forum: IMagick
Topic: ImageMagick is installed correctly on XAMPP yet cannot read in a file for editing/conversion
Replies: 2
Views: 9196

ImageMagick is installed correctly on XAMPP yet cannot read in a file for editing/conversion

My webserver has ImageMagick installed and available (and works correctly), and so I want to make use of it. To do that, I need to run it on my localhost, which is XAMPP, to test code, etc. I've succeeded in installing it on XAMPP, however it fails to be able to read a specified file for operation. ...