Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

New Issue with PP3 QT 7



Hello all

It appears that QT 7 PP3 is handling 'headers' differently or incorrectly......
The below php script works well in all other QT/Platform versions I have tried.
Platforms where the below works correctly are: QT7 for OS X, QT 6.5 for XP and Win2K
Unfortunately, the script fails in QT7 PP3 for PC :(


Basically, this command is sent from a sprite in a wired QT movie:
LoadNewImage("http://www.myserver.com/myPHPscript.php? text=yolanda%20perez",0)


Excerpt from myPHPscript.php script that  LoadNewImage accesses:
// Get the text sent from the wired QT movie
$text = $_GET['text'];

header("Content-type:".$mime); //$mime = image/png
$im    = imagecreatefrompng($imageURL);
imageAlphaBlending($im, true);
imageSaveAlpha($im, true);
$left    = 5; //add a little pad to the left edge
$white = imagecolorallocate($im, 255, 255, 255);
imagestring($im, 10, $left, 9, $text, $white);
imagepng($im);
readfile($im);
imagedestroy($im);


Here is a link to the movie that shows the bug:
http://www.siren.cc/bugs/loadnewimage.mov
In the above test movie, LoadNewImage is accessing a php script which outputs an image with dynamic text composited over it
The right hand side is outputting text as relevant events happen...like a debugstr/console


Is QT7 for PC handling headers differently than all other QT versions ?
Is this a bug or is QT 7 PC  handling headers differently ?
Bug or Feature ?

many many thanks to the QT engineering team for fixing the LoadNewImage bug :)
Fixing this is really going to help me



g

_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.