Search found 9 matches
- 2011-07-26T20:06:22-07:00
- Forum: IMagick
- Topic: Problems with scaleImage
- Replies: 14
- Views: 39649
Re: Problems with scaleImage
All images I tested are now working, so I think that the problem was the missing $. Good. Now I can rebuild the second server also with EL6
- 2011-07-26T20:02:37-07:00
- Forum: IMagick
- Topic: Problems with scaleImage
- Replies: 14
- Views: 39649
Re: Problems with scaleImage
It can not be displayed because it is a corrupt image. All the server is sending is 10 byte (the start of a jpeg file). And the code for this is still: $imghandle = new Imagick(); if (!$imghandle->readImage($pathimage)) { error_log("ImageRead: Failed to read image"); exit; } if (!$imghandle ...
- 2011-07-26T19:53:24-07:00
- Forum: IMagick
- Topic: Problems with scaleImage
- Replies: 14
- Views: 39649
Re: Problems with scaleImage
I copied one of your images that didn't work for you and tested using only scaleImage() with the sizes 100x75 and 210x158. Both worked. Looks like the error is before scaleImage(). http://eclecticdjs.com/mike/temp/11/07/10571930_74890275.php <?php $file = "10571930_74890275.png"; $image = new ...
- 2011-07-26T19:42:47-07:00
- Forum: IMagick
- Topic: Problems with scaleImage
- Replies: 14
- Views: 39649
Re: Problems with scaleImage
*edit* Ok, I exposed one of the servers to the Internet and put a sample of images up at: http://imgarchive.autc.com/test/ The images you posted above the edit look OK but from http://imgarchive.autc.com/test/ I got http://imgarchive.autc.com/display.php?img=10571930_74890275_dt.jpg which shows me ...
- 2011-07-21T22:25:05-07:00
- Forum: IMagick
- Topic: Problems with scaleImage
- Replies: 14
- Views: 39649
Re: Problems with scaleImage
Post a link to an image that isn't working for you for us to test. I don't think this will help but you don't have a content header: header('Content-Type: image/jpeg'); I do, I just didn't post that part of the script. The total script is longer, as it has to calculate where on the disk it is ...
- 2011-07-21T22:21:32-07:00
- Forum: IMagick
- Topic: Problems with scaleImage
- Replies: 14
- Views: 39649
Re: Problems with scaleImage
So I installed another server, this one with EL6, which comes with ImageMagick 6.5.4.7-5.el6. The php version is 5.3.6 (own build) and Apache is 2.2.19 (own build). PECL imagick module is 3.0.1
Same problems: Some images work fine in both resizes, some only of them works, some none work.
Same problems: Some images work fine in both resizes, some only of them works, some none work.
- 2011-07-20T23:52:51-07:00
- Forum: IMagick
- Topic: Problems with scaleImage
- Replies: 14
- Views: 39649
Re: Problems with scaleImage
The PECL version which was installed is 3.0.1, which is the current version. ImageMagick is the available version for EL5.
The old server was using older version of the PECL module (< 1.0) and the EL4 version of ImageMagick.
The old server was using older version of the PECL module (< 1.0) and the EL4 version of ImageMagick.
- 2011-07-20T22:39:17-07:00
- Forum: IMagick
- Topic: Problems with scaleImage
- Replies: 14
- Views: 39649
Re: Problems with scaleImage
The code is pretty simple: $imghandle = new Imagick(); if (!$imghandle->readImage($pathimage)) { error_log("ImageRead: Failed to read image"); exit; } if (!$imghandle->scaleImage($resize_x, $resize_y)) { error_log("ImageScale(".$image."): scaling image failed"); exit; } $image_data = $imghandle ...
- 2011-07-20T18:28:47-07:00
- Forum: IMagick
- Topic: Problems with scaleImage
- Replies: 14
- Views: 39649
Problems with scaleImage
I wrote many years ago a script we use to display images pulled from a directory structure. This script also resizes to what we call detail image and thumb nail from the full size image. The imagick module used was 0.9.x. Trying to rebuild servers with more modern OS versions like EL5 or EL6, I get ...