debian/0000755000000000000000000000000012021363564007170 5ustar debian/copyright0000644000000000000000000000752611746232163011140 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: iipimage Upstream-Contact: Ruven Pillay Upstream-Source: http://iipimage.sourceforge.net/ Files: fcgi/* Copyright: Copyright © 1996 Open Market, Inc. License: This FastCGI application library source and object code (the "Software") and its documentation (the "Documentation") are copyrighted by Open Market, Inc ("Open Market"). The following terms apply to all files associated with the Software and Documentation unless explicitly disclaimed in individual files. . Open Market permits you to use, copy, modify, distribute, and license this Software and the Documentation for any purpose, provided that existing copyright notices are retained in all copies and that this notice is included verbatim in any distributions. No written agreement, license, or royalty fee is required for any of the authorized uses. Modifications to this Software and Documentation may be copyrighted by their authors and need not follow the licensing terms described here. If modifications to this Software and Documentation have new licensing terms, the new terms must be clearly indicated on the first page of each file where they apply. . OPEN MARKET MAKES NO EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE SOFTWARE OR THE DOCUMENTATION, INCLUDING WITHOUT LIMITATION ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL OPEN MARKET BE LIABLE TO YOU OR ANY THIRD PARTY FOR ANY DAMAGES ARISING FROM OR RELATING TO THIS SOFTWARE OR THE DOCUMENTATION, INCLUDING, WITHOUT LIMITATION, ANY INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES OR SIMILAR DAMAGES, INCLUDING LOST PROFITS OR LOST DATA, EVEN IF OPEN MARKET HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. THE SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS". OPEN MARKET HAS NO LIABILITY IN CONTRACT, TORT, NEGLIGENCE OR OTHERWISE ARISING OUT OF THIS SOFTWARE OR THE DOCUMENTATION. Files: src/* Copyright: Copyright © 2000-2011, Ruven Pillay License: GPL This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Comment: On Debian systems, you can read the full text of the GNU Lesser General Public License in ‘/usr/share/common-licenses/GPL-2’. Files: windows/* Copyright: Copyright © 2011, Ruven Pillay. License: GPL This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Comment: On Debian systems, you can read the full text of the GNU Lesser General Public License in ‘/usr/share/common-licenses/GPL-3’. Files: debian/* Copyright: 2012, Mathieu Malaterre License: GPL-3 Same as above debian/iipsrv.conf0000644000000000000000000000130511766653602011364 0ustar # Create a directory for the iipsrv binary ScriptAlias /iipsrv/ "/usr/lib/iipimage-server/" # Set the options on that directory AllowOverride None Options None Order allow,deny Allow from all # Set the module handler AddHandler fcgid-script .fcgi # Set our environment variables for the IIP server FcgidInitialEnv VERBOSITY "1" FcgidInitialEnv LOGFILE "/var/log/iipsrv.log" FcgidInitialEnv MAX_IMAGE_CACHE_SIZE "10" FcgidInitialEnv JPEG_QUALITY "90" FcgidInitialEnv MAX_CVT "5000" FcgidInitialEnv MEMCACHED_SERVERS "localhost" # Define the idle timeout as unlimited and the number of # processes we want FcgidIdleTimeout 0 FcgidMaxProcessesPerClass 1 debian/source/0000755000000000000000000000000011766660353010503 5ustar debian/source/format0000644000000000000000000000001411746026657011712 0ustar 3.0 (quilt) debian/iipimage-server.docs0000644000000000000000000000000711746056711013135 0ustar README debian/changelog0000644000000000000000000000226712021363561011046 0ustar iipimage (0.9.9-2ubuntu2) quantal; urgency=low * Rebuild for libtiff5. -- Colin Watson Tue, 04 Sep 2012 12:35:11 +0100 iipimage (0.9.9-2ubuntu1) quantal; urgency=low * Merge from Debian Unstable (LP: #1017145). Remaining Changes: - Another casualty of override_dh_auto_build-indep. Move Build-Depends-Indep to Build-Depends (doxygen). -- Vibhav Pant Sun, 24 Jun 2012 19:11:00 +0530 iipimage (0.9.9-2) unstable; urgency=low * Adding some documentation * log file /var/log/iipsrv.log was not being created. Closes: #675326 * add Lighttpd support. Closes: #675001 * iipsrv.conf file is configured to use mod_fastcgi. Closes: #675325 * Remove .svn from the -doc package. -- Mathieu Malaterre Fri, 15 Jun 2012 18:14:31 +0200 iipimage (0.9.9-1ubuntu1) quantal; urgency=low * Another casualty of override_dh_auto_build-indep. Move Build-Depends-Indep to Build-Depends (doxygen). -- Ben Collins Wed, 13 Jun 2012 14:57:59 -0400 iipimage (0.9.9-1) unstable; urgency=low * Initial release. (Closes: #631455) -- Mathieu Malaterre Wed, 25 Apr 2012 19:29:56 +0200 debian/20-iipsrv.conf0000644000000000000000000000114511766142674011607 0ustar # Lighttpd configuration of the iipimage-server package. server.modules += ( "mod_fastcgi" ) fastcgi.server += ( "/iipsrv/iipsrv.fcgi" => (( "host" => "127.0.0.1", "port" => 9000, "check-local" => "disable", "min-procs" => 1, "max-procs" => 1, "bin-path" => "/usr/lib/iipimage-server/iipsrv.fcgi", # IIPImage server parameters. # See iipimage manpage for more details. "bin-environment" => ( "LOGFILE" => "/var/log/iipsrv.log", "VERBOSITY" => "1", "JPEG_QUALITY" => "90", "MAX_IMAGE_CACHE_SIZE" => "10", "MAX_CVT" => "5000", "MEMCACHED_SERVERS" => "localhost" ) )) ) debian/iipimage-doc.doc-base0000644000000000000000000000246511746233726013136 0ustar Document: iipimage Title: IIPimage User's Guide Author: Ruven Pillay Abstract: Web-based streamed viewing and zooming of ultra high-resolution images IIPImage is an advanced high-performance feature-rich imaging server system for web-based streamed viewing and zooming of ultra high-resolution images. It is designed to be fast and bandwidth-efficient with low processor and memory requirements. The system can comfortably handle gigapixel size images as well as advanced image features such as both 8 and 16 bit depths, CIELAB colorimetric images and scientific imagery such as multispectral images. . Streaming is tile-based, making it possible to view, navigate and zoom in real-time around gigapixel size images that would be impossible to download and manipulate on the local machine. It also makes the system very scalable as the number of image tile downloads will remain the same regardless of the size of the source image. . Source images can be in either TIFF or JPEG2000 format. Whole images or regions within images can also be rapidly and dynamically resized and exported by the server from a single source image without the need to store multiple files in various sizes. Section: Graphics Format: HTML Index: /usr/share/doc/iipimage-doc/html/index.html Files: /usr/share/doc/iipimage-doc/html/*.html debian/watch0000644000000000000000000000007411746056711010230 0ustar version=3 http://sf.net/iipimage/iipsrv-([\d\.]+)\.tar\.bz2 debian/orig-tar.sh0000755000000000000000000000067111746056711011265 0ustar #!/bin/sh -ex # called by uscan with '--upstream-version' TAR=../iipimage_$2.dfsg.orig.tar.gz DIR=iipsrv-$2 # clean up the upstream tarball tar -xf $3 find $DIR -name .svn -exec rm -rf {} \; || true GZIP="--best --no-name" tar -czf $TAR --exclude '*/fcgi/*' $DIR rm -rf $DIR $3 # move to directory 'tarballs' if [ -r .svn/deb-layout ]; then . .svn/deb-layout mv $TAR $origDir echo "moved $TAR to $origDir" fi debian/README.source0000644000000000000000000000033711746056711011360 0ustar The iipimage package contains a convenient copy of fcgi library Since the building of package allow using a system installed fcgi, we are using it. -- Mathieu Malaterre Wed, 25 Apr 2012 19:29:56 +0200 debian/iipsrv.80000644000000000000000000001214611746231145010603 0ustar .TH IIPSRV 8 "APRIL 2012" Linux "User Manuals" .SH NAME IIPSRV \- IIPImage Internet Imaging Server .SH DESCRIPTION IIPImage is an advanced high-performance feature-rich imaging server system for web-based streamed viewing and zooming of ultra high-resolution images. It is designed to be fast and bandwidth-efficient with low processor and memory requirements. The system can comfortably handle gigapixel size images as well as advanced image features such as both 8 and 16 bit depths, CIELAB colorimetric images and scientific imagery such as multispectral images. .SH INSTALLATION The .I iipsrv.fcgi binary can be run as a standalone program or can be automatically started via a web server. This package includes configuration files for both Apache and Lighttpd that are automatically installed and configured if either of these are installed. See .B FILES bellow for details. .SH FILES The iipsrv.fcgi binary is installed in .IR /usr/lib/cgi-bin/iipsrv.fcgi If you have Apache installed, make sure you have mod_fastcgi installed. The .B iipsrv configuration file is automatically placed in .I /etc/apache2/conf.d/iipsrv.conf For Lighttpd, the configuration file is automatically placed in .I /etc/lighttpd/conf-enabled/iipsrv.conf You can edit the parameters in these configuration files. See .B OPTIONS bellow for more details. If you modify any parameters, make sure you restart your web server for them to take effect. .SH RUNNING .B iipsrv will be automatically started by both Apache and Lighttpd. If you wish to run as a standalone program, use the following syntax to bind to a particular port: % /usr/lib/cgi-bin/iipsrv.fcgi \-\-bind localhost:9000 You will then need to configure your webserver on the same machine or another to point to this ip address and port. Use this method for use with Nginx or Java Application Servers such as Tomcat, JBoss or Jetty .SH OPTIONS There are several parameters that can be supplied to .I iipsrv.fcgi .IP LOGFILE The log file the module will (attempt) to write to. If no value is given, no log will be written. Make sure the server process has write access to this directory. Paths with spaces in them may not work correctly. .IP VERBOSITY The level of logging. 0 means no logging, 1 is minimal logging, 2 lots of debugging stuff and 3 even more debugging stuff and 4 a very large amount indeed. Logging is only enabled if .BR LOGFILE has also been defined. .IP JPEG_QUALITY The default JPEG quality factor for compression when the client does not specify one. The value should be between 1 (highest level of compression) and 100 (highest image quality). The default is 75. .IP MAX_IMAGE_CACHE_SIZE Max image cache size to be held in RAM in MB. This is a cache of the compressed JPEG image tiles requested by the client. The default is 5MB. .IP FILESYSTEM_PREFIX This is a prefix automatically added by the server to the beginning of each file system path. This can be useful for security reasons to limit access to certain sub-directories. For example, with a prefix of "/home/images/" set on the server, a request by a client for "image.tif" will point to the path "/home/images/image.tif". Any reverse directory path component such as ../ is also filtered out. No default value. .IP MAX_CVT The maximum permitted image pixel size returned by the CVT command in conjunction with WID or HEI or RGN. The default is 5000. This prevents huge requests from overloading the server .IP LAYERS The number of quality layers to decode for image that support progressive quality encoding, such as JPEG2000. Ignored for other file formats. The default is 1. .IP WATERMARK TIFF image to use as watermark file. This image should be not be bigger the tile size used for TIFF tiling. If bigger, it will simply be cropped to the tile size. If smaller, the watermark will be positioned randomly within the available space. The image can be either colour or grayscale. .IP WATERMARK_PROBABILITY The probability that a particilar tile will have a watermark applied to it. 0 means never, 1 means always. .IP WATERMARK_OPACITY The opacity (between 0 and 1) applied to the watermark image. .IP MEMCACHED_SERVERS A comma-delimitted list of memcached servers with optional port numbers. For example: localhost,192.168.0.1:8888,192.168.0.2. .IP MEMCACHED_TIMEOUT Time in seconds that cache remains fresh. Default is 86400 seconds (24 hours). .IP FILENAME_PATTERN Pattern that follows the name stem for a panoramic image sequence. eg: "_pyr_" for .IR FZ1_pyr_000_090.tif . In this example, just supply FZ1 to the FIF command. The "000" indicates the vertical angle and "090" the horizontal. This is only relevant to 3D image sequences. The default is "_pyr_". .SH IMAGE PATHS The image paths given to the server via the FIF variable must be absolute paths on the server machine (eg. FIF=/images/test.tif) and not paths relative to the web server document root location. Images do not, therefore, need to be directly accessible by the client via the web server. Make sure the server process owner is able to access and read the images! .SH SEE ALSO IIPImage website: http://iipimage.sourceforge.net .SH AUTHORS Ruven Pillay debian/patches/0000755000000000000000000000000011766660353010632 5ustar debian/patches/series0000644000000000000000000000002111756677303012042 0ustar removefcgi.patch debian/patches/removefcgi.patch0000644000000000000000000000175611756677303014014 0ustar Description: make sure to remove fcgi from compilation fcgi is always compiled even when not used. reduce compilation time Author: Mathieu Malaterre Forwarded: not-needed Index: iipsrv-0.9.9/Makefile.am =================================================================== --- iipsrv-0.9.9.orig/Makefile.am 2012-05-22 13:49:14.052902322 +0200 +++ iipsrv-0.9.9/Makefile.am 2012-05-22 13:49:40.344901373 +0200 @@ -1,6 +1,6 @@ AUTOMAKE_OPTIONS = dist-bzip2 ACLOCAL_AMFLAGS = -I m4 -SUBDIRS = fcgi src +SUBDIRS = src EXTRA_DIST = TODO COPYING.FCGI doc windows Index: iipsrv-0.9.9/configure.in =================================================================== --- iipsrv-0.9.9.orig/configure.in 2012-05-22 13:49:12.860902365 +0200 +++ iipsrv-0.9.9/configure.in 2012-05-22 13:49:40.344901373 +0200 @@ -258,9 +258,6 @@ AC_PROG_MAKE_SET AC_CONFIG_FILES([Makefile \ - src/Makefile \ - fcgi/Makefile \ - fcgi/include/Makefile \ - fcgi/libfcgi/Makefile]) + src/Makefile]) AC_OUTPUT debian/iipimage-server.postinst0000644000000000000000000000074611766656415014113 0ustar #!/bin/bash set -e #DEBHELPER# if [ "$1" != "configure" -a "$1" != "purge" ]; then exit 0 fi if [ -e /etc/apache2/apache2.conf ]; then a2enmod iipsrv || true touch /var/log/iipsrv.log chown www-data:www-data /var/log/iipsrv.log fi if [ -e /etc/lighttpd/lighttpd.conf ]; then lighty-enable-mod iipsrv || true touch /var/log/iipsrv.log chown www-data:www-data /var/log/iipsrv.log fi if [ -x "/etc/init.d/memcached" ]; then invoke-rc.d memcached start || exit $? fi exit 0 debian/iipimage-doc.docs0000644000000000000000000000001111746056711012367 0ustar doc/html debian/README.Debian0000644000000000000000000000121511756673100011234 0ustar The IIPImage server only supports J2K/JP2 file using KAKADU Since kakadu is not available as open source toolkit, this IIPImage Server can only support sending of TIFF file. See the documentation on how to prepare IIPImage compatible TIFF file: http://iipimage.sourceforge.net/documentation/images/ ---- To test if the server is working simply go to: http://localhost/iipsrv/iipsrv.fcgi ---- If you want to display an image easily, simply add: $ cat /var/www/index.html ... ... -- Mathieu Malaterre Tue, 22 May 2012 13:14:20 +0200 debian/iipimage-server.prerm0000644000000000000000000000046011766656415013346 0ustar #!/bin/bash set -e #DEBHELPER# if [ "$1" != "remove" -a "$1" != "purge" ]; then exit 0 fi if [ -e /etc/apache2/apache2.conf ]; then a2dismod iipsrv || true rm /var/log/iipsrv.log fi if [ -e /etc/lighttpd/lighttpd.conf ]; then lighty-disable-mod iipsrv || true rm /var/log/iipsrv.log fi exit 0 debian/iipimage-server.manpages0000644000000000000000000000002011746056711013773 0ustar debian/iipsrv.8 debian/iipsrv.load0000644000000000000000000000000011746232163011336 0ustar debian/control0000644000000000000000000000620611772271752010610 0ustar Source: iipimage Section: web Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Mathieu Malaterre Build-Depends: debhelper (>= 9), libmemcached-dev, libz-dev, autotools-dev, libtiff5-dev | libtiff-dev, libjpeg-dev, libfcgi-dev, autoconf, libtool, automake, doxygen Standards-Version: 3.9.3 Homepage: http://iipimage.sourceforge.net/ Vcs-Browser: http://anonscm.debian.org/viewvc/collab-maint/deb-maint/iipimage/trunk/ Vcs-Svn: svn://svn.debian.org/collab-maint/deb-maint/iipimage/trunk Package: iipimage-server Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, libapache2-mod-fcgid | lighttpd Recommends: imagemagick (>= 6.4.7~), libvips-tools Suggests: jiipview, iipimage-doc, memcached Description: Web-based streamed viewing and zooming of ultra high-resolution images IIPImage is an advanced high-performance feature-rich imaging server system for web-based streamed viewing and zooming of ultra high-resolution images. It is designed to be fast and bandwidth-efficient with low processor and memory requirements. The system can comfortably handle gigapixel size images as well as advanced image features such as both 8 and 16 bit depths, CIELAB colorimetric images and scientific imagery such as multispectral images. . Streaming is tile-based, making it possible to view, navigate and zoom in real-time around gigapixel size images that would be impossible to download and manipulate on the local machine. It also makes the system very scalable as the number of image tile downloads will remain the same regardless of the size of the source image. . Source images can be in either TIFF or JPEG2000 format. Whole images or regions within images can also be rapidly and dynamically resized and exported by the server from a single source image without the need to store multiple files in various sizes. Package: iipimage-doc Architecture: all Depends: ${misc:Depends}, doc-base Section: doc Description: Web-based streamed viewing and zooming of ultra high-resolution images - doc IIPImage is an advanced high-performance feature-rich imaging server system for web-based streamed viewing and zooming of ultra high-resolution images. It is designed to be fast and bandwidth-efficient with low processor and memory requirements. The system can comfortably handle gigapixel size images as well as advanced image features such as both 8 and 16 bit depths, CIELAB colorimetric images and scientific imagery such as multispectral images. . Streaming is tile-based, making it possible to view, navigate and zoom in real-time around gigapixel size images that would be impossible to download and manipulate on the local machine. It also makes the system very scalable as the number of image tile downloads will remain the same regardless of the size of the source image. . Source images can be in either TIFF or JPEG2000 format. Whole images or regions within images can also be rapidly and dynamically resized and exported by the server from a single source image without the need to store multiple files in various sizes. . This is the documentation for iipimage-server debian/rules0000755000000000000000000000173111766143144010257 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed ifneq (,$(KDU_ROOT)) LD_LIBRARY_PATH:=$(LD_LIBRARY_PATH):$(KDU_ROOT)/apps/make WITH_KAKDU = --with-kakadu=$(KDU_ROOT) endif %: dh $@ --with autotools_dev override_dh_auto_configure: autoreconf -i --force dh_auto_configure -- $(WITH_KAKDU) override_dh_clean-arch: rm -rf fcgi override_dh_install: dh_install src/iipsrv.fcgi usr/lib/iipimage-server/ dh_install debian/iipsrv.conf etc/apache2/mods-available dh_install debian/iipsrv.load etc/apache2/mods-available override_dh_auto_install: # for some reason it install fcgi headers override_dh_clean-indep: rm -rf doc/html/.svn dh_clean doc/html/* # Let's be smart with building doc override_dh_auto_build-indep: doxygen doc/doxygen-html.conf -rm doc/html/jquery.js # No tests needed for docs override_dh_auto_test-indep: ifneq (,$(KDU_ROOT)) override_dh_shlibdeps: endif get-orig-source: uscan --verbose --force-download debian/compat0000644000000000000000000000000211746056711010374 0ustar 9