Actions
Using Redux to serve images on myamiweb » History » Revision 13
« Previous |
Revision 13/64
(diff)
| Next »
Jim Pulokas, 10/05/2012 02:18 PM
Using Redux to serve images on myamiweb¶
Installation¶
- Follow Web_Server_Installation but ignore warning on not using php 5.3
- Install redux prerequisites as found in its README file
- Install myami-redux branch of myami on the webserver machine. Redux needs write permission at its installation location to write fftw wisdom file.
sudo easy_install fs
Configurations:¶
- Assign redux server in myamiweb
define('SERVER_HOST',"your_hostname")
- Using Redux cache
- At myamiweb/config.php
define('USE_REDUX_CACHE',true)
- Turn it on or off in redux/pipeline.py
- Input the desired disk_cache_path, disk_cache_size, and mem_cache_size in the next few lines
- Create the disk_cache_path before running redux if cache will be used
mkdir /tmp/redux chmod 777 /tmp/redux
- At myamiweb/config.php
Test Installation¶
- Using Redux to do simple input output:
cd /your_myami_download/redux/bin redux --filename=test.jpg --oformat=PNG > test.png
Using redux server with myamiweb¶
- start redux server. (reduxd is in executable path if installed)
reduxd
- test by accessing "test dataset" in myamiweb/viewerxml.php
- test by accessing an image in myamiweb/imageviewer.php
run at boot¶
sudo cp -v myami/redux/init.d/reduxd /etc/init.d/ sudo service reduxd start
Test server¶
redux --server_host=localhost \ --filename=myami/redux/gst/example.png \ --oformat=JPEG --shape=32,32 > test.jpg identify test.jpg
result
test.jpg JPEG 32x32 32x32+0+0 8-bit DirectClass 1.03kb
Updated by Jim Pulokas about 12 years ago · 13 revisions