note 111659 added to imagick.getimageinterlacescheme

From: Date: Wed, 13 Mar 2013 13:59:49 +0000
Subject: note 111659 added to imagick.getimageinterlacescheme
Groups: php.notes 
Request: Send a blank email to php-notes+get-194057@lists.php.net to get a copy of this message
Image Interlacing is simply combining two images by layering one over the other with a certain opacity (usually 50%). The intention is to use the image in video, so that two images are displayed within one single frame, thereby doubling the frames-per-second without doubling the actual, physical amount of frames. Wikipedia provides a fairly decent explanation of this type of video technology: http://en.wikipedia.org/wiki/Interlaced_video . Best Description : http://www.100fps.com/ Some sample code : <?php // Author: holdoffhunger@gmail.com // Imagick Type // --------------------------------------------- $imagick_type = new Imagick(); // Open File // --------------------------------------------- $file_to_grab = "image_workshop_directory/test.jpg"; $file_handle_for_viewing_image_file = fopen($file_to_grab, 'a+'); // Grab File // --------------------------------------------- $imagick_type->readImageFile($file_handle_for_viewing_image_file); // Get Rendering Intent Values // --------------------------------------------- $imagick_rendering_intent = $imagick_type->getImageRenderingIntent(); switch($imagick_rendering_intent) { case '0': $image_rendering_intent_evaluated = "Undefined"; break; case '1': $image_rendering_intent_evaluated = "Saturation"; break; case '2': $image_rendering_intent_evaluated = "Perceptual"; break; case '3': $image_rendering_intent_evaluated = "Absolute"; break; case '4': $image_rendering_intent_evaluated = "Relative"; break; } // Print Rendering Intent Values // --------------------------------------------- print("# $imagick_rendering_intent - $image_rendering_intent_evaluated"); ?> ---- Server IP: 69.147.83.199 Probable Submitter: 68.14.150.111 ---- Manual Page -- http://php.net/manual/en/imagick.getimageinterlacescheme.php Edit -- https://master.php.net/note/edit/111659 Del: integrated -- https://master.php.net/note/delete/111659/integrated Del: useless -- https://master.php.net/note/delete/111659/useless Del: bad code -- https://master.php.net/note/delete/111659/bad+code Del: spam -- https://master.php.net/note/delete/111659/spam Del: non-english -- https://master.php.net/note/delete/111659/non-english Del: in docs -- https://master.php.net/note/delete/111659/in+docs Del: other reasons-- https://master.php.net/note/delete/111659 Reject -- https://master.php.net/note/reject/111659 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#194057) next »