Re: Image_Transform 0.9.0: IM's display() does not work any more?!
| From: | Christian Luszick | Date: | Thu, 08 Dec 2005 13:55:33 +0000 |
| Subject: | Re: Image_Transform 0.9.0: IM's display() does not work any more?! | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-22181@lists.php.net to get a copy of this message | ||
Christian Luszick wrote:
Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 85.73.117.245 Hello, I integrated image_transform 0.8 into one of my software. Using the IM driver all went good :) Lately I've updated to 0.9.0. Expecting nothing bad, I have now the problem that my script does not work any more. 1) I recognize the define for IM path had changedWell, I have found something: I do $im=&Image_Transform::factory("IM"); $im->load($file_in); $im->scaleByLength($max_width); $im->display(null, $quality); If I am doing $im->display('jpeg', $quality); IT WORKS! But it does also work with $im->display('foo', $quality); $im->display(sdfsdf, $quality); BUT it should work with $im->display(null, $quality); $im->display('', $quality); Best solution would be $im->display($im->getImageType(), $quality); which works well. Am I doing something wrong using 'null' or ''? -- christian luszickfrom IMAGE_TRANSFORM_LIB_PATH to IMAGE_TRANSFORM_IM_PATH2) But additionally '$im->display()' does not output the image any more. Instead of raw image data it shows in my Firefox (this is more or less the path of my script I call to display an image) 'http://path/to/image.php?file=image.jpg' Remark: doing the following let all work fine! pear uninstall image_transform pear install image_transform-0.8 So, what is the difference in 0.9.0? What shall I do to get it working? Any help would be wonderful!