Vertical Slideshow Tool Rotation Tutorial

Vertical Slideshow Tool Rotation Tutorial

Vertical Slideshow Tool Rotation Tutorial

Yesterday’s Vertical Slideshow Tool Primer Tutorial as shown below, was very “upright” in its approach to a slideshow presentation. Today, we allow for …

  • the slideshow images to be rotated … and/or the …
  • encasing HTML div element of the slideshow images to be rotated

… to enable some variety regarding slideshow display modes.

Along the way, we thought …

  • the need for the user to specify in their URLs the “//www.rjmprogramming.com.au/” was a bit superfluous … and …
  • the functionality to be able to exclude a fully defined image file (not filespec, please) in the user’s list, would be a “nice to have” feature … so we allow the suffix of “-” be the means of doing this

… the modifications required for these perusable via this link.

Regarding the rotation functionality changes please see this link, resulting in the final “stance” for the end of today that you could call spec_img.php.

You may be wondering whether rotation functionality is a Javascript (DOM) job or CSS job. To us, it can be a CSS job if you know ahead of time what rotation angles are involved, and in a way, it can be argued today, we do, because we write in serverside PHP code, but as is so often the case, around these here parts, we prefer the flexibility of Javascript (DOM) dynamic approaches, and so use the Javascript DOM getElementsByTagName([img/div]) approach today, an approach by which the coder does not even need HTML element id nor class defined to make it happen … to be a bit generic man person.

So, why not try some example Vertical (or Angled) Slideshow runs, the last of which is an interactive HTML form example?


HTTP://www.rjmprogramming.com.au/spec_img.php?imgurls=HTTP://www.rjmprogramming.com.au/IMG_053*.JPG,//www.rjmprogramming.com.au/IMG_054*.JPG
HTTP://www.rjmprogramming.com.au/spec_img.php?imgurls=IMG_053*.JPG,IMG_054*.JPG
HTTP://www.rjmprogramming.com.au/spec_img.php?imgurls=IMG_053*.JPG,IMG_0536.JPG-,IMG_0537.JPG-,IMG_0538.JPG-,IMG_0539.JPG-,IMG_054*.JPG
HTTP://www.rjmprogramming.com.au/spec_img.php?imgrotate=25&imgurls=IMG_053*.JPG,IMG_0536.JPG-,IMG_0537.JPG-,IMG_0538.JPG-,IMG_0539.JPG-,IMG_054*.JPG
HTTP://www.rjmprogramming.com.au/spec_img.php?divrotate=335&imgurls=IMG_053*.JPG,IMG_0536.JPG-,IMG_0537.JPG-,IMG_0538.JPG-,IMG_0539.JPG-,IMG_054*.JPG
HTTP://www.rjmprogramming.com.au/spec_img.php?divrotate=335&imgrotate=25&imgurls=IMG_053*.JPG,IMG_0536.JPG-,IMG_0537.JPG-,IMG_0538.JPG-,IMG_0539.JPG-,IMG_054*.JPG
HTTP://www.rjmprogramming.com.au/spec_img.php?imgurls=HTTP://www.rjmprogramming.com.au/Mac/Gravatar/*.*g
HTTP://www.rjmprogramming.com.au/spec_img.php

We hope you’ve taken away from the last two tutorials the notion of how dynamic it is to use PHP’s glob functionality. It means you can plan ahead with a “parent” arrangement, because you may be able to code that parent’s logic free in the knowledge that the data it is involving, can be slotted into place. For instance, with the examples we’ve been using involving …


IMG_053*.JPG,
IMG_054*.JPG

… or things of its ilk can be written into the parent to be like “object” thingos, in our case “object” images, that we don’t exactly care the exact specifics of, because PHP glob will dynamically “sweep” them up into your “container” thought at the time of running the web application, leaving the contents itself be organised and “slotted in” as a separate exercise, perhaps.


Previous relevant Vertical Slideshow Tool Primer Tutorial is shown below.

Vertical Slideshow Tool Primer Tutorial

Vertical Slideshow Tool Primer Tutorial

Yesterday’s Location Services iPad Camera Geolocation Primer Tutorial used for the first time a new homegrown presentation technique …


HTTP://www.rjmprogramming.com.au/spec_img.php?imgurls=HTTP://www.rjmprogramming.com.au/IMG_053*.JPG,//www.rjmprogramming.com.au/IMG_054*.JPG

… that we can add to the list developed in PDF on Mac OS X via Images and Finder and Preview Tutorial as shown below.

This web application tool’s premise is very simple. Present images in HTML img tags vertically down the page.

It takes as its criteria for display a comma separated list of image files and/or image file specifications that the PHP glob function interprets and builds the HTML necessary to display that “vertical slideshow” of images. If you read about PHP glob then you’ll see that it needs web server disk file specifications to work with, so this PHP is not suitable for images residing anything but on the same domain as where its software code resides.

Nevertheless, using PHP $_SERVER[] variables helps make the spec_img.php PHP server side code transportable across domains in one of two ways …

  • its code sits on the same domain as the image files of the $_GET[‘imgurls’] comma separated image file, and image specification lists
  • you can specify the Document Root web server directory and URL, respectively, via $_GET[‘documentroot’] and $_GET[‘documentrooturl’] … to be honest, am not sure these two have a practical role to play, but we’ll “let them fly” for a while to see

We hope you try it out yourself with a list of www.rjmprogramming.com.au image file specification of your chosing.


Previous relevant PDF on Mac OS X via Images and Finder and Preview Tutorial is shown below.

PDF on Mac OS X via Images and Finder and Preview Tutorial

PDF on Mac OS X via Images and Finder and Preview Tutorial

When presenting the recent Cocos Open-Source Game Development Primer Tutorial as shown below, we introduced another technique of presenting a series of images in a presentation format of some use. Putting it into context it’s the green bit of …

If clicking today’s tutorial picture is not your style, below, we’ve broken it into that approach’s two components …

  1. Preparatory installs and project creation and configurations … and …
  2. Running project’s animation in situ (recorded off a Windows laptop via an Android Phone Camera app’s Video option and emailed on and downloaded to MacBook Pro and uploaded to the website … so there, ngaaaaa! … sorry if you can’t play .mp4)
  1. Now in putting this PDF presentation together we used Mac OS X desktop application Preview, that comes with the Mac OS X “out of the box” installation of its operating system. We create a PDF via Preview via Finder window highlighting of all the sequenced images and using two finger gesture (equivalent to Windows right click) option Open With -> Preview
  2. Once in Preview we Edit -> Select All to highlight all the images, and then we do something a bit counterintuitive, perhaps to some, to create the PDF (that contains all the images).
  3. We then use File -> Print … believe it or not … to construct our PDF … why? … well, perhaps you should read our Document Fidelity Primer Tutorial which outlines a little the purpose of PDF as a file type on the net … it is there to be the file format “online” that is like you printing out hard copy on your home or office printer, the “fidelity” bit being about how this is interesting for applications not wanting to leave a “paper trail” … chortle, chortle … regarding metadata left on the net (as distinct from the oodles and oodles of metadata “paper trail” information left by HTML) … and so, hope you can see why our final solution to creating a PDF that consists of a series of sequenced images might involve the File menu’s Print option …
  4. And once there we adjust things like Landscape (versus Portait) orientation and importantly change the bottom left “PDF” dropdown to have the value “Save as PDF…” then hit the Print button … that opens …
  5. The “Save” dialog box where you can specify what the output name of the PDF file should be for your printout of image data feeding into the resultant output PDF file.

So let’s just present to you today the look of this happening in another of our compiled list of “presentation of image data” techniques, below, that we’ve used at this blog, to date … an animated GIF


Previous relevant Cocos Open-Source Game Development Primer Tutorial is shown below.

Cocos Open-Source Game Development Primer Tutorial

Cocos Open-Source Game Development Primer Tutorial

Games development is huge on the net, and so there are good reasons to get into “Open-Source” for collaborative purposes and to pick the brains of experts in forums and blogs and chatrooms about what is good and what is a waste of time.

In our recent foray back into the Visual Studio world, we shaped to try out what was on offer with Visual Studio Express 2015 on Windows 10 related to a Games project, and stumbled on the “Cocos Open-Source Development System” based on the “Cocos2d Framework” information from Wikipedia (thanks) …

Cocos2d is an open source software framework. It can be used to build games, apps and other cross platform GUI based interactive programs. Cocos2d contains many branches with the best known being Cocos2d-objc, Cocos2d-x, Cocos2d-html5 and Cocos2d-XNA. There are some independent editors in the cocos2d community, such as those contributing in the areas of SpriteSheet editing, particle editing, font editing and Tilemap editing as well as world editors including SpriteBuilder and CocoStudio.

We’ve got together a “Hello World” feeling of “stumbling along” getting a sample project to run an animation to dip our toes into the deep deep oceans of knowledge swirling around this topic … ie. we want you to know you can do it … and we don’t work for Nike?!

If clicking today’s tutorial picture is not your style, below, we’ve broken it into that approach’s two components …

  1. Preparatory installs and project creation and configurations … and …
  2. Running project’s animation in situ (recorded off a Windows laptop via an Android Phone Camera app’s Video option and emailed on and downloaded to MacBook Pro and uploaded to the website … so there, ngaaaaa! … sorry if you can’t play .mp4)

If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.

This entry was posted in eLearning, Tutorials and tagged , , , , , , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>