Author: Ridouan Ben Massoud
The java image php animation program can be used to build an animation or فيلم given by search keyword or keywords. The animation or slide show can use up to 45 Unique kind of image transitions which can be specified. Each part of the animation or slide show can be build by hand or completely automatically. The level of control of the animation is in your thougts as long as valid 'simple sentence' is passed to the application. Shortly there will be spent some time on installing the package, the software requirements and so on. The next chapter will discus how to the seach key is parsed and discus how the recording mechnism fits ביחד (php and java).
If you wish to Visualize your media player (e.g. vlc media player) you should first start the script following (Run as administrator is recomended in windows , /script/sync/startUp.bat) or vlcp.sh (linux, /script/sync/vlcp.sh) to view a live slideshow with images found via google. If you wish to record the frames specify record=yes Example usage: http://127.0.0.1/player for media player. A Custum Animation with Youtube Audio could be http://127.0.0.1/watch.php?p=Queen;Radio&sound=Queen+Radio+Ga+Ga&width=400&height=275 or with given as youtubeId
More on Audio & Sound
More audio options can be set by specifying sound=yes (some example instruments will be downloaded as specified in the files in sound directory). You can put your favourite instruments in the underlying sound directory. If you want to hear samples you can specify it by the soundfx=[description ; separated] If you want to mute the drums for example, vocal or samples you can do that by specifying -sound=[subdirectories of sound folder ; separated ]. Local mp3 files can be played with sound=[path to mp3 file].
Installing and software requirements
See Website http://www.ogena.net for current/actual instalation or update possibilities. To download the application go to http://www.ogena.net and click on the download (Get a Copy). When you download the package you should extract this where you have installed your webserver. You can download such as application by visiting http://httpd.apache.org for example. The next thing you should do is install php from http://php.net in a folder, for example c:\php . Next you should confige apach by telling the webserver to use the Server Side Script php. Read the install text with the instructions how to configure php. Add lines to httpd.conf (conf folder under Apache Folder) as decribed in the install text file with php. If the apachephp module is installed and configured right you should be able to execute php code.
If you extract the javaimagephp.zip (Open with 7-zip for Windows, or any zip program) file to that path you should check if you installed the php module for the webserver. You can download a version of php at php.net. Instruct (read the php install file for exact instructions) your webserver about the whereabouts of php and restart the webserver. When everything is done you should figure out of java is installed on your PC or Mac. You can verify this by typing "java -version" at the command prompt (cmd) or your shell. If you don't have java installed on your computer you can do so by visiting http://java.com
sudo apt-get update
sudo apt-get install openjdk-7-jdk
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install ffmpeg
sudo apt-get install apache2
sudo apt-get install php5
sudo apt-get install youtube-dl
cd /var/www/html
sudo wget http://www.ogena.net/javaimagephp.zip
sudo unzip javaimagephp.zip
sudo chmod -R 777 *
Running a slide show or animation
When you start you webbrowser e.g. firefox you should open http://localhost/watch.php?p=...... (localhost, or local ip e.g. 127.0.0.1). The search key or main variable is p. You can separate search keys by a ; sign and with :effect_number (0,10,20.. 440) if you wish a specific effect. An example of an valid animation would be http://localhost/watch.php?p=Airplane;Phone!50;Lion. If you have own pictures you should group them in a folder and add that folder to the images directory. You can furthermore specify the width and height. For example http://localhost/watch.php?p=Lion;Thunder!50;World&width=512&height=360&fr=16. fx paramters stands for the example of sound of your provided parameter p. So you might hear an airplane, lion and Thunder. If you specify sound=yes a piece of music will played with samples found in the /sound sub-directories directory. You can add more instruments or remove the ones you do not like. Instead of a file you can add a php file which holds the URL of the sound sample. The zoom=yes sets the application to zoom in and out while the animation is going. The parameter fr stands for the number of frames a special effect takes. Next are some descriptions of the animation transition effects. Note that the exact nr effect can be read in the code (look for $tr in scripts/php/jip-scripts.php) and is almost for sure out dated.
Effect number Effect description [ ]http://example.com/scripts/php/effects.php?show=info
letters-or-icon :: 200
move-to :: 520
circles :: 490
completing-round :: 20
move-to-corner :: 220
scattering :: 500
opening-object :: 420
fold :: 280
disolve :: 270
standard :: 10
colorize :: 400
image-function-eval :: 290
frequency :: 330
inverse :: 370
glue :: 440
differential :: 380
mirror :: 450
wings :: 460
simple :: 30
parabolic :: 170
saturn :: 60
image-resize-image :: 250
moving-noise :: 260
clouds-or-universe :: 140
wheel :: 410
flag :: 510
image2pix :: 110
disiluse :: 130
slide-bars :: 160
expand-from-middle :: 230
rectangles :: 90
spiral :: 340
path-from-center :: 100
sliding-windows :: 80
sliding-windows :: 480
rotate-object :: 180
smooth :: 240
fft :: 0
digitalize :: 50
curved-path-image :: 40
difuse :: 390
opening-bars :: 150
opening-in-object :: 430
slide-page :: 120
sliding-windows :: 480
rotate :: 530
nrofcol :: 540
slide :: 70
motion-blur :: 300
contrast :: 190
lighten :: 210
noise :: 470
projection-on-shape :: 360
cube :: 50
opening-windows :: 320
Building the classes
The main application is started by an valid URL. The PHP page player includes a file phpjava.php which got's php and javascript functions. The sources are available in the folder phpjava/java/src. If you wish or have problems running the standard build you can compile the package as follow (requires a JDK): Download phpjava.zip from http://www.ogena.net (Correction: Are All Included Now in the distribution)
cd to directory where the unzuppid java files remain
javac ToolsImage.java
javac Image*.java
'move' or mv *.class [DOCROOT_WEBSERVER]'/scripts/java'
How to improve & Lessons learned
During the development of the Visual Effects/Special Effects it has always been a challege to reduce the computation time of an Special Effect. Although great improvements have been made it's undoubtably true that further enhanchment can be done to certain Special Effect. In some cases it's mathematically proven to be the fastest possible algortithm or procedure to derive to Image B from Image A but that doesn't hold for all.
I have found out that sometimes a trick or logical property of the matter can dramatically improve the running time of an effect. For example I used a combination of effects for a single effect to reduce the overall running time. More of these possibilities are available and will undoubtably to better times or Time Records for this particular App. (Collection of smaller individual Apps).
Making use of Object Oriented Programming, exploiting inheritance for example, resulted is smaller overal size of the application next to deviding the Application in made up Languages. The working application no longer includes the sources files for the visual or Special Effects leading the overall size to reduce by a half.
HOW UNINSTALL ? PLEASE
The .MSI built package for windows the install/uninstall is 'normalized'