PHP - Get Mov Dimensions
Can I get a quicktime's dimensions?
I found this thread, but I need to do it without any plugins: http://www.phpfreaks.com/forums/index.php/topic,287966.msg1365168.html Similar TutorialsThis interface was created by dissecting the photo that you see into 20 pieces, and floating them to the left within a container.
I would like to know if I could individually scale the pieces together, with the same multiplying factor after the multiplying factor has been determined from the device's screen resolution.
fix.jpg 81.35KB
0 downloads
Here is my dilemma and thank you in advance! I am trying to create a variable variable or something of the sort for a dynamic associative array and having a hell of a time figuring out how to do this. I am creating a file explorer so I am using the directories as the keys in the array. Example: I need to get this so I can assign it values $dir_list['root']['folder1']['folder2'] = value; so I was thinking of doing something along these lines... if ( $handle2 = @opendir( $theDir.'/'.$file )) { $tmp_dir_url = explode($theDir); for ( $k = 1; $k < sizeof ( $tmp_dir_url ); $k++ ) { $dir_list [ $dir_array [ sizeof ( $dir_array ) - 1 ] ][$tmp_dir_url[$k]] } this is where I get stuck, I need to dynamically append a new dimension to the array durring each iteration through the for loop...but i have NO CLUE how Do I need to check both the "Image Size" AND "Image Dimensions" for files that Users upload to my website? Currently I have... // ******************** // Check File-Size. * // ******************** if (empty($errors)){ // Check File-Size in Bytes. if (filesize($tempFile)<4000){ // File too small. $errors['upload'] = 'File-size must be greater than 4 Kilobytes.'; }elseif (filesize($tempFile)>100000){ // File too big. $errors['upload'] = 'File-size must be less than 100 Kilobytes.'; }else{ // File-Size Okay. // Continue Processing Upload... } }//End of CHECK FILE-SIZE I guess I haven't been worrying about "File Dimensions" because I resize everything here... // ********************** // Set New Dimensions. * // ********************** // Capture Dimensions on Original Image. $origWidth = imageSX($origImage); $origHeight = imageSY($origImage); if ($origWidth > $origHeight){ $newWidth = 100; $multiplier = $newWidth/$origWidth; $newHeight = $origHeight * $multiplier; } if ($origWidth < $origHeight){ $newHeight = 100; $multiplier = $newHeight/$origHeight; $newWidth = $origWidth * $multiplier; } if ($origWidth == $origHeight){ $newWidth = 100; $newHeight = 100; } Thanks, Debbie |