{"id":45602,"date":"2019-07-14T03:01:23","date_gmt":"2019-07-13T17:01:23","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=45602"},"modified":"2019-07-14T21:44:08","modified_gmt":"2019-07-14T11:44:08","slug":"inhouse-slideshow-design-exif-integration-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/inhouse-slideshow-design-exif-integration-tutorial\/","title":{"rendered":"Inhouse Slideshow Design Exif Integration Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/CHash\/XML\/index.php\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Inhouse Slideshow Design Exif Integration Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/CHash\/XML\/inhouse_slideshow_revisit.jpg\" title=\"Inhouse Slideshow Design Exif Integration Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Inhouse Slideshow Design Exif Integration Tutorial<\/p><\/div>\n<p>A project of reasonable scale has several phases to it, the ones that spring to mind for us, being &#8230;<\/p>\n<ul>\n<li>concept<\/li>\n<li>planning and design<\/li>\n<li>coding and unit testing<\/li>\n<li>user acceptance and testing<\/li>\n<li>platform acceptance and testing<\/li>\n<li>implementation and deployment<\/li>\n<li>going live<\/li>\n<li>monitoring performance and uptake and usage patterns<\/li>\n<li>user feedback and improvement planning<\/li>\n<\/ul>\n<p> &#8230; in that order conceptually and initially, perhaps, but often messed up as a project matures and grows.<\/p>\n<p>We have a mini project getting the work of yesterday&#8217;s <a target=_blank title='PHP Exif Image Information Revisit Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/php-exif-image-information-revisit-tutorial\/'>PHP Exif Image Information Revisit Tutorial<\/a>&#8216;s PHP Exif information web application&#8217;s workings and aesthetics be put to good use, and straight off the bat we got going &#8230;<\/p>\n<ul>\n<li>project &#8220;<a target=_blank title='One Image Website' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/one-image-site\/'>One Image Website<\/a> Exif Integration&#8221; as small enough (&#8220;planning and design&#8221; established we&#8217;d only need to change 6 or 7 files) to have a very simple TextWrangler 7 file session followed by sftp over to the RJM Programming website as its &#8220;implementation and deployment&#8221; phase &#8230; the coding changes involving &#8230;<br \/>\n<table>\n<tr>\n<th>HTML <font color=blue>(new)<\/th>\n<\/tr>\n<tr>\n<td><code><br \/>\n&lt;body id=\"body\" style=\"background-color: #E4E4E4;\" onload=' <font color=blue>if (document.URL.indexOf(\"exif=\") != -1) { dexifit();  }<\/font> window.setTimeout(\"FadeInImage()\", 4000); '&gt;<br \/>\n<font color=blue>&lt;a onclick=huhit(); onmousedown=huhittwo(); style=display:inline-block;cursor:pointer;text-decoration:underline;&gt;Exif Run&lt;\/a&gt;<\/font><br \/>\n<\/code><br \/>\n<code><br \/>\n<font color=blue>&lt;div id=dexif&gt;&lt;\/div&gt;<\/font><br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<br \/>\n<\/code>\n<\/td>\n<\/tr>\n<tr>\n<th>CSS (new) is <a target=_blank title='Overlay Iframe Remembering Textarea Client Quiz Wikipedia Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/overlay-iframe-remembering-textarea-client-quiz-wikipedia-tutorial\/'>&#8220;Overlay Iframe Remembering&#8221;<\/a> work<\/th>\n<\/tr>\n<tr>\n<td><code><br \/>\n&lt;style&gt;<br \/>\n  iframe {<br \/>\n     width: calc(100% - 2px);<br \/>\n     height: calc(100% - 2px);<br \/>\n  }<br \/>\n&lt;\/style&gt;<br \/>\n<\/code>\n<\/td>\n<\/tr>\n<tr>\n<th>Javascript (new code) and integration steps<\/th>\n<\/tr>\n<tr>\n<td><code><br \/>\n<font color=blue><br \/>\nfunction huhit() {<br \/>\ntop.location.href=('' + document.URL).split('#')[0].split('?')[0] + '?exif=y';<br \/>\n}<br \/>\n<br \/>\nfunction huhittwo() {<br \/>\nalinktop='#';<br \/>\n}<br \/>\n<br \/>\nfunction dexifit() {<br \/>\n   document.getElementById('dexif').innerHTML='&lt;iframe id=iexif style=\"position:absolute;top:0px;left:0px;z-index:45;\" src=..\/PHP\/read_exif_off_image_rotate.php&gt;&lt;\/iframe&gt;';<br \/>\n}<br \/>\n<\/font><br \/>\n\/\/<br \/>\n\/\/ The existence of iframe \"iexif\" causes the \"get new image\" Javascript function to intervene and update the \"src\" property of iframe \"iexif\" with a<br \/>\n\/\/   URL showing an image Exif report webpage as per \"top.location.href=('' + document.URL).split('#')[0].split('?')[0] + '?exif=y';\" codeline above (rather than display a new image and scroll within it (that being the default behaviour the build up for unchanged for our work))<br \/>\n\/\/<br \/>\n<\/code>\n<\/td>\n<\/tr>\n<\/table>\n<p> &#8230; and today we shall &#8230;<\/li>\n<li>get up to the &#8220;implementation and deployment&#8221; phase of the &#8220;Inhouse Slideshow Exif Integration&#8221; project &#8230; via &#8230;<br \/>\n<iframe style='width:100%;height:1200px;' src='http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/CHash\/XML\/indexslideshow.php-GETME'><\/iframe><br \/>\n&#8230; above (or see them in a new window with <a target=_blank title='indexslideshow.php-GETME' href='http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/CHash\/XML\/indexslideshow.php-GETME'>the changed<\/a> <a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/CHash\/XML\/indexslideshow.php-GETME\">index.php<\/a>&#8216;s <a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/CHash\/XML\/index.php\">live run<\/a>) &#8230; the &#8220;implementation and deployment&#8221; phase being involved (and big) enough that we need to explain more about with tomorrow&#8217;s blog posting &#8230; and in the meantime as a &#8220;refresher&#8221; have a read of <a title='Inhouse Slideshow Design Makeover Tutorial' href='#isdmt'>Inhouse Slideshow Design Makeover Tutorial<\/a> below<\/li>\n<\/ul>\n<hr>\n<p id='isdmt'>Previous relevant <a target=_blank title='Inhouse Slideshow Design Makeover Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/inhouse-slideshow-design-makeover-tutorial\/'>Inhouse Slideshow Design Makeover Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/CPlusPlus\/CompositeObjects\/\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Inhouse Slideshow Design Makeover Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/CHash\/XML\/ih_ss.jpg\" title=\"Inhouse Slideshow Design Makeover Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Inhouse Slideshow Design Makeover Tutorial<\/p><\/div>\n<p>One of the last times we considered the way we &#8220;worked&#8221; using our &#8220;Inhouse Slideshow Design&#8221; was when we presented <a title='Animated GIF and Slideshow via PHP Writing PHP Data URI Tutorial' href='#agifsphpwphpdurit'>Animated GIF and Slideshow via PHP Writing PHP Data URI Tutorial<\/a> below, some time back.   Perhaps, that is because this method has gone out of favour with us, with the number of image files required, and we&#8217;ve preferred in more recent times to &#8230;<\/p>\n<ul>\n<li>annotate individual screenshots<\/li>\n<li>compose multi-slide PDF presentations<\/li>\n<li>compose multi-slide animated GIF presentations<\/li>\n<li>compose multi-slide video presentations (much less often) &#8230; rather than using &#8230;<\/li>\n<li>inhouse slideshow &#8230; when many slides are needed to explain a blog posting<\/li>\n<\/ul>\n<p>Looking back, we spent too long creating these inhouse slideshows, compiling image lists into td cells of a single tr row in a single table element within individually tailored index.html (HTML) files.<\/p>\n<p>Today&#8217;s makeover genericizes an overarching piece of PHP (we&#8217;ll be calling index.php) we place into the web server directory <b>with these<\/b> &#8230;<\/p>\n<p><code><br \/>\n     foreach (<a target=_blank title='PHP glob() method information' href='http:\/\/php.net\/manual\/en\/function.glob.php'>glob<\/a>(\"<b>*-[0-9]*.[jJgGpP][pPiInN]*<\/b>\") as $ifil) {<br \/>\n       if (strpos($spush, \"'\" . $surlprefix . $ifil . \"'\") === false) {<br \/>\n       $ibits=explode(\"-\", $ifil);<br \/>\n       if (sizeof($ibits) &gt; 1) {<br \/>\n         $proposedstitle=str_replace(\"_\", \" \", $ibits[0]);<br \/>\n         if ($proposedstitle != $stitle) {<br \/>\n           if ($stitle == \"\") {<br \/>\n             $stitle=$proposedstitle;<br \/>\n           } else if (strpos($sothers, $proposedstitle) === false) {<br \/>\n             $spush.=\"\\n firstones.push(\" . $scnt . \"); \\n\";<br \/>\n             $spush.=\"\\n lastones.push(\" . (-1 + $scnt) . \"); \\n\";<br \/>\n             $sothers.=\"&lt;br&gt;&lt;a id='apre\" . $sscnt . \"' href='#s\" . $scnt . \"' title=\\\"Movie'ize Here vs Follow Red Right Arrows with Bottom Scrollbar\\\" onclick='prehavealook(this); havealook(-\" . $scnt . \");'&gt;\" . $proposedstitle . \"&lt;\/a&gt;\";<br \/>\n             $sscnt++;<br \/>\n           }<br \/>\n         }<br \/>\n         $smodebit.=\"\\n  if (smode != '0') document.getElementById('row').innerHTML+='&lt;td&gt;&lt;span style=\\\"color:red;font-size:14px;\\\"&gt;&lt;b&gt;--&gt;&lt;\/b&gt;&lt;\/span&gt;&lt;\/td&gt;&lt;td&gt;&lt;img onclick=\\\"onck(this);\\\" id=\\\"i\" . $scnt . \"\\\" src=\\\"\" . $surlprefix . $ifil . \"\\\" title=\\\"\" . $proposedstitle . \"\\\" \/&gt;&lt;\/td&gt;'; \\n\";<br \/>\n         $spush.=\"\\n uarraydatauri.push('\" . $surlprefix . $ifil . \"'); \\n\";<br \/>\n         $scnt++;<br \/>\n       }<br \/>\n       }<br \/>\n     }<br \/>\n<\/code><\/p>\n<p> &#8230; image filenames we can collect in that &#8220;glob&#8221; friendly <i><b>*-[0-9]*.[jJgGpP][pPiInN]*<\/b><\/i> (filespec) habit we had (and have), make genericization possible, and we&#8217;ll proceed on that understanding.  What extra is needed, though, is to cater for more than one set of such slideshow image sets within any one web server directory (gleaned off the incoming URL, in PHP).<\/p>\n<p>Here&#8217;s what we came up with in PHP called <a target=_blank title='index.php' href='http:\/\/www.rjmprogramming.com.au\/CHash\/XML\/indexslideshow.php_GETME'>index.php<\/a> we&#8217;ll start placing into the relevant rjmprogramming.com.au web server folders, over the next several days.<\/p>\n<hr>\n<p id='agifsphpwphpdurit'>Previous relevant <a target=_blank title='Animated GIF and Slideshow via PHP Writing PHP Data URI Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/animated-gif-and-slideshow-via-php-writing-php-data-uri-tutorial\/'>Animated GIF and Slideshow via PHP Writing PHP Data URI Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/animegif\/tutorial_to_animated_gif.php\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Animated GIF and Slideshow via PHP Writing PHP Data URI Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/animegif\/agmore.jpg\" title=\"Animated GIF via PHP Writing PHP Data URI Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Animated GIF and Slideshow via PHP Writing PHP Data URI Tutorial<\/p><\/div>\n<p>To us, there are great similarities between animated GIFs and slideshows, as two forms of &#8220;presentation&#8221;, and so to extend yesterday&#8217;s <a title='Animated GIF via PHP Writing PHP Data URI Tutorial' href='#agifphpwphpdurit'>Animated GIF via PHP Writing PHP Data URI Tutorial<\/a> animated GIF creator &#8220;PHP Writes PHP&#8221; web application that now has the option for <a target=_blank title='Data URI information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/Data_URI_scheme'>data URI<\/a> &#8220;exports&#8221; we add the functionality for &#8230;<\/p>\n<ul>\n<li>slideshow creation (using our inhouse methods) which defaults to a horizontal (hashtag type of) navigation &#8230; as well as adding a &#8230;<\/li>\n<li>slideshow creation, with Data URI image data, using functionality as if CSS <a target=_blank title='CSS z-index information from w3schools' href='http:\/\/www.w3schools.com\/cssref\/pr_pos_z-index.asp'>z-index<\/a> (ie. slides stacked on top of each other in <a target=_blank title='Overlay blog postings at this blog' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/overlay'>&#8220;overlay&#8221;<\/a> style) was being used, but actually isn&#8217;t &#8230;<\/li>\n<\/ul>\n<p> &#8230; that little bit different to another &#8220;stacked&#8221; (or z-index feeling) approach we talked about with <a target=_blank title='Multiple Class Slideshow Details Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/multiple-class-slideshow-details-tutorial\/'>Multiple Class Slideshow Details Tutorial<\/a>, where HTML element <a target=_blank title='HTML class information from w3schools' href='http:\/\/www.w3schools.com\/html\/html_classes.asp'>&#8220;class&#8221;<\/a> properties were changed so that the last class defined reflects the look of the slideshow slide desired at any given time.  We just use an array, and a <a target=_blank title='Javascript setTimeout() method information from w3schools' href='http:\/\/www.w3schools.com\/jsref\/met_win_settimeout.asp'>setTimeout<\/a> timer to achieve the same ends today, with our work (or &#8220;presentation&#8221;).  If this &#8220;horizontal versus stack&#8221; navigation choice interests you, also take a read of <a target=_blank title='HTML Input Element Types Randomized History Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/html-input-element-types-randomized-history-tutorial\/'>HTML Input Element Types Randomized History Tutorial<\/a>.<\/p>\n<p>Again, with all this added functionality, because it is &#8220;hosted&#8221; in an HTML <a target=_blank title='HTML iframe element information from w3schools' href='http:\/\/www.w3schools.com\/tags\/tag_iframe.asp'>iframe<\/a> element all the existant web browser (Windows right click or Mac OS X two finger gesture) functionality can come into play, and make life quite interesting for your non-mobile users &#8220;collecting&#8221; data URIs <font size=1>&#8230; there are worse hobbies!<\/font><\/p>\n<p>You can see this in the context of how this PHP <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/animegif\/tutorial_to_animated_gif.php---GETME\" title=\"tutorial_to_animated_gif.php\">tutorial_to_animated_gif.php<\/a> code changed for slideshows in <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/animegif\/tutorial_to_animated_gif.php---GETME\">this way<\/a> or try it as a <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/animegif\/tutorial_to_animated_gif.php\" title=\"Click picture\">live run<\/a>.<\/p>\n<hr>\n<p id='agifphpwphpdurit'>Previous relevant <a target=_blank title='Animated GIF via PHP Writing PHP Data URI Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/animated-gif-via-php-writing-php-data-uri-tutorial\/'>Animated GIF via PHP Writing PHP Data URI Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/animegif\/tutorial_to_animated_gif.php\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Animated GIF via PHP Writing PHP Data URI Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/animegif\/animegif_datauri.jpg\" title=\"Animated GIF via PHP Writing PHP Data URI Tutorial\"  \/><\/a><p class=\"wp-caption-text\">Animated GIF via PHP Writing PHP Data URI Tutorial<\/p><\/div>\n<p>The previous relevant &#8220;PHP writes PHP&#8221; methodology <a target=_blank title='Animated GIF information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/GIF'>animated GIF<\/a> creator we talked about, first, with <a title='Animated GIF via PHP Writing PHP Primer Tutorial' href='#agvpwppt'>Animated GIF via PHP Writing PHP Primer Tutorial<\/a> came back to mind yesterday with our <a target=_blank title='Missing Javascript Audio on Unmute Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/missing-javascript-audio-on-unmute-tutorial\/'>Missing Javascript Audio on Unmute Tutorial<\/a>, where we pondered on whether an animated GIF could be represented on a webpage by a <a target=_blank title='Data URI information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/Data_URI_scheme'>data URI<\/a>.  Why take an interest in this?  Data URIs are very important to do with &#8230;<\/p>\n<ul>\n<li>future mobile development web form navigation benefits from their usage<\/li>\n<li>the use of data URIs make your web pages independent of web server location issues, so make your web data more portable, and flexible<\/li>\n<\/ul>\n<p> &#8230; and ideally, animated GIFs are also not just a decorative part of all this web application usage (as they can be a very efficient representation of an animation that could not be a more succinct way to show that animation or presentation), and if they can be made to be like any other GIF or image data file in the ways they can be represented (and used), then that is all for the good.<\/p>\n<p>So we changed the Jeroen van Wissen&#8217;s <a target=_blank href='http:\/\/www.jeroenvanwissen.nl\/weblog\/php\/howto-generate-animated-gif-with-php' title='Great PHP library for Animated GIF creation work, thanks'>inspired<\/a> PHP (&#8220;PHP writes PHP&#8221; methodology) code <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/animegif\/tutorial_to_animated_gif.php--GETME\">tutorial_to_animated_gif.php<\/a> code allow for this extra animated GIF data URI representation in a new additional HTML iframe (containing the animegif.html of code below) that when harnessing existant web browser (Windows right click or Mac OS X two finger gesture) functionality can glean for us, as required, that animated GIF&#8217;s data URI representation.  But don&#8217;t get too excited about this being rocket science, in that with a bit of effort, and PHP, it could have been gleaned <b>from what we already produced<\/b>, in that (in PHP &#8220;land&#8221;) &#8230;<\/p>\n<p><code><br \/>\n$lastbitto=\"\\$fp = fopen('animegif.gif', 'w');<br \/>\n\\$data = \\$gif->GetAnimation();<br \/>\n<b>\\$dataUri = 'data:image\/gif;base64,' . <a target=_blank title='PHP base64_encode information' href='http:\/\/php.net\/manual\/en\/function.base64-encode.php'>base64_encode<\/a>(\\$data);<\/b><br \/>\nfwrite(\\$fp, \\$data);<br \/>\nfclose(\\$fp);<br \/>\n<b>\\$fp = fopen('animegif.html', 'w');<br \/>\nfwrite(\\$fp, '&lt;!doctype html&gt;&lt;html&gt;&lt;body&gt;&lt;h1&gt;Data URI version below&lt;h1&gt;&lt;br&gt;&lt;h4&gt; ... via web browser (Windows right click, Mac OS X two finger gesture ...&lt;\/h4&gt;&lt;br&gt;&lt;img src=' . \\\"\\\\n\\\" . \\$dataUri . \\\"\\\\n\\\" . ' title=DataURI&gt;&lt;\/img&gt;&lt;\/body&gt;&lt;\/html&gt;');<br \/>\nfclose(\\$fp);\";<\/b><br \/>\n<\/code><\/p>\n<p>You can see this in the context of how this PHP code changed in <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/animegif\/tutorial_to_animated_gif.php--GETME\">this way<\/a> or try it as a <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/animegif\/tutorial_to_animated_gif.php\" title=\"Click picture\">live run<\/a>.<\/p>\n<hr>\n<p id='agvpwppt'>Previous relevant <a target=_blank title='Animated GIF via PHP Writing PHP Primer Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/animated-gif-via-php-writing-php-primer-tutorial\/'>Animated GIF via PHP Writing PHP Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/animegif\/\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Animated GIF via PHP Writing PHP Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/animegif\/animated_gif-186of.jpg\" title=\"Animated GIF via PHP Writing PHP Primer Tutorial\"  style=\"float:left;\"  \/><\/a><p class=\"wp-caption-text\">Animated GIF via PHP Writing PHP Primer Tutorial<\/p><\/div>\n<p>We find another very useful reason for PHP to write PHP.  Today we establish a PHP web application to dynamically create Animated GIF images via some still images, like <a target=_blank title='Gifpal' href='http:\/\/www.gifpal.com'>Gifpal<\/a> would do.<\/p>\n<p>We have some great open source PHP code to thank for the basis of the functionality we found at Jeroen van Wissen&#8217;s very <a target=_blank href='http:\/\/www.jeroenvanwissen.nl\/weblog\/php\/howto-generate-animated-gif-with-php'>useful link<\/a>, thanks.<\/p>\n<p>Then we added a more user friendly interface to get the information off the user we need.   We present this in an HTML form, which navigates to the same PHP to do the actual assembly of the Animated GIF via techniques where PHP writes PHP &#8230; and really needs to, to be useful.<\/p>\n<p>Do you remember, last, when we did some PHP writing PHP functionality &#8230; <a target=_blank title='PHP Writes PHP Vertical TextBoxes Primer Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/php-writes-php-vertical-textboxes-primer-tutorial\/'>PHP Writes PHP Vertical TextBoxes Primer Tutorial<\/a>?<\/p>\n<p>And inside the PHP it makes big use of the <a target=_blank title='GD and Image Functions' href='http:\/\/php.net\/manual\/en\/ref.image.php'>GD and Image Functions<\/a> to read and write the image data we assemble via the user information.<\/p>\n<p>This Animated GIF form of animation is the easiest to implement, as it consists of just the one GIF image file, but the user has very little control over the animation settings, such as the delay between stills, one of the settings we ask about in our web application.<\/p>\n<p>Our PHP source code today you could call <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/animegif\/tutorial_to_animated_gif.php_GETME\" title='tutorial_to_animated_gif.php'>tutorial_to_animated_gif.php<\/a> and we redirect you to some live run ideas &#8230;<\/p>\n<ul>\n<li>normal run with HTML form which posts back to itself &#8230; <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/animegif\/tutorial_to_animated_gif.php\" title='live run'>live run<\/a><\/li>\n<li>example GET parameters <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/animegif\/tutorial_to_animated_gif.php?delay=500&#038;stitle=PaintBrush%20Panning%20Primer%20Tutorial&#038;slideshow=http:\/\/www.rjmprogramming.com.au\/PHP\/animegif\/index.html\" title='get parameters live run'>run<\/a> (like our tutorial picture)<\/li>\n<\/ul>\n<p>Hope you find this tutorial useful.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d17197' onclick='var dv=document.getElementById(\"d17197\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/category\/animation\/\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d17197' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d35097' onclick='var dv=document.getElementById(\"d35097\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/category\/animated-gif\/\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d35097' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d35120' onclick='var dv=document.getElementById(\"d35120\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/slideshow\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d35120' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d44310' onclick='var dv=document.getElementById(\"d44310\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/animation\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d44310' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d45602' onclick='var dv=document.getElementById(\"d45602\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/iframe\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d45602' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>A project of reasonable scale has several phases to it, the ones that spring to mind for us, being &#8230; concept planning and design coding and unit testing user acceptance and testing platform acceptance and testing implementation and deployment going &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/inhouse-slideshow-design-exif-integration-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,14,37],"tags":[281,576,587,590,652,864,894,2981,932,997,1151,1319],"class_list":["post-45602","post","type-post","status-publish","format-standard","hentry","category-elearning","category-event-driven-programming","category-tutorials","tag-css","tag-html","tag-iframe","tag-image","tag-javascript","tag-one-image-website","tag-overlay","tag-overlay-iframe-remembering","tag-php","tag-programming","tag-slideshow","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/45602"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=45602"}],"version-history":[{"count":10,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/45602\/revisions"}],"predecessor-version":[{"id":45622,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/45602\/revisions\/45622"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=45602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=45602"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=45602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}